summary refs log tree commit diff stats
path: root/util/qemu-thread-posix.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2021-04-15 14:28:16 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2021-06-14 13:28:50 +0100
commitc7ddc8821d88d958bb6d4ef1279ec3609b17ffda (patch)
treee5754ff57554c957912e154efa488a63918e8d1d /util/qemu-thread-posix.c
parent8af3f5c6d66ac203000c2d8ebebd3b751f575008 (diff)
downloadfocaccia-qemu-c7ddc8821d88d958bb6d4ef1279ec3609b17ffda.tar.gz
focaccia-qemu-c7ddc8821d88d958bb6d4ef1279ec3609b17ffda.zip
block: preserve errno from fdatasync failures
When fdatasync() fails on a file backend we set a flag that
short-circuits any future attempts to call fdatasync(). The
first failure returns the true errno, but the later short-
circuited calls return a generic EIO. The latter is unhelpful
because fdatasync() can return a variety of errnos, including
EACCESS.

Reviewed-by: Connor Kuehl <ckuehl@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'util/qemu-thread-posix.c')
0 files changed, 0 insertions, 0 deletions