]> granicus.if.org Git - spl/commitdiff
FRSYNC Should Use O_SYNC
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 11 Jan 2011 19:54:21 +0000 (11:54 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 12 Jan 2011 19:38:04 +0000 (11:38 -0800)
The Solaris FRSYNC maps most logically to the Linux O_SYNC.  There
is no O_RSYNC on Linux but this wasn't noticed until just recently.

include/sys/vnode.h

index b5969b3520a5169f355b5f0868f44b71bf9b4dd4..ef5c5920371ab22a2e7f0a0e28a930a581108809 100644 (file)
@@ -61,7 +61,7 @@
 #define FOFFMAX                O_LARGEFILE
 #define FSYNC          O_SYNC
 #define FDSYNC         O_DSYNC
-#define FRSYNC         O_RSYNC
+#define FRSYNC         O_SYNC
 #define FEXCL          O_EXCL
 #define FDIRECT                O_DIRECT
 #define FAPPEND                O_APPEND