Commit fc3e493b authored by Stefano Stabellini's avatar Stefano Stabellini
Browse files

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: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
parent 55c8672c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -825,6 +825,9 @@ static int blk_init(struct XenDevice *xendev)
    if (!strcmp("aio", blkdev->fileproto)) {
        blkdev->fileproto = "raw";
    }
    if (!strcmp("vhd", blkdev->fileproto)) {
        blkdev->fileproto = "vpc";
    }
    if (blkdev->mode == NULL) {
        blkdev->mode = xenstore_read_be_str(&blkdev->xendev, "mode");
    }