]> git.proxmox.com Git - mirror_zfs.git/blobdiff - include/sys/space_map.h
Extend zdb to print inconsistencies in livelists and metaslabs
[mirror_zfs.git] / include / sys / space_map.h
index 81f56076a5695f8a66cd7b7b0d53266226f0db2d..cb81e710bd1e8e0636d6936c39b816fae5444bab 100644 (file)
@@ -148,6 +148,15 @@ typedef struct space_map_entry {
        uint32_t sme_vdev;      /* max is 2^24-1; SM_NO_VDEVID if not present */
        uint64_t sme_offset;    /* max is 2^63-1; units of sm_shift */
        uint64_t sme_run;       /* max is 2^36; units of sm_shift */
+
+       /*
+        * The following fields are not part of the actual space map entry
+        * on-disk and they are populated with the values from the debug
+        * entry most recently visited starting from the beginning to the
+        * end of the space map.
+        */
+       uint64_t sme_txg;
+       uint64_t sme_sync_pass;
 } space_map_entry_t;
 
 #define        SM_NO_VDEVID    (1 << SPA_VDEVBITS)