5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-02-05 21:57:43 +03:00

debug: Show if chunks are compressed during inspect

Signed-off-by: Maximiliano Sandoval R <m.sandoval@proxmox.com>
This commit is contained in:
Maximiliano Sandoval R 2023-11-07 14:17:21 +01:00 committed by Thomas Lamprecht
parent 462077df42
commit 4c147b3972

View 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 {