This patch from Sami Farin lets you specify --fsync if you want fsync()
to be called on every file we write.
---- orig/options.c 2004-07-16 20:07:22
+--- orig/options.c 2004-07-20 21:36:07
+++ options.c 2004-07-03 20:18:13
@@ -38,6 +38,7 @@ int make_backups = 0;
**/
rprintf(F," --suffix=SUFFIX backup suffix (default %s w/o --backup-dir)\n",BACKUP_SUFFIX);
+ rprintf(F," --fsync fsync every written file\n");
rprintf(F," -u, --update update only (don't overwrite newer files)\n");
- rprintf(F," --inplace update the destination file inplace (see man page)\n");
+ rprintf(F," --inplace update destination files inplace (SEE MAN PAGE)\n");
rprintf(F," -K, --keep-dirlinks treat symlinked dir on receiver as dir\n");
@@ -343,6 +345,7 @@ static struct poptOption long_options[]
{"safe-links", 0, POPT_ARG_NONE, &safe_symlinks, 0, 0, 0 },
if (compare_dest && am_sender) {
/* the server only needs this option if it is not the sender,
* and it may be an older version that doesn't know this
---- orig/receiver.c 2004-07-16 20:07:22
+--- orig/receiver.c 2004-07-20 21:36:07
+++ receiver.c 2004-07-16 20:13:31
@@ -35,6 +35,7 @@ extern int preserve_hard_links;
extern int preserve_perms;
extern char *tmpdir;
extern char *compare_dest;
extern int make_backups;
-@@ -289,6 +290,12 @@ static int receive_data(int f_in,struct
+@@ -304,6 +305,12 @@ static int receive_data(int f_in, char *
exit_cleanup(RERR_FILEIO);
}
+
sum_end(file_sum1);
- read_buf(f_in,file_sum2,MD4_SUM_LENGTH);
+ if (mapbuf)
--- orig/util.c 2004-06-09 21:54:47
+++ util.c 2004-07-03 20:18:13
@@ -32,6 +32,7 @@ extern int dry_run;