[pbs-devel] [PATCH proxmox/proxmox-backup v3] restore files from pxar sparsely

Dominik Csapak d.csapak at proxmox.com
Tue Feb 9 10:36:58 CET 2021


to be able to restore containers with big sparse files

ideally(?) we would save hole information directly in the pxar archive
and not even use zero chunks, so that we can have smaller
pxar archives, and accurately restore sparse files like they were before

for now, restore all files sparsely

i am not sure if v2 or this is better, since before we could
restore if truncate did not work, now we fail
but we have probably less io.

changes from v2:
* always sparse copy and truncate after

changes from RFC:
* drop the zero module of proxmox, rust can generate fast code by itself

proxmox:

Dominik Csapak (1):
  proxmox: add sparse_copy(_async) to tools::io

 proxmox/src/tools/io/mod.rs | 70 +++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

proxmox-backup:

Dominik Csapak (1):
  pxar/extract: if possible create files sparesly

 src/pxar/extract.rs | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

-- 
2.20.1






More information about the pbs-devel mailing list