Merge pull request #2893 from MichaelEischer/restore-preallocate

restorer: Preallocate files
This commit is contained in:
MichaelEischer
2020-09-08 22:43:05 +02:00
committed by GitHub
9 changed files with 133 additions and 11 deletions

View File

@@ -14,4 +14,10 @@ file can be written to the file before any of the preceeding file blobs.
It is therefore possible to have gaps in the data written to the target
files if restore fails or interrupted by the user.
The implementation will try to preallocate space for the restored files
on the filesystem to prevent file fragmentation. This ensures good read
performance for large files, like for example VM images. If preallocating
space is not supported by the filesystem, then this step is silently skipped.
https://github.com/restic/restic/pull/2195
https://github.com/restic/restic/pull/2893