summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorJ.W. Schultz <jw@samba.org>2003-04-10 02:04:58 +0000
committerJ.W. Schultz <jw@samba.org>2003-04-10 02:04:58 +0000
commit195bd906a2bacbce7455405180bfecf60819a60d (patch)
tree00d21ec018b3cb8b933ee2361bcf6f119bb2eefa /options.c
parentfc1ae6582fa5e199cc9c50dc2297297c1893955c (diff)
downloadrsync-195bd906a2bacbce7455405180bfecf60819a60d.tar.gz
- Per-file dynamic block size is now sqrt(file length).
- The per-file checksum size is determined according to an algorythm provided by Donovan Baarda which reduces the probability of rsync algorithm corrupting data and falling back using the whole md4 checksums.
Diffstat (limited to 'options.c')
-rw-r--r--options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options.c b/options.c
index 772a87fa..14019a23 100644
--- a/options.c
+++ b/options.c
@@ -77,7 +77,7 @@ int do_progress=0;
int keep_partial=0;
int safe_symlinks=0;
int copy_unsafe_links=0;
-int block_size=BLOCK_SIZE;
+int block_size=0;
int size_only=0;
int bwlimit=0;
int delete_after=0;
@@ -775,7 +775,7 @@ void server_options(char **args,int *argc)
if (x != 1) args[ac++] = argstr;
- if (block_size != BLOCK_SIZE) {
+ if (block_size) {
snprintf(bsize,sizeof(bsize),"-B%d",block_size);
args[ac++] = bsize;
}