Print this page
3525 Persistent L2ARC

@@ -289,10 +289,15 @@
                 if (vd->vdev_removing)
                         VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_REMOVING,
                             vd->vdev_removing) == 0);
         }
 
+        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_smo.smo_object != 0)
                 VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_DTL,
                     vd->vdev_dtl_smo.smo_object) == 0);
 
         if (vd->vdev_crtxg)