proxmox-backup/src/pxar
Dominik Csapak cba167b874 pxar/extract: if possible create files sparesly
instead of filling them with zeroes

this fixes an issue where we could not restore a container with large
sparse files in the backup (e.g. a 10GiB sparse file in a container
with a 8GiB disk)

if the last operation of the copy was a seek, we need to truncate
the file to the correct size (seek beyond filesize does not change it)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-02-23 14:44:59 +01:00
..
catalog.rs fix #2998: encode mtime as i64 instead of u64 2020-10-29 08:51:10 +01:00
create.rs asyncify pxar create_archive 2021-02-17 09:24:20 +01:00
dir_stack.rs pxar: stricter file descriptor guards 2020-11-30 11:25:53 +01:00
extract.rs pxar/extract: if possible create files sparesly 2021-02-23 14:44:59 +01:00
flags.rs pxar: restore file attributes, improve errors 2020-07-14 10:25:45 +02:00
fuse.rs clippy: remove/replace needless explicit lifetimes 2021-01-20 16:23:54 +01:00
metadata.rs pxar: improve error messages 2021-02-09 13:09:00 +01:00
mod.rs pxar/extract: add extract_sub_dir 2021-02-17 08:32:41 +01:00
tools.rs avoid chrono dependency, depend on proxmox 0.3.8 2020-09-15 07:12:57 +02:00