Print this page
3525 Persistent L2ARC

@@ -281,10 +281,15 @@
                 if (vd->vdev_removing)
                         fnvlist_add_uint64(nv, ZPOOL_CONFIG_REMOVING,
                             vd->vdev_removing);
         }
 
+        if (flags & VDEV_CONFIG_L2CACHE)
+                /* indicate that we support L2ARC persistency */
+                VERIFY(nvlist_add_boolean_value(nv,
+                    ZPOOL_CONFIG_L2CACHE_PERSISTENT, B_TRUE) == 0);
+
         if (vd->vdev_dtl_sm != NULL) {
                 fnvlist_add_uint64(nv, ZPOOL_CONFIG_DTL,
                     space_map_object(vd->vdev_dtl_sm));
         }