-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement filesystem-level cloning to reduce disk usage and improve p…
…erformance (#55) * Add seed/reflink support * Reimplement progress bar using a 3rd-party library * Add basic seed test * Break out the seedfile tests into a dedicated section and add more * Auto-detect FS blocksize used for reflinking * Implement self-seed to allow reflinking within the same file as it's being written * When cloning from the nullchunk seed isn't available and the target file is blank, no need to copy 0 byte ranges * First documentation for reflink/seed feature * Build ioctl Linux-only code only on Linux * Add -seed-dir option for the extract command * Add -stats option to extract command to show details about the operation * Use a fixed buffer when copying from seeds to avoid io.Copy running out of memory * Add test for self-seed * Tests should clean up temp files * Use less memory when recording write progress in the self-seed * Save CPU time, less looping, when writing self-seed * Fix chunk alignment issue. Only clone from self-seed if source and target chunks are aligned * Don't write stats to STDOUT
- Loading branch information
Showing
28 changed files
with
1,283 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.