mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
block: Error out on image creation with conflicting size options
If both the create options (qemu-img create -o ...) and the size parameter were given, the size parameter was silently ignored. Instead, make specifying two sizes an error. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
0da7d13a4c
commit
f6dc1c31d3
3 changed files with 18 additions and 2 deletions
|
@ -78,6 +78,11 @@ for s in $sizes; do
|
|||
test_qemu_img create -f $IMGFMT -o size=$s "$TEST_IMG"
|
||||
done
|
||||
|
||||
echo "== 4. Specify size twice (-o and traditional parameter) =="
|
||||
echo
|
||||
|
||||
test_qemu_img create -f $IMGFMT -o size=10M "$TEST_IMG" 20M
|
||||
|
||||
echo "== Check correct interpretation of suffixes for cluster size =="
|
||||
echo
|
||||
sizes="1024 1024b 1k 1K 1M "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue