proxmox-backup/src/pxar
Stefan Reiter 6afb60abf5 asyncify pxar create_archive
...to take advantage of the aio::Encoder from the pxar create.

Rather straightforward conversion, but does require getting rid of
references in the Archiver struct, and thus has to be given the Mutex
for the catalog directly. The callback is boxed.

archive_dir_contents can call itself recursively, and thus needs to
return a boxed future.

Users are adjusted, namely PxarBackupStream is converted to use an
Abortable future instead of a thread so it supports async in its handler
function, and the pxar bin create_archive is converted to an async API
function. One test case is made to just use 'block_on'.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-17 09:24:20 +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: add extract_sub_dir 2021-02-17 08:32:41 +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