aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/060
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2017-11-10 21:37:59 +0100
committerMax Reitz <mreitz@redhat.com>2018-01-23 12:34:42 +0100
commitac5b787a6ee57852021e4a5a6876759218fbbbb0 (patch)
treef807b20f911cbf545479b0d2f3b727adbe55b7ed /tests/qemu-iotests/060
parent7c3a3028596db5e142c6fc9644800a0ec3b073fd (diff)
downloadqemu-ac5b787a6ee57852021e4a5a6876759218fbbbb0.zip
qemu-ac5b787a6ee57852021e4a5a6876759218fbbbb0.tar.gz
qemu-ac5b787a6ee57852021e4a5a6876759218fbbbb0.tar.bz2
qcow2: Repair unaligned preallocated zero clusters
We can easily repair unaligned preallocated zero clusters by discarding them, so why not do it? Signed-off-by: Max Reitz <mreitz@redhat.com> Message-id: 20171110203759.14018-2-mreitz@redhat.com Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/060')
-rwxr-xr-xtests/qemu-iotests/0603
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qemu-iotests/060 b/tests/qemu-iotests/060
index 14797dd..6c7407f 100755
--- a/tests/qemu-iotests/060
+++ b/tests/qemu-iotests/060
@@ -335,7 +335,8 @@ poke_file "$TEST_IMG" "$l2_offset" "\x80\x00\x00\x00\x00\x00\x2a\x01"
# Let's write to it!
$QEMU_IO -c "write 0 64k" "$TEST_IMG" | _filter_qemu_io
-# Can't repair this yet (TODO: We can just deallocate the cluster)
+echo '--- Repairing ---'
+_check_test_img -r all
echo
echo '=== Discarding with an unaligned refblock ==='