public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval R <m.sandoval@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH backup v2 2/2] debug: Show chunk size while inspecting
Date: Tue,  7 Nov 2023 14:17:22 +0100	[thread overview]
Message-ID: <20231107131722.143724-2-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20231107131722.143724-1-m.sandoval@proxmox.com>

Signed-off-by: Maximiliano Sandoval R <m.sandoval@proxmox.com>
---
 src/bin/proxmox_backup_debug/inspect.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/proxmox_backup_debug/inspect.rs b/src/bin/proxmox_backup_debug/inspect.rs
index b59f8c41..28a472b0 100644
--- a/src/bin/proxmox_backup_debug/inspect.rs
+++ b/src/bin/proxmox_backup_debug/inspect.rs
@@ -191,12 +191,14 @@ fn inspect_chunk(
             "crc": crc_status,
             "encryption": blob.crypt_mode()?,
             "is-compressed": blob.is_compressed(),
+            "size": blob.raw_size(),
             "referenced-by": references
         }),
         None => json!({
              "crc": crc_status,
              "encryption": blob.crypt_mode()?,
              "is-compressed": blob.is_compressed(),
+             "size": blob.raw_size(),
         }),
     };
 
@@ -204,6 +206,7 @@ fn inspect_chunk(
         println!("CRC: {}", val["crc"]);
         println!("encryption: {}", val["encryption"]);
         println!("is-compressed: {}", val["is-compressed"]);
+        println!("size: {}", val["size"]);
         if let Some(refs) = val["referenced-by"].as_array() {
             println!("referenced by:");
             for reference in refs {
-- 
2.39.2





  reply	other threads:[~2023-11-07 13:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-07 13:17 [pbs-devel] [PATCH backup v2 1/2] debug: Show if chunks are compressed during inspect Maximiliano Sandoval R
2023-11-07 13:17 ` Maximiliano Sandoval R [this message]
2023-11-08 15:35 ` [pbs-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231107131722.143724-2-m.sandoval@proxmox.com \
    --to=m.sandoval@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal