X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/9c85142a129f5df5aac5b732159abe1d695a8edd..d4dd2dd52f48a66395428810389ef31cc0488db7:/slow-down.diff diff --git a/slow-down.diff b/slow-down.diff index 1f804e7..a5083cb 100644 --- a/slow-down.diff +++ b/slow-down.diff @@ -16,15 +16,15 @@ To use this patch, run these commands for a successful build: --- old/flist.c +++ new/flist.c -@@ -61,6 +61,7 @@ extern int copy_links; - extern int copy_unsafe_links; - extern int protocol_version; +@@ -65,6 +65,7 @@ extern int protocol_version; extern int sanitize_paths; + extern int need_unsorted_flist; + extern int unsort_ndx; +extern unsigned long sleep_asec; extern struct stats stats; + extern char *filesfrom_host; - extern char curr_dir[MAXPATHLEN]; -@@ -1470,6 +1471,9 @@ static void send_directory(int f, struct +@@ -1480,6 +1481,9 @@ static void send_directory(int f, struct } send_file_name(f, flist, fbuf, NULL, flags, filter_level); @@ -36,7 +36,7 @@ To use this patch, run these commands for a successful build: fbuf[len] = '\0'; --- old/options.c +++ new/options.c -@@ -104,6 +104,7 @@ int size_only = 0; +@@ -106,6 +106,7 @@ int size_only = 0; int daemon_bwlimit = 0; int bwlimit = 0; int fuzzy_basis = 0; @@ -44,7 +44,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; -@@ -404,6 +405,7 @@ void usage(enum logcode F) +@@ -416,6 +417,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 +52,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"); -@@ -566,6 +568,7 @@ static struct poptOption long_options[] +@@ -583,6 +585,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 },