[pbs-devel] [PATCH v7 proxmox-backup 56/69] pxar: ignore version and prelude entries in listing

Christian Ebner c.ebner at proxmox.com
Mon May 27 16:33:10 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 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 a3b6ec4c0..7efecd524 100644
--- a/pxar-bin/src/main.rs
+++ b/pxar-bin/src/main.rs
@@ -483,6 +483,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