Daniel P. Berrangé c7ddc8821d 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>
2021-06-14 13:28:50 +01:00
..
2021-04-30 12:27:48 +02:00
2021-02-15 15:10:14 +01:00
2021-03-19 10:15:06 +01:00
2020-11-09 15:44:21 +01:00
2021-01-08 15:13:38 +00:00
2021-06-04 13:47:07 +02:00
2021-03-11 13:57:08 +00:00
2020-09-15 11:05:13 +02:00
2020-07-06 10:34:14 +02:00