]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: Allow block devices without files
authorMax Reitz <mreitz@redhat.com>
Fri, 20 Dec 2013 18:28:10 +0000 (19:28 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 22 Jan 2014 11:07:17 +0000 (12:07 +0100)
commit2a05cbe426a7a3ddec63dbc67c9ac93013aebf77
tree309b02b2432f4fae159a316590931c93beb88f55
parent2258e3fe20990a13c9aa2c1adccafae073b7ce13
block: Allow block devices without files

blkdebug and blkverify will, in order to retain compatibility, not
support the field "file" implicitly through bdrv_open(). In order to be
able to use those drivers without giving a filename anyway, it is
necessary to be able to have block devices without files implicitly
opened by bdrv_open(). This is the case, if there was neither a file
name, a reference to an existing block device to use as a file nor
options specific to the file.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c