5
0
mirror of git://git.proxmox.com/git/pxar.git synced 2025-03-11 20:58:47 +03:00
Christian Ebner 99d4f646be encoder: allow split output writer for archive creation
During regular pxar archive encoding, the payload of regular files is
written as part of the archive.

This patch introduces functionality to instead attach a writer variant
with a split payload writer instance to redirect the payload to a
different output.
The separation of data and metadata streams allows for efficient
reuse of payload data by referencing the payload writer byte offset,
without having to reencode it.

Whenever the payload of regular files is redirected to a dedicated
output writer, encode a payload reference header followed by the
required data to locate the data, instead of adding the regular payload
header followed by the encoded payload to the archive.

This is in preparation for reusing payload chunks for unchanged files
of backups created via the proxmox-backup-client.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2024-06-05 09:24:22 +02:00
2023-07-31 15:45:17 +02:00
2020-03-05 10:46:18 +01:00
2022-10-27 15:28:22 +02:00
2022-10-27 15:31:33 +02:00
2020-02-18 14:08:02 +01:00
2020-06-26 08:59:03 +02:00
Description
No description provided
388 KiB
Languages
Rust 99.4%
Makefile 0.6%