]> git.proxmox.com Git - proxmox-backup.git/commitdiff
debug: Show if chunks are compressed during inspect
authorMaximiliano Sandoval R <m.sandoval@proxmox.com>
Tue, 7 Nov 2023 13:17:21 +0000 (14:17 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 8 Nov 2023 15:35:26 +0000 (16:35 +0100)
Signed-off-by: Maximiliano Sandoval R <m.sandoval@proxmox.com>
src/bin/proxmox_backup_debug/inspect.rs

index 29265e26dbeeb0b86a05267ab614b1f0583e6aa0..b59f8c412a59de13959eac5c8b4a5b2d66938efa 100644 (file)
@@ -190,17 +190,20 @@ fn inspect_chunk(
         Some(references) => json!({
             "crc": crc_status,
             "encryption": blob.crypt_mode()?,
+            "is-compressed": blob.is_compressed(),
             "referenced-by": references
         }),
         None => json!({
              "crc": crc_status,
              "encryption": blob.crypt_mode()?,
+             "is-compressed": blob.is_compressed(),
         }),
     };
 
     if output_format == "text" {
         println!("CRC: {}", val["crc"]);
         println!("encryption: {}", val["encryption"]);
+        println!("is-compressed: {}", val["is-compressed"]);
         if let Some(refs) = val["referenced-by"].as_array() {
             println!("referenced by:");
             for reference in refs {