diff options
author | Wayne Davison <wayned@samba.org> | 2016-10-10 11:49:50 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2016-10-10 11:53:03 -0700 |
commit | f3873b3d88b61167b106e7b9227a20147f8f6197 (patch) | |
tree | db2f44530da787ecd2da0d03e7770459c899e563 /trimslash.c | |
parent | 6e3b2102bc2c7df42aa4961a6460eae954c95af2 (diff) | |
download | rsync-f3873b3d88b61167b106e7b9227a20147f8f6197.tar.gz |
Support --sparse combined with --preallocate or --inplace.
The new code tries to punch holes in the destination file using newer
Linux fallocate features. It also supports a --whole-file + --sparse +
--inplace copy on any filesystem by truncating the destination file.
Diffstat (limited to 'trimslash.c')
-rw-r--r-- | trimslash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/trimslash.c b/trimslash.c index 207eaf2e..5db6f3e1 100644 --- a/trimslash.c +++ b/trimslash.c @@ -28,6 +28,8 @@ int read_only = 1; int list_only = 0; int preserve_perms = 0; int preserve_executability = 0; +int preallocate_files = 0; +int inplace = 0; int main(int argc, char **argv) |