]> git.proxmox.com Git - proxmox-backup.git/commit
client: pxar: add helper to handle optional preludes
authorChristian Ebner <c.ebner@proxmox.com>
Thu, 4 Apr 2024 10:49:42 +0000 (12:49 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 5 Jun 2024 14:39:41 +0000 (16:39 +0200)
commit0cbfaf64b574369e0fbefa9c43d89447e5efb3a4
tree446275c10974fef9b9f3d44ca930fd7bfc54a82f
parent7401be7e963703fa0a65f23b4411766bdc923265
client: pxar: add helper to handle optional preludes

Pxar archives with format version 2 allows to store optional
information file format version and prelude entries.

Cover the case for these entries, the file format version entry being
introduced to distinguish between different file formats used for
encoding as well as the prelude entry used to store optional metadata
such as the pxar cli exlude parameters.

Add the logic to accept and decode these prelude entries when
accessing the archive via a decoder instance.

For now simply ignore them.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
pbs-client/src/pxar/create.rs
pbs-client/src/pxar/extract.rs
pbs-client/src/pxar/tools.rs
pbs-client/src/tools/mod.rs
src/api2/tape/restore.rs
src/tape/file_formats/snapshot_archive.rs