X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/a5e6228afbf1809d33d9a31e0895c5e955c39ce1..7170ca8dba0a407cd0c91b41b48163c7b682abb1:/slow-down.diff diff --git a/slow-down.diff b/slow-down.diff index df1090a..c315470 100644 --- a/slow-down.diff +++ b/slow-down.diff @@ -14,18 +14,19 @@ To use this patch, run these commands for a successful build: ./configure (optional if already run) make +based-on: 181c9faf928faad08ef095f4667afe460ec3bef6 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; +@@ -71,6 +71,7 @@ extern int sender_symlink_iconv; + extern int output_needs_newline; + extern int sender_keeps_checksum; extern int unsort_ndx; +extern unsigned long sleep_asec; extern struct stats stats; extern char *filesfrom_host; - -@@ -1500,6 +1501,9 @@ static void send_directory(int f, struct file_list *flist, char *fbuf, int len, + extern char *usermap, *groupmap; +@@ -1714,6 +1715,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); @@ -46,7 +47,7 @@ diff --git a/options.c b/options.c size_t bwlimit_writemax = 0; int ignore_existing = 0; int ignore_non_existing = 0; -@@ -419,6 +420,7 @@ void usage(enum logcode F) +@@ -775,6 +776,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"); @@ -54,7 +55,7 @@ diff --git a/options.c b/options.c 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"); -@@ -586,6 +588,7 @@ static struct poptOption long_options[] = { +@@ -963,6 +965,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 },