summaryrefslogtreecommitdiffstats
path: root/module-common.c
diff options
context:
space:
mode:
authorKevin Wolf2014-06-03 16:44:19 +0200
committerKevin Wolf2014-06-26 13:51:01 +0200
commitf4788adcb4903e20dadc5455d3d69d0a481f35e4 (patch)
tree7454fdeedeb699982e48edd48d836d07f3bc113b /module-common.c
parentblock: Always pass driver name through options QDict (diff)
downloadqemu-f4788adcb4903e20dadc5455d3d69d0a481f35e4.tar.gz
qemu-f4788adcb4903e20dadc5455d3d69d0a481f35e4.tar.xz
qemu-f4788adcb4903e20dadc5455d3d69d0a481f35e4.zip
block: Use common driver selection code for bdrv_open_file()
This moves the bdrv_open_file() call a bit down so that it can use the bdrv_open() code that selects the right block driver. The code between the old and the new call site is either common code (the error message for an unknown driver has been unified now) or doesn't run with cleared BDRV_O_PROTOCOL (added an if block in one place, whereas the right path was already asserted in another place) Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Benoit Canet <benoit@irqsave.net>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions