block: Don't probe for unknown backing file format
commitebd2bd2227b1f949a0ad4a4226262d0c3f955034
authorKevin Wolf <kwolf@redhat.com>
Tue, 25 Nov 2014 17:12:42 +0000 (25 18:12 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Sun, 22 Feb 2015 18:27:06 +0000 (22 12:27 -0600)
tree7e4df6b0813dcb57b94d807ec87a5ba5629652c9
parent9f8da0319dfc321abe98b6454e7970015ac4e23c
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

*resolved context conflict due to group 113 being present locally

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