public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH v2 stable-2 pxar proxmox-backup 0/2] backport pxar format version check
@ 2024-06-05 15:41 Christian Ebner
  2024-06-05 15:41 ` [pbs-devel] [PATCH v2 stable-2 pxar 1/1] format/decoder/accessor: backport pxar entry type `Version` Christian Ebner
  2024-06-05 15:41 ` [pbs-devel] [PATCH v2 stable-2 proxmox-backup 2/2] client: pxar: bail on incompatible format versions Christian Ebner
  0 siblings, 2 replies; 6+ messages in thread
From: Christian Ebner @ 2024-06-05 15:41 UTC (permalink / raw)
  To: pbs-devel

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



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-06  9:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-05 15:41 [pbs-devel] [PATCH v2 stable-2 pxar proxmox-backup 0/2] backport pxar format version check Christian Ebner
2024-06-05 15:41 ` [pbs-devel] [PATCH v2 stable-2 pxar 1/1] format/decoder/accessor: backport pxar entry type `Version` Christian Ebner
2024-06-06  8:21   ` Fabian Grünbichler
2024-06-06  8:49     ` Christian Ebner
2024-06-06  9:05       ` Fabian Grünbichler
2024-06-05 15:41 ` [pbs-devel] [PATCH v2 stable-2 proxmox-backup 2/2] client: pxar: bail on incompatible format versions Christian Ebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal