projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ab934f
)
xen_disk: treat "aio" as "raw"
author
Stefano Stabellini
<stefano.stabellini@eu.citrix.com>
Thu, 30 Jun 2011 14:42:31 +0000
(15:42 +0100)
committer
Alexander Graf
<agraf@suse.de>
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 <stefano.stabellini@eu.citrix.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/xen_disk.c
patch
|
blob
|
history
diff --git
a/hw/xen_disk.c
b/hw/xen_disk.c
index f14e5a6169d47baa281b7a2bfe035efbb6c45cb3..add815f27303d72c1a3ea9b13573a4bc5a4f70d1 100644
(file)
--- 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");
}