[pbs-devel] [PATCH v3 proxmox-backup 52/58] client: pxar: add entry kind format version
Christian Ebner
c.ebner at proxmox.com
Thu Mar 28 13:37:01 CET 2024
Cover the match case for the format version entry introduced to
distinguish between different file formats used for encoding.
For now simply ignore it.
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
changes since version 2:
- not present in previous version
pbs-client/src/pxar/extract.rs | 1 +
pbs-client/src/pxar/tools.rs | 1 +
2 files changed, 2 insertions(+)
diff --git a/pbs-client/src/pxar/extract.rs b/pbs-client/src/pxar/extract.rs
index 5f5ac6188..56f8d7adc 100644
--- a/pbs-client/src/pxar/extract.rs
+++ b/pbs-client/src/pxar/extract.rs
@@ -267,6 +267,7 @@ where
};
let extract_res = match (did_match, entry.kind()) {
+ (_, EntryKind::Version(_)) => Ok(()),
(_, EntryKind::Directory) => {
self.callback(entry.path());
diff --git a/pbs-client/src/pxar/tools.rs b/pbs-client/src/pxar/tools.rs
index 459951d50..4e9bd5b60 100644
--- a/pbs-client/src/pxar/tools.rs
+++ b/pbs-client/src/pxar/tools.rs
@@ -172,6 +172,7 @@ pub fn format_multi_line_entry(entry: &Entry) -> String {
let meta = entry.metadata();
let (size, link, type_name, payload_offset) = match entry.kind() {
+ EntryKind::Version(version) => (format!("{version:?}"), String::new(), "version", None),
EntryKind::File {
size,
payload_offset,
--
2.39.2
More information about the pbs-devel
mailing list