extend --sync to allow {sync,dsync,0,1}, to support O_DSYNC
[fio.git] / filesetup.c
index e44f31c716a63eb12440da37fd50d3552db39e10..f4360a6f78e1b241dd15f43e49ccb0ade39baa6f 100644 (file)
@@ -655,8 +655,7 @@ int generic_open_file(struct thread_data *td, struct fio_file *f)
                }
                flags |= OS_O_DIRECT | FIO_O_ATOMIC;
        }
-       if (td->o.sync_io)
-               flags |= O_SYNC;
+       flags |= td->o.sync_io;
        if (td->o.create_on_open && td->o.allow_create)
                flags |= O_CREAT;
 skip_flags: