aboutsummaryrefslogtreecommitdiff
path: root/hw/xen_disk.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-06-30 15:42:31 +0100
committerAlexander Graf <agraf@suse.de>2011-07-17 01:54:25 +0200
commit7cef3f4fdbe813ac7d495e15a81531f1181b19f9 (patch)
tree11b24f9158c3badd7632dffb5adf5fb71930ab36 /hw/xen_disk.c
parent8ab934f93b5ad3d0af4ad419d2531235a75d672c (diff)
xen_disk: treat "aio" as "raw"
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 <stefano.stabellini@eu.citrix.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/xen_disk.c')
-rw-r--r--hw/xen_disk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xen_disk.c b/hw/xen_disk.c
index f14e5a6169..add815f273 100644
--- a/hw/xen_disk.c
+++ b/hw/xen_disk.c
@@ -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");
}