restore: support sparse restores also on windows

This commit is contained in:
Michael Eischer
2022-09-04 11:23:31 +02:00
parent 0f89f443c7
commit 19afad8a09
8 changed files with 129 additions and 63 deletions

View File

@@ -1,8 +1,8 @@
Enhancement: Restore files with many zeros as sparse files
On all platforms except Windows, the restorer may now write files containing
long runs of zeros as sparse files (also called files with holes): the zeros
are not actually written to disk.
When using `restore --sparse`, the restorer may now write files containing long
runs of zeros as sparse files (also called files with holes): the zeros are not
actually written to disk.
How much space is saved by writing sparse files depends on the operating
system, file system and the distribution of zeros in the file.