* [pbs-devel] [PATCH backup 1/2] debug: Show if chunks are compressed during inspect
@ 2023-11-03 13:46 Maximiliano Sandoval R
2023-11-03 13:46 ` [pbs-devel] [PATCH backup 2/2] debug: Show chunk size while inspecting Maximiliano Sandoval R
2023-11-07 9:13 ` [pbs-devel] [PATCH backup 1/2] debug: Show if chunks are compressed during inspect Thomas Lamprecht
0 siblings, 2 replies; 3+ messages in thread
From: Maximiliano Sandoval R @ 2023-11-03 13:46 UTC (permalink / raw)
To: pbs-devel
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 29265e26..f3a13f3d 100644
--- a/src/bin/proxmox_backup_debug/inspect.rs
+++ b/src/bin/proxmox_backup_debug/inspect.rs
@@ -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 {
--
2.39.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pbs-devel] [PATCH backup 2/2] debug: Show chunk size while inspecting
2023-11-03 13:46 [pbs-devel] [PATCH backup 1/2] debug: Show if chunks are compressed during inspect Maximiliano Sandoval R
@ 2023-11-03 13:46 ` Maximiliano Sandoval R
2023-11-07 9:13 ` [pbs-devel] [PATCH backup 1/2] debug: Show if chunks are compressed during inspect Thomas Lamprecht
1 sibling, 0 replies; 3+ messages in thread
From: Maximiliano Sandoval R @ 2023-11-03 13:46 UTC (permalink / raw)
To: pbs-devel
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 f3a13f3d..ee897fd1 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [pbs-devel] [PATCH backup 1/2] debug: Show if chunks are compressed during inspect
2023-11-03 13:46 [pbs-devel] [PATCH backup 1/2] debug: Show if chunks are compressed during inspect Maximiliano Sandoval R
2023-11-03 13:46 ` [pbs-devel] [PATCH backup 2/2] debug: Show chunk size while inspecting Maximiliano Sandoval R
@ 2023-11-07 9:13 ` Thomas Lamprecht
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Lamprecht @ 2023-11-07 9:13 UTC (permalink / raw)
To: Proxmox Backup Server development discussion, Maximiliano Sandoval R
Am 03/11/2023 um 14:46 schrieb Maximiliano Sandoval R:
> 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 29265e26..f3a13f3d 100644
> --- a/src/bin/proxmox_backup_debug/inspect.rs
> +++ b/src/bin/proxmox_backup_debug/inspect.rs
> @@ -190,17 +190,20 @@ fn inspect_chunk(
> Some(references) => json!({
> "crc": crc_status,
> "encryption": blob.crypt_mode()?,
> + "is_compressed": blob.is_compressed(),
please use kebab-case, as the entry below does...
> "referenced-by": references
> }),
> None => json!({
> "crc": crc_status,
> "encryption": blob.crypt_mode()?,
> + "is_compressed": blob.is_compressed(),
same
> }),
> };
>
> if output_format == "text" {
> println!("CRC: {}", val["crc"]);
> println!("encryption: {}", val["encryption"]);
> + println!("is_compressed: {}", val["is_compressed"]);
same
> if let Some(refs) = val["referenced-by"].as_array() {
> println!("referenced by:");
> for reference in refs {
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-07 9:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-03 13:46 [pbs-devel] [PATCH backup 1/2] debug: Show if chunks are compressed during inspect Maximiliano Sandoval R
2023-11-03 13:46 ` [pbs-devel] [PATCH backup 2/2] debug: Show chunk size while inspecting Maximiliano Sandoval R
2023-11-07 9:13 ` [pbs-devel] [PATCH backup 1/2] debug: Show if chunks are compressed during inspect Thomas Lamprecht
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.