mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
8ab934f93b
commit
7cef3f4fdb
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue