Skip to content

Commit 1855536

Browse files
committed
iotests/197: Fix for compat=0.10
Writing zeroes to a qcow2 v2 images without a backing file results in an unallocated cluster as of 61b3043. 197 has a test for COR-ing a cluster on an image without a backing file, which means that the data will be zero, so now on a v2 image that cluster will just stay unallocated, and so the test fails. Just force compat=1.1 for that particular case to enforce the cluster to get allocated. Fixes: 61b3043 Signed-off-by: Max Reitz <[email protected]> Message-Id: <[email protected]> Reviewed-by: Eric Blake <[email protected]>
1 parent 733dafe commit 1855536

File tree

1 file changed

+3
-1
lines changed
  • tests/qemu-iotests

1 file changed

+3
-1
lines changed

tests/qemu-iotests/197

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ echo
112112
echo '=== Partial final cluster ==='
113113
echo
114114

115-
_make_test_img 1024
115+
# Force compat=1.1, because writing zeroes on a v2 image without a
116+
# backing file would just result in an unallocated cluster
117+
_make_test_img -o compat=1.1 1024
116118
$QEMU_IO -f $IMGFMT -C -c 'read 0 1024' "$TEST_IMG" | _filter_qemu_io
117119
$QEMU_IO -f $IMGFMT -c map "$TEST_IMG"
118120
_check_test_img

0 commit comments

Comments
 (0)