diff options
author | Eric Blake | 2020-07-06 22:39:50 +0200 |
---|---|---|
committer | Kevin Wolf | 2020-07-14 15:18:59 +0200 |
commit | add8200dd14041d059cc376eff91461fadd93ec5 (patch) | |
tree | 8822b99922a34276ef31cbd8d76b1f8d157c916f /tests/qemu-iotests/061.out | |
parent | qcow: Tolerate backing_fmt= (diff) | |
download | qemu-add8200dd14041d059cc376eff91461fadd93ec5.tar.gz qemu-add8200dd14041d059cc376eff91461fadd93ec5.tar.xz qemu-add8200dd14041d059cc376eff91461fadd93ec5.zip |
block: Error if backing file fails during creation without -u
Back in commit 6e6e55f5 (Jul 2017, v2.10), we tweaked the code to warn
if the backing file could not be opened but the user gave a size,
unless the user also passes the -u option to bypass the open of the
backing file. As one common reason for failure to open the backing
file is when there is mismatch in the requested backing format in
relation to what the backing file actually contains, we actually want
to open the backing file and ensure that it has the right format in as
many cases as possible. iotest 301 for qcow demonstrates how
detecting explicit format mismatch is useful to prevent the creation
of an image that would probe differently than the user requested. Now
is the time to finally turn the warning an error, as promised.
Note that the original warning was added prior to our documentation of
an official deprecation policy (eb22aeca, also Jul 2017), and because
the warning didn't mention the word "deprecated", we never actually
remembered to document it as such. But the warning has been around
long enough that I don't see prolonging it another two releases.
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200706203954.341758-7-eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/061.out')
0 files changed, 0 insertions, 0 deletions