block: Allow reference for bdrv_file_open()
commit72daa72eeecb6b2ee06ab7d836ac3aa01ad7e6df
authorMax Reitz <mreitz@redhat.com>
Fri, 20 Dec 2013 18:28:08 +0000 (20 19:28 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 22 Jan 2014 11:07:17 +0000 (22 12:07 +0100)
treeae24ab91dca7ea4e294b7b36f4f3e6fdd4d63908
parent89f2b21e36cce948c39fa7cf24226f6e5f042cc8
block: Allow reference for bdrv_file_open()

Allow specifying a reference to an existing block device (by name) for
bdrv_file_open() instead of a filename and/or options.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
12 files changed:
block.c
block/blkdebug.c
block/blkverify.c
block/cow.c
block/qcow.c
block/qcow2.c
block/qed.c
block/sheepdog.c
block/vhdx.c
block/vmdk.c
include/block/block.h
qemu-io.c