]> Git Repo - qemu.git/commitdiff
xen_disk: treat "aio" as "raw"
authorStefano Stabellini <[email protected]>
Thu, 30 Jun 2011 14:42:31 +0000 (15:42 +0100)
committerAlexander Graf <[email protected]>
Sat, 16 Jul 2011 23:54:25 +0000 (01:54 +0200)
Sometimes the toolstack uses "aio" without an additional format
identifier, in such cases use "raw".

Updated in v2:

- fix code style.

Signed-off-by: Stefano Stabellini <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
hw/xen_disk.c

index f14e5a6169d47baa281b7a2bfe035efbb6c45cb3..add815f27303d72c1a3ea9b13573a4bc5a4f70d1 100644 (file)
@@ -633,6 +633,9 @@ static int blk_init(struct XenDevice *xendev)
             blkdev->filename  = blkdev->params;
         }
     }
+    if (!strcmp("aio", blkdev->fileproto)) {
+        blkdev->fileproto = "raw";
+    }
     if (blkdev->mode == NULL) {
         blkdev->mode = xenstore_read_be_str(&blkdev->xendev, "mode");
     }
This page took 0.029672 seconds and 4 git commands to generate.