diff options
author | 2013-12-20 19:28:11 +0100 | |
---|---|---|
committer | 2014-01-22 12:07:18 +0100 | |
commit | da557aac181fa71fde6a2a7c7a1eb2aea20caf64 (patch) | |
tree | 10c0cc6d8ab49d70a02cfba739132b540714d5ab /scripts/qapi.py | |
parent | block: Allow block devices without files (diff) | |
download | qemu-da557aac181fa71fde6a2a7c7a1eb2aea20caf64.tar.xz qemu-da557aac181fa71fde6a2a7c7a1eb2aea20caf64.zip |
block: Add bdrv_open_image()
Add a common function for opening images to be used for block drivers
specified through BlockdevRefs in an option QDict. The difference from
bdrv_file_open() is that this function may invoke bdrv_open() instead,
allowing auto-detection of the driver to be used; and second, it
automatically extracts the BlockdevRef from the option QDict.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi.py')
0 files changed, 0 insertions, 0 deletions