Print this page
3525 Persistent L2ARC

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/vdev_label.c
          +++ new/usr/src/uts/common/fs/zfs/vdev_label.c
↓ open down ↓ 283 lines elided ↑ open up ↑
 284  284                      vd->vdev_ashift) == 0);
 285  285                  VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_ASIZE,
 286  286                      vd->vdev_asize) == 0);
 287  287                  VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_IS_LOG,
 288  288                      vd->vdev_islog) == 0);
 289  289                  if (vd->vdev_removing)
 290  290                          VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_REMOVING,
 291  291                              vd->vdev_removing) == 0);
 292  292          }
 293  293  
      294 +        if (flags & VDEV_CONFIG_L2CACHE)
      295 +                /* indicate that we support L2ARC persistency */
      296 +                VERIFY(nvlist_add_boolean_value(nv,
      297 +                    ZPOOL_CONFIG_L2CACHE_PERSISTENT, B_TRUE) == 0);
      298 +
 294  299          if (vd->vdev_dtl_smo.smo_object != 0)
 295  300                  VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_DTL,
 296  301                      vd->vdev_dtl_smo.smo_object) == 0);
 297  302  
 298  303          if (vd->vdev_crtxg)
 299  304                  VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_CREATE_TXG,
 300  305                      vd->vdev_crtxg) == 0);
 301  306  
 302  307          if (getstats) {
 303  308                  vdev_stat_t vs;
↓ open down ↓ 984 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX