summaryrefslogtreecommitdiff
path: root/trimslash.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2016-10-10 11:49:50 -0700
committerWayne Davison <wayned@samba.org>2016-10-10 11:53:03 -0700
commitf3873b3d88b61167b106e7b9227a20147f8f6197 (patch)
treedb2f44530da787ecd2da0d03e7770459c899e563 /trimslash.c
parent6e3b2102bc2c7df42aa4961a6460eae954c95af2 (diff)
downloadrsync-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.c2
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)