X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/e9d4ab8849c465e766a494765b29e26564f284d0..cc3e685d09b2095099fc396157d19172ab3ef7c4:/slow-down.diff diff --git a/slow-down.diff b/slow-down.diff index a5083cb..55ba0bb 100644 --- a/slow-down.diff +++ b/slow-down.diff @@ -14,17 +14,18 @@ To use this patch, run these commands for a successful build: ./configure (optional if already run) make ---- old/flist.c -+++ new/flist.c -@@ -65,6 +65,7 @@ extern int protocol_version; - extern int sanitize_paths; +diff --git a/flist.c b/flist.c +--- a/flist.c ++++ b/flist.c +@@ -66,6 +66,7 @@ extern int sanitize_paths; + extern int munge_symlinks; extern int need_unsorted_flist; extern int unsort_ndx; +extern unsigned long sleep_asec; extern struct stats stats; extern char *filesfrom_host; -@@ -1480,6 +1481,9 @@ static void send_directory(int f, struct +@@ -1494,6 +1495,9 @@ static void send_directory(int f, struct file_list *flist, char *fbuf, int len, } send_file_name(f, flist, fbuf, NULL, flags, filter_level); @@ -34,9 +35,10 @@ To use this patch, run these commands for a successful build: } fbuf[len] = '\0'; ---- old/options.c -+++ new/options.c -@@ -106,6 +106,7 @@ int size_only = 0; +diff --git a/options.c b/options.c +--- a/options.c ++++ b/options.c +@@ -107,6 +107,7 @@ int size_only = 0; int daemon_bwlimit = 0; int bwlimit = 0; int fuzzy_basis = 0; @@ -44,7 +46,7 @@ To use this patch, run these commands for a successful build: size_t bwlimit_writemax = 0; int ignore_existing = 0; int ignore_non_existing = 0; -@@ -416,6 +417,7 @@ void usage(enum logcode F) +@@ -418,6 +419,7 @@ void usage(enum logcode F) rprintf(F," --password-file=FILE read daemon-access password from FILE\n"); rprintf(F," --list-only list the files instead of copying them\n"); rprintf(F," --bwlimit=KBPS limit I/O bandwidth; KBytes per second\n"); @@ -52,7 +54,7 @@ To use this patch, run these commands for a successful build: rprintf(F," --write-batch=FILE write a batched update to FILE\n"); rprintf(F," --only-write-batch=FILE like --write-batch but w/o updating destination\n"); rprintf(F," --read-batch=FILE read a batched update from FILE\n"); -@@ -583,6 +585,7 @@ static struct poptOption long_options[] +@@ -585,6 +587,7 @@ static struct poptOption long_options[] = { {"itemize-changes", 'i', POPT_ARG_NONE, 0, 'i', 0, 0 }, {"no-itemize-changes",0, POPT_ARG_VAL, &itemize_changes, 0, 0, 0 }, {"no-i", 0, POPT_ARG_VAL, &itemize_changes, 0, 0, 0 },