From dfcd8187629d70028e4295440fded66cfea09d55 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 16 Apr 2012 04:58:28 -0700 Subject: [PATCH] Added O_DSYNC semantics to the RAW file open() call for *nix platforms. This makes *nix RAW I/O behavior consistent with windows RAW I/O. --- sim_disk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sim_disk.c b/sim_disk.c index 0b5e72b4..32746631 100644 --- a/sim_disk.c +++ b/sim_disk.c @@ -1652,6 +1652,9 @@ else #ifdef O_LARGEFILE mode |= O_LARGEFILE; #endif +#ifdef O_DSYNC +mode |= O_DSYNC; +#endif return (FILE *)((long)open (rawdevicename, mode, 0)); }