windowsaio: open file for write if we have syncs
authorJens Axboe <axboe@kernel.dk>
Sat, 26 Feb 2022 17:43:20 +0000 (10:43 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 26 Feb 2022 17:43:20 +0000 (10:43 -0700)
commitc3773c171dffb79f771d213d94249cefc4b9b6de
tree8a14e008258c491492926115e5445c1a3cd500ed
parent78c0d7a0120f7a117493811f6abf6c2a48a06453
windowsaio: open file for write if we have syncs

Windows wants the file opened for write if we do a file sync, so
ensure we do that if we have syncs.

Fixes: https://github.com/axboe/fio/issues/1352
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/windowsaio.c