[pbs-devel] [PATCH backup v2 2/2] debug: Show chunk size while inspecting
Maximiliano Sandoval R
m.sandoval at proxmox.com
Tue Nov 7 14:17:22 CET 2023
Signed-off-by: Maximiliano Sandoval R <m.sandoval at 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
More information about the pbs-devel
mailing list