block: Add bdrv_open_image()
authorMax Reitz <mreitz@redhat.com>
Fri, 20 Dec 2013 18:28:11 +0000 (19:28 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 22 Jan 2014 11:07:18 +0000 (12:07 +0100)
commitda557aac181fa71fde6a2a7c7a1eb2aea20caf64
tree10c0cc6d8ab49d70a02cfba739132b540714d5ab
parent2a05cbe426a7a3ddec63dbc67c9ac93013aebf77
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>
block.c
include/block/block.h