]> git.proxmox.com Git - proxmox-backup.git/commit
client: pxar: encode prelude based on writer variant
authorChristian Ebner <c.ebner@proxmox.com>
Mon, 10 Jun 2024 11:06:21 +0000 (13:06 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 10 Jun 2024 11:11:38 +0000 (13:11 +0200)
commitafdc0f0e42a8a9b81b0da7e83e654f3413d3aba1
treef5ac048419eda918fa4b30649ab91d6b2cd13ebe
parent903ab2e9388e21a3a1ee8266bc97feb8be539665
client: pxar: encode prelude based on writer variant

Currently, whether to encode the exlcude patterns passed via cli as
prelude or via the `.pxar-exclude-cli` is based on the presence of
a previous metadata accessor.
That leaves however to the encoding of the file entry instead of the
prelude for split archives in `data` mode and for the first snapshot
in a backup, creating undesired padding in the first payload chunk.

Therefore, use the pxar writer variant to make the decision instead.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
pbs-client/src/pxar/create.rs