From 2eb7ca6c05a10210a2b5b159de7b5333cf406f89 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 29 Jul 2004 16:26:08 +0000 Subject: [PATCH] No more need for the partial-dir.diff dependency. --- compare-dest.diff | 1 - fuzzy.diff | 7 +++---- g2r-basis-filename.diff | 26 ++++++++++++-------------- 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/compare-dest.diff b/compare-dest.diff index 9bd4959..a5f1c94 100644 --- a/compare-dest.diff +++ b/compare-dest.diff @@ -1,4 +1,3 @@ -Depends-On-Patch: partial-dir.diff Depends-On-Patch: g2r-basis-filename.diff This patch allows multiple --compare-dest or --link-dest options to be diff --git a/fuzzy.diff b/fuzzy.diff index 4e3cd81..12f2be5 100644 --- a/fuzzy.diff +++ b/fuzzy.diff @@ -1,4 +1,3 @@ -Depends-On-Patch: partial-dir.diff Depends-On-Patch: g2r-basis-filename.diff The changes to generator.c were greatly simplified, making the patch @@ -164,7 +163,7 @@ Be sure to run "make proto" before "make". if (preserve_hard_links) init_hard_links(flist); ---- orig/options.c 2004-07-26 16:43:48 +--- orig/options.c 2004-07-29 16:08:03 +++ options.c 2004-07-16 20:14:12 @@ -85,6 +85,7 @@ int safe_symlinks = 0; int copy_unsafe_links = 0; @@ -190,7 +189,7 @@ Be sure to run "make proto" before "make". /* TODO: Should this take an optional int giving the compression level? */ {"compress", 'z', POPT_ARG_NONE, &do_compression, 0, 0, 0 }, {"daemon", 0, POPT_ARG_NONE, &daemon_opt, 0, 0, 0 }, -@@ -1039,6 +1042,9 @@ void server_options(char **args,int *arg +@@ -1042,6 +1045,9 @@ void server_options(char **args,int *arg } } @@ -210,7 +209,7 @@ Be sure to run "make proto" before "make". extern int make_backups; extern int do_progress; extern char *backup_dir; ---- orig/rsync.yo 2004-07-28 02:26:19 +--- orig/rsync.yo 2004-07-29 16:08:04 +++ rsync.yo 2004-07-03 19:27:25 @@ -327,6 +327,7 @@ verb( -T --temp-dir=DIR create temporary files in directory DIR diff --git a/g2r-basis-filename.diff b/g2r-basis-filename.diff index 0ff296a..e299415 100644 --- a/g2r-basis-filename.diff +++ b/g2r-basis-filename.diff @@ -1,5 +1,3 @@ -Depends-On-Patch: partial-dir.diff - Added a pipe from the generator to the receiver that communicates what basis file we used to generate the file data (if it was not the default name). This optimizes away the basis-file search in @@ -9,7 +7,7 @@ support for multiple --compare-dest options). You must run "make proto" before compiling. ---- orig/generator.c 2004-07-28 09:58:28 +--- orig/generator.c 2004-07-29 16:08:03 +++ generator.c 2004-07-28 10:14:15 @@ -259,9 +259,9 @@ static void generate_and_send_sums(int f * out. It might be wrong. @@ -187,7 +185,7 @@ You must run "make proto" before compiling. } if (verbose > 2) ---- orig/main.c 2004-07-24 16:52:09 +--- orig/main.c 2004-07-29 16:08:03 +++ main.c 2004-07-22 00:10:43 @@ -58,6 +58,7 @@ extern int filesfrom_fd; extern pid_t cleanup_child_pid; @@ -240,7 +238,7 @@ You must run "make proto" before compiling. io_flush(FULL_FLUSH); report(f_in); -@@ -503,6 +511,11 @@ static int do_recv(int f_in,int f_out,st +@@ -504,6 +512,11 @@ static int do_recv(int f_in,int f_out,st stop_write_batch(); close(error_pipe[1]); @@ -252,7 +250,7 @@ You must run "make proto" before compiling. if (f_in != f_out) close(f_in); -@@ -510,7 +523,7 @@ static int do_recv(int f_in,int f_out,st +@@ -511,7 +524,7 @@ static int do_recv(int f_in,int f_out,st set_msg_fd_in(error_pipe[0]); @@ -261,9 +259,9 @@ You must run "make proto" before compiling. get_redo_num(); /* Read final MSG_DONE and any prior messages. */ report(-1); ---- orig/receiver.c 2004-07-27 23:26:20 +--- orig/receiver.c 2004-07-29 16:08:03 +++ receiver.c 2004-07-23 21:59:07 -@@ -325,6 +325,30 @@ static int receive_data(int f_in, char * +@@ -323,6 +323,30 @@ static int receive_data(int f_in, char * } @@ -294,7 +292,7 @@ You must run "make proto" before compiling. static void discard_receive_data(int f_in, OFF_T length) { receive_data(f_in, NULL, -1, 0, NULL, -1, length); -@@ -335,7 +359,8 @@ static void discard_receive_data(int f_i +@@ -333,7 +357,8 @@ static void discard_receive_data(int f_i * main routine for receiver process. * * Receiver process runs on the same host as the generator process. */ @@ -304,7 +302,7 @@ You must run "make proto" before compiling. { int next_gen_i = -1; int fd1,fd2; -@@ -364,8 +389,15 @@ int recv_files(int f_in, struct file_lis +@@ -362,8 +387,15 @@ int recv_files(int f_in, struct file_lis i = read_int(f_in); if (i == -1) { if (read_batch) { @@ -322,7 +320,7 @@ You must run "make proto" before compiling. next_gen_i = -1; } -@@ -413,6 +445,10 @@ int recv_files(int f_in, struct file_lis +@@ -411,6 +443,10 @@ int recv_files(int f_in, struct file_lis if (read_batch) { while (i > next_gen_i) { @@ -333,7 +331,7 @@ You must run "make proto" before compiling. next_gen_i = read_int(batch_gen_fd); if (next_gen_i == -1) next_gen_i = flist->count; -@@ -423,8 +459,14 @@ int recv_files(int f_in, struct file_lis +@@ -421,8 +457,14 @@ int recv_files(int f_in, struct file_lis discard_receive_data(f_in, file->length); continue; } @@ -348,7 +346,7 @@ You must run "make proto" before compiling. if (server_exclude_list.head && check_exclude(&server_exclude_list, fname, S_ISDIR(file->mode)) < 0) { -@@ -437,13 +479,7 @@ int recv_files(int f_in, struct file_lis +@@ -435,13 +477,7 @@ int recv_files(int f_in, struct file_lis continue; } @@ -363,7 +361,7 @@ You must run "make proto" before compiling. /* open the file */ fd1 = do_open(fnamecmp, O_RDONLY, 0); -@@ -453,14 +489,6 @@ int recv_files(int f_in, struct file_lis +@@ -451,14 +487,6 @@ int recv_files(int f_in, struct file_lis fd1 = do_open(fnamecmp, O_RDONLY, 0); } -- 2.34.1