diff options
author | Kevin Wolf <kwolf@redhat.com> | 2014-06-03 16:44:19 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-06-26 13:51:01 +0200 |
commit | f4788adcb4903e20dadc5455d3d69d0a481f35e4 (patch) | |
tree | 7454fdeedeb699982e48edd48d836d07f3bc113b /page_cache.c | |
parent | 17b005f1d422d4581f8ce95b75d603deb081f4f3 (diff) | |
download | qemu-f4788adcb4903e20dadc5455d3d69d0a481f35e4.zip qemu-f4788adcb4903e20dadc5455d3d69d0a481f35e4.tar.gz qemu-f4788adcb4903e20dadc5455d3d69d0a481f35e4.tar.bz2 |
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 'page_cache.c')
0 files changed, 0 insertions, 0 deletions