diff options
author | Max Reitz <mreitz@redhat.com> | 2013-09-25 12:07:23 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-09-27 11:16:36 +0200 |
commit | fd9e03e6060b3a64099d17e4a886421b21dd7341 (patch) | |
tree | d2bb332ac97d497fa20be89744cb2bbf31f9e6f9 /tests/qemu-iotests/061 | |
parent | e390cf5a9722d3f3cc54efb505f6ff37fa554b11 (diff) |
qemu-iotests: Preallocated zero clusters in 061
Add a test case for zero cluster expansion on an image completely filled
with preallocated zero clusters to test 061.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/061')
-rwxr-xr-x | tests/qemu-iotests/061 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/qemu-iotests/061 b/tests/qemu-iotests/061 index 5f04bfa851..fa9319da26 100755 --- a/tests/qemu-iotests/061 +++ b/tests/qemu-iotests/061 @@ -200,6 +200,15 @@ $QEMU_IMG snapshot -a foo "$TEST_IMG" _check_test_img $QEMU_IO -c "read -P 0 0 128k" "$TEST_IMG" | _filter_qemu_io +echo +echo "=== Testing preallocated zero expansion on full image ===" +echo +IMGOPTS="compat=1.1" TEST_IMG="$TEST_IMG" _make_test_img 64M +$QEMU_IO -c "write -P 0x2a 0 64M" "$TEST_IMG" -c "write -z 0 64M" | _filter_qemu_io +$QEMU_IMG amend -o "compat=0.10" "$TEST_IMG" +_check_test_img +$QEMU_IO -c "read -P 0 0 64M" "$TEST_IMG" | _filter_qemu_io + # success, all done echo "*** done" rm -f $seq.full |