For some reason some of the defines were set to HAS_VIRTIO instead of HAS_AIO.
This broke raw blk device.
Reported-and-tested-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
ro_ops = raw_image_regular_ops;
disk = disk_image__new(fd, st->st_size, &ro_ops_nowrite, DISK_IMAGE_REGULAR);
-#ifdef CONFIG_HAS_VIRTIO
+#ifdef CONFIG_HAS_AIO
if (disk)
disk->async = 1;
#endif
* Use read/write instead of mmap
*/
disk = disk_image__new(fd, st->st_size, &raw_image_regular_ops, DISK_IMAGE_REGULAR);
-#ifdef CONFIG_HAS_VIRTIO
+#ifdef CONFIG_HAS_AIO
if (disk)
disk->async = 1;
#endif