]> git.proxmox.com Git - mirror_qemu.git/commit
block/xen: Use blk_new_open() in blk_connect()
authorMax Reitz <mreitz@redhat.com>
Thu, 5 Feb 2015 18:58:15 +0000 (13:58 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 15:07:18 +0000 (15:07 +0000)
commit9a925356e3a109c412240721890c1e6c1a86d286
tree8dadc9a4d0cd6f3d8ef927fc02e31c9f0d3507b1
parente4342ce5a2bc7742c7193d1a3291ae513ca4857a
block/xen: Use blk_new_open() in blk_connect()

As part of the required changes, this fixes a bug where specifying an
invalid driver would result in the block layer probing the image format;
now it will result in an error, unless "<unset>" is specified as the
driver name. Fixing this would require further work on the xen_disk code
which does not seem worth it (at this point and for this patch).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1423162705-32065-7-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/xen_disk.c