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 ↓ 275 lines elided ↑ open up ↑
 276  276                      vd->vdev_ms_shift);
 277  277                  fnvlist_add_uint64(nv, ZPOOL_CONFIG_ASHIFT, vd->vdev_ashift);
 278  278                  fnvlist_add_uint64(nv, ZPOOL_CONFIG_ASIZE,
 279  279                      vd->vdev_asize);
 280  280                  fnvlist_add_uint64(nv, ZPOOL_CONFIG_IS_LOG, vd->vdev_islog);
 281  281                  if (vd->vdev_removing)
 282  282                          fnvlist_add_uint64(nv, ZPOOL_CONFIG_REMOVING,
 283  283                              vd->vdev_removing);
 284  284          }
 285  285  
      286 +        if (flags & VDEV_CONFIG_L2CACHE)
      287 +                /* indicate that we support L2ARC persistency */
      288 +                VERIFY(nvlist_add_boolean_value(nv,
      289 +                    ZPOOL_CONFIG_L2CACHE_PERSISTENT, B_TRUE) == 0);
      290 +
 286  291          if (vd->vdev_dtl_sm != NULL) {
 287  292                  fnvlist_add_uint64(nv, ZPOOL_CONFIG_DTL,
 288  293                      space_map_object(vd->vdev_dtl_sm));
 289  294          }
 290  295  
 291  296          if (vd->vdev_crtxg)
 292  297                  fnvlist_add_uint64(nv, ZPOOL_CONFIG_CREATE_TXG, vd->vdev_crtxg);
 293  298  
 294  299          if (getstats) {
 295  300                  vdev_stat_t vs;
↓ open down ↓ 976 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX