]> git.proxmox.com Git - mirror_zfs.git/blobdiff - include/sys/spa_impl.h
ztest: scrub ddt repair
[mirror_zfs.git] / include / sys / spa_impl.h
index 9dbdcfcf5284477f15095ed3f9236bc8be714677..404aaa9ee37380594ad07c0a5bc7e63240b90d0e 100644 (file)
@@ -281,6 +281,13 @@ struct spa {
        uint64_t        spa_scan_pass_scrub_spent_paused; /* total paused */
        uint64_t        spa_scan_pass_exam;     /* examined bytes per pass */
        uint64_t        spa_scan_pass_issued;   /* issued bytes per pass */
+
+       /*
+        * We are in the middle of a resilver, and another resilver
+        * is needed once this one completes. This is set iff any
+        * vdev_resilver_deferred is set.
+        */
+       boolean_t       spa_resilver_deferred;
        kmutex_t        spa_async_lock;         /* protect async state */
        kthread_t       *spa_async_thread;      /* thread doing async task */
        int             spa_async_suspended;    /* async tasks suspended */