[pbs-devel] [PATCH v2 stable-2 pxar proxmox-backup 0/2] backport pxar format version check

Christian Ebner c.ebner at proxmox.com
Wed Jun 5 17:41:53 CEST 2024


This patches backport the format version entry present in pxar archives
to start with format version 2 and allows to early bail on archives
when an incompatible format version is detected.

changes since version 1:
- adapted to FormatVersion deserializer as present in bumped pxar
  version
- added check to cover also access via Accessor instances
- removed display implementation and adapted bail message
- added additional checks to pxar bin

pxar:

Christian Ebner (1):
  format/decoder/accessor: backport pxar entry type `Version`

 examples/mk-format-hashes.rs |  5 +++++
 src/accessor/mod.rs          | 28 ++++++++++++++++++++++++++--
 src/decoder/mod.rs           | 28 ++++++++++++++++++++++++++--
 src/format/mod.rs            | 19 +++++++++++++++++++
 src/lib.rs                   |  3 +++
 tests/simple/fs.rs           |  1 +
 6 files changed, 80 insertions(+), 4 deletions(-)

proxmox-backup:

Christian Ebner (1):
  client: pxar: bail on incompatible format versions

 pbs-client/src/catalog_shell.rs |  2 +-
 pbs-client/src/pxar/extract.rs  |  3 +++
 pbs-client/src/pxar/tools.rs    | 14 ++++++++------
 pxar-bin/src/main.rs            |  6 +++++-
 4 files changed, 17 insertions(+), 8 deletions(-)

-- 
2.30.2





More information about the pbs-devel mailing list