]> git.proxmox.com Git - mirror_qemu.git/commit - block/file-posix.c
raw-posix: Make aio=native option binding
authorKevin Wolf <kwolf@redhat.com>
Tue, 15 Dec 2015 10:35:36 +0000 (11:35 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 18 Dec 2015 13:34:43 +0000 (14:34 +0100)
commitd657c0c289e944fc22289f5c318f48da87d79dcb
tree775382607e9e96429d12c6c0c2ca20250b95965e
parentb1fc8f934ba3fcdc8381b89413ad4df2e90d5312
raw-posix: Make aio=native option binding

Traditionally, aio=native was treated as an advice that could simply be
ignored if an error occurs while initialising Linux AIO or the feature
wasn't compiled in. This behaviour was deprecated in commit 96518254
(qemu 2.3; error during init) and commit 1501ecc1 (qemu 2.5; not
compiled in).

This patch changes raw-posix to error out in these cases instead of
printing a deprecation warning.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/raw-posix.c