diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/cow.c | 2 | ||||
-rw-r--r-- | block/raw-posix.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/block/cow.c b/block/cow.c index 84818f1034..a70854e631 100644 --- a/block/cow.c +++ b/block/cow.c @@ -258,7 +258,7 @@ static int cow_create(const char *filename, QEMUOptionParameter *options) static void cow_flush(BlockDriverState *bs) { BDRVCowState *s = bs->opaque; - fsync(s->fd); + qemu_fdatasync(s->fd); } static QEMUOptionParameter cow_create_options[] = { diff --git a/block/raw-posix.c b/block/raw-posix.c index 2125d67a5f..2ebc88f004 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -723,7 +723,7 @@ static int raw_create(const char *filename, QEMUOptionParameter *options) static void raw_flush(BlockDriverState *bs) { BDRVRawState *s = bs->opaque; - fsync(s->fd); + qemu_fdatasync(s->fd); } |