]> git.proxmox.com Git - proxmox-backup.git/blobdiff - src/api2/types/mod.rs
gc: remove .bad files on garbage collect
[proxmox-backup.git] / src / api2 / types / mod.rs
index 6854fdf046ca6ccd4342ef21e3e798bdb291dc19..e29a7e379d587ec7faf8ef1a322fba069b11aa75 100644 (file)
@@ -559,6 +559,8 @@ pub struct GarbageCollectionStatus {
     pub pending_bytes: u64,
     /// Number of pending chunks (pending removal - kept for safety).
     pub pending_chunks: usize,
+    /// Number of chunks marked as .bad by verify that have been removed by GC.
+    pub removed_bad: usize,
 }
 
 impl Default for GarbageCollectionStatus {
@@ -573,6 +575,7 @@ impl Default for GarbageCollectionStatus {
             removed_chunks: 0,
             pending_bytes: 0,
             pending_chunks: 0,
+            removed_bad: 0,
         }
     }
 }