summary refs log tree commit diff stats
path: root/hw/core/qdev-properties-system.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2019-08-16 11:48:17 +0200
committerKevin Wolf <kwolf@redhat.com>2019-09-10 08:58:43 +0200
commiteffecce6bcb830a661c882d7299b53382b56a131 (patch)
tree2b529eae7620e38cd000c73718102e495f3363f3 /hw/core/qdev-properties-system.c
parent6b9d62c2a9e83bbad73fb61406f0ff69b46ff6f3 (diff)
downloadfocaccia-qemu-effecce6bcb830a661c882d7299b53382b56a131.tar.gz
focaccia-qemu-effecce6bcb830a661c882d7299b53382b56a131.zip
file-posix: Fix has_write_zeroes after NO_FALLBACK
If QEMU_AIO_NO_FALLBACK is given, we always return failure and don't
even try to use the BLKZEROOUT ioctl. In this failure case, we shouldn't
disable has_write_zeroes because we didn't learn anything about the
ioctl. The next request might not set QEMU_AIO_NO_FALLBACK and we can
still use the ioctl then.

Fixes: 738301e1175
Reported-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'hw/core/qdev-properties-system.c')
0 files changed, 0 insertions, 0 deletions