[pbs-devel] [PATCH v8 proxmox-backup 56/69] pxar: ignore version and prelude entries in listing
Christian Ebner
c.ebner at proxmox.com
Tue May 28 11:42:50 CEST 2024
Do not list the pxar format version and the prelude entries in the
output of pxar list, these are not regular entries.
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
changes since version 7:
- no changes
changes since version 6:
- not present
pxar-bin/src/main.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/pxar-bin/src/main.rs b/pxar-bin/src/main.rs
index 2cf8def53..69d948e73 100644
--- a/pxar-bin/src/main.rs
+++ b/pxar-bin/src/main.rs
@@ -484,6 +484,7 @@ fn dump_archive(archive: String, payload_input: Option<String>) -> Result<(), Er
if log::log_enabled!(log::Level::Debug) {
match entry.kind() {
+ EntryKind::Version(_) | EntryKind::Prelude(_) => continue,
EntryKind::File {
payload_offset: Some(offset),
size,
--
2.39.2
More information about the pbs-devel
mailing list