proxmox-backup/src
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
..
api2 api2/admin/datastore: refactor create_zip into pxar/extract 2021-02-17 08:32:41 +01:00
backup api2/admin/datastore: refactor list_dir_content in catalog_reader 2021-02-17 08:32:41 +01:00
bin asyncify pxar create_archive 2021-02-17 09:24:20 +01:00
client asyncify pxar create_archive 2021-02-17 09:24:20 +01:00
config proxmox-backup-proxy: schedule tape backup jobs 2021-02-15 08:30:42 +01:00
pxar asyncify pxar create_archive 2021-02-17 09:24:20 +01:00
rrd clippy: more misc fixes 2021-01-26 09:54:55 +01:00
server rest: implement tower service for UnixStream 2021-02-17 07:50:35 +01:00
tape tape: add regression test for compute_media_state 2021-02-17 06:57:29 +01:00
tools HttpsConnector: use hostname instead of URL again 2021-02-03 15:18:18 +01:00
api2.rs cleanup: move scan changers API implementation 2021-01-27 09:58:16 +01:00
auth_helpers.rs avoid chrono dependency, depend on proxmox 0.3.8 2020-09-15 07:12:57 +02:00
auth.rs clippy fixups 2020-10-14 11:20:07 +02:00
backup.rs cleanup: use extra file for StoreProgress 2020-12-01 06:34:33 +01:00
buildcfg.rs buildcfg: add rundir helper macro 2021-01-11 10:22:32 +01:00
client.rs client: add VsockClient to connect to virtio-vsock VMs 2021-02-17 08:15:43 +01:00
config.rs tape: add tape backup job configuration 2021-02-14 10:35:51 +01:00
lib.rs tape: add file format definitions 2020-12-05 10:45:08 +01:00
server.rs api: tfa management and login 2021-01-11 10:22:32 +01:00
task.rs introduce TaskState trait 2020-10-12 14:11:57 +02:00
tools.rs paperkey: move code to src/tools/paperkey.rs 2021-01-22 09:42:59 +01:00