mirror of
https://github.com/qemu/qemu.git
synced 2025-08-14 11:43:46 +00:00
xen_disk: treat "vhd" as "vpc"
The Xen toolstack uses "vhd" to specify a disk in VHD format, however the name of the driver in QEMU is "vpc". Replace "vhd" with "vpc", so that QEMU can find the right driver to use for it. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
parent
55c8672c2e
commit
fc3e493bc8
@ -825,6 +825,9 @@ static int blk_init(struct XenDevice *xendev)
|
|||||||
if (!strcmp("aio", blkdev->fileproto)) {
|
if (!strcmp("aio", blkdev->fileproto)) {
|
||||||
blkdev->fileproto = "raw";
|
blkdev->fileproto = "raw";
|
||||||
}
|
}
|
||||||
|
if (!strcmp("vhd", blkdev->fileproto)) {
|
||||||
|
blkdev->fileproto = "vpc";
|
||||||
|
}
|
||||||
if (blkdev->mode == NULL) {
|
if (blkdev->mode == NULL) {
|
||||||
blkdev->mode = xenstore_read_be_str(&blkdev->xendev, "mode");
|
blkdev->mode = xenstore_read_be_str(&blkdev->xendev, "mode");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user