qemu-nbd: always compile in --aio=MODE option
commitbb628e1af8b8b5ecf6420e50123cb696ee18b09f
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 23 Jul 2015 12:48:36 +0000 (23 13:48 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 16 Oct 2015 13:34:30 +0000 (16 15:34 +0200)
tree7e782791d09fb0442e4f0fb3271879e1807bd6e6
parent04d71322c1cf6f527f15397c76bc088ebda7c18b
qemu-nbd: always compile in --aio=MODE option

The --aio=MODE option enables Linux AIO or Windows overlapped I/O.

The #ifdef CONFIG_LINUX_AIO was a layering violation that also prevented
Windows overlapped I/O from being used.

Now that raw-posix.c prints an error when Linux AIO has not been
compiled in, we can unconditionally compile the option into qemu-nbd.

After this patch qemu-nbd --aio=native works on Windows.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-nbd.c