mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
vmdk: refuse enabling zeroed grain with flat images
This is a header flag and we needs sparse for the header. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
4823970bcb
commit
52c8d629ca
3 changed files with 12 additions and 0 deletions
|
@ -71,6 +71,10 @@ echo "=== Testing monolithicFlat creation and opening ==="
|
|||
IMGOPTS="subformat=monolithicFlat" _make_test_img 2G
|
||||
$QEMU_IMG info $TEST_IMG | _filter_testdir
|
||||
|
||||
echo
|
||||
echo "=== Testing monolithicFlat with zeroed_grain ==="
|
||||
IMGOPTS="subformat=monolithicFlat,zeroed_grain=on" _make_test_img 2G
|
||||
|
||||
# success, all done
|
||||
echo "*** done"
|
||||
rm -f $seq.full
|
||||
|
|
|
@ -22,4 +22,8 @@ image: TEST_DIR/t.vmdk
|
|||
file format: vmdk
|
||||
virtual size: 2.0G (2147483648 bytes)
|
||||
disk size: 4.0K
|
||||
|
||||
=== Testing monolithicFlat with zeroed_grain ===
|
||||
qemu-img: TEST_DIR/t.IMGFMT: Flat image can't enable zeroed grain
|
||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2147483648
|
||||
*** done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue