X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/6cbbe66d61922c8ae52a4c7ee26b18e4a49d1ec6..206a087d04fb7abc822e9f3c8da4dc2610a1d773:/slow-down.diff diff --git a/slow-down.diff b/slow-down.diff index e035e2f..1f804e7 100644 --- a/slow-down.diff +++ b/slow-down.diff @@ -16,7 +16,7 @@ To use this patch, run these commands for a successful build: --- old/flist.c +++ new/flist.c -@@ -62,6 +62,7 @@ extern int copy_links; +@@ -61,6 +61,7 @@ extern int copy_links; extern int copy_unsafe_links; extern int protocol_version; extern int sanitize_paths; @@ -24,10 +24,10 @@ To use this patch, run these commands for a successful build: extern struct stats stats; extern char curr_dir[MAXPATHLEN]; -@@ -1463,6 +1464,9 @@ static void send_directory(int f, struct +@@ -1470,6 +1471,9 @@ static void send_directory(int f, struct } - send_file_name(f, flist, fbuf, NULL, flags, filter_flags); + send_file_name(f, flist, fbuf, NULL, flags, filter_level); + /* Sleep for a bit, to avoid hammering the disk. */ + if (sleep_asec) + usleep(sleep_asec); @@ -36,7 +36,7 @@ To use this patch, run these commands for a successful build: fbuf[len] = '\0'; --- old/options.c +++ new/options.c -@@ -105,6 +105,7 @@ int size_only = 0; +@@ -104,6 +104,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; -@@ -405,6 +406,7 @@ void usage(enum logcode F) +@@ -404,6 +405,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"); -@@ -567,6 +569,7 @@ static struct poptOption long_options[] +@@ -566,6 +568,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 },