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:
parent
462077df42
commit
4c147b3972
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user