]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Don't probe for unknown backing file format
authorKevin Wolf <kwolf@redhat.com>
Tue, 25 Nov 2014 17:12:42 +0000 (18:12 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 14 Jan 2015 23:08:43 +0000 (17:08 -0600)
commit5f0681e1c3f47c680ca31fea4c7627648aedabdf
treef33a0dd70622e5b85ecdf77c6dd63e3ae51fb47d
parent75eb0f5dbb3beaa718b2a6b6acd5b3cce565586a
block: Don't probe for unknown backing file format

If a qcow2 image specifies a backing file format that doesn't correspond
to any format driver that qemu knows, we shouldn't fall back to probing,
but simply error out.

Not looking up the backing file driver in bdrv_open_backing_file(), but
just filling in the "driver" option if it isn't there moves us closer to
the goal of having everything in QDict options and gets us the error
handling of bdrv_open(), which correctly refuses unknown drivers.

Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1416935562-7760-4-git-send-email-kwolf@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit c5f6e493bb5339d244eae5d3f21c5b6d73996739)

Conflicts:
tests/qemu-iotests/group

*removed context from upstream iotest groups

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block.c
tests/qemu-iotests/114 [new file with mode: 0755]
tests/qemu-iotests/114.out [new file with mode: 0644]
tests/qemu-iotests/group