This patch from Sami Farin lets you specify --fsync if you want fsync()
to be called on every file we write.
---- orig/options.c 2006-01-31 03:11:30
-+++ options.c 2006-01-28 00:16:23
+--- old/options.c
++++ new/options.c
@@ -42,6 +42,7 @@ int whole_file = -1;
int append_mode = 0;
int keep_dirlinks = 0;
if (basis_dir[0] && 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 2006-01-31 02:30:18
-+++ receiver.c 2005-02-20 00:17:37
+--- old/receiver.c
++++ new/receiver.c
@@ -38,6 +38,7 @@ extern int keep_dirlinks;
extern int preserve_hard_links;
extern int preserve_perms;
sum_end(file_sum1);
if (mapbuf)
---- orig/t_stub.c 2005-11-12 20:13:05
-+++ t_stub.c 2005-11-12 20:13:29
+--- old/t_stub.c
++++ new/t_stub.c
@@ -30,6 +30,7 @@ int modify_window = 0;
int module_id = -1;
int relative_paths = 0;
char *partial_dir;
struct filter_list_struct server_filter_list;
---- orig/util.c 2006-01-30 07:18:28
-+++ util.c 2005-11-12 20:13:44
+--- old/util.c
++++ new/util.c
@@ -30,6 +30,7 @@
extern int verbose;
extern int dry_run;