mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
block: Finish deprecation of 'qemu-img convert -n -o'
It's been two releases since we started warning; time to make the combination an error as promised. There was no iotest coverage, so add some. While touching the documentation, tweak another section heading for consistent style. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20200706203954.341758-3-eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
4e2f441878
commit
25956af3fe
4 changed files with 21 additions and 12 deletions
|
@ -290,6 +290,13 @@ TEST_IMG="$TEST_IMG".orig _make_test_img 64M
|
|||
# backing file"
|
||||
$QEMU_IMG convert -O $IMGFMT -B "$TEST_IMG".base -n "$TEST_IMG" "$TEST_IMG".orig
|
||||
|
||||
echo
|
||||
echo '=== -n incompatible with -o ==='
|
||||
echo
|
||||
|
||||
$QEMU_IMG convert -O $IMGFMT -o preallocation=metadata -n \
|
||||
"$TEST_IMG" "$TEST_IMG".orig && echo "unexpected success"
|
||||
|
||||
# success, all done
|
||||
echo '*** done'
|
||||
rm -f $seq.full
|
||||
|
|
|
@ -233,4 +233,8 @@ Images are identical.
|
|||
|
||||
Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
|
||||
Formatting 'TEST_DIR/t.IMGFMT.orig', fmt=IMGFMT size=67108864
|
||||
|
||||
=== -n incompatible with -o ===
|
||||
|
||||
qemu-img: -o has no effect when skipping image creation
|
||||
*** done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue