This patch from Sami Farin lets you specify --fsync if you want fsync()
to be called on every file we write.
---- options.c 7 Jun 2004 22:05:22 -0000 1.156
-+++ options.c 18 Jun 2004 17:26:45 -0000
+--- orig/options.c 2004-06-20 19:30:00
++++ options.c 2004-07-03 20:18:13
@@ -38,6 +38,7 @@ int make_backups = 0;
**/
int whole_file = -1;
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
---- receiver.c 14 Jun 2004 15:09:36 -0000 1.82
-+++ receiver.c 18 Jun 2004 17:26:45 -0000
+--- orig/receiver.c 2004-07-02 18:23:01
++++ receiver.c 2004-07-03 20:18:13
@@ -48,6 +48,7 @@ extern int ignore_errors;
extern int orig_umask;
extern int keep_partial;
static void delete_one(char *fn, int is_dir)
{
-@@ -276,6 +277,12 @@ static int receive_data(int f_in,struct
+@@ -274,6 +275,12 @@ static int receive_data(int f_in,struct
exit_cleanup(RERR_FILEIO);
}
sum_end(file_sum1);
read_buf(f_in,file_sum2,MD4_SUM_LENGTH);
---- util.c 9 Jun 2004 21:51:07 -0000 1.149
-+++ util.c 18 Jun 2004 17:26:46 -0000
+--- 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;
extern int module_id;
extern int modify_window;