diff --git a/engines/windowsaio.c b/engines/windowsaio.c index d82c805361..6681f8bbab 100644 --- a/engines/windowsaio.c +++ b/engines/windowsaio.c @@ -248,7 +248,7 @@ static int fio_windowsaio_open_file(struct thread_data *td, struct fio_file *f) log_err("fio: unknown fadvise type %d\n", td->o.fadvise_hint); } - if (!td_write(td) || read_only) + if ((!td_write(td) && !(td->flags & TD_F_SYNCS)) || read_only) access = GENERIC_READ; else access = (GENERIC_READ | GENERIC_WRITE);