]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - tests/qemu-iotests/106
qemu-img: add --shrink flag for resize
[thirdparty/qemu.git] / tests / qemu-iotests / 106
index 32649578fba8c10f12ca10f1bc3de9f8b86a9c0a..bfe71f4e600044608693251d8dcbd75e712f75d7 100755 (executable)
@@ -83,7 +83,7 @@ echo '=== Testing image shrinking ==='
 for growth_mode in falloc full off; do
     echo
     echo "--- growth_mode=$growth_mode ---"
-    $QEMU_IMG resize -f "$IMGFMT" --preallocation=$growth_mode "$TEST_IMG" -${GROWTH_SIZE}K
+    $QEMU_IMG resize -f "$IMGFMT" --shrink --preallocation=$growth_mode "$TEST_IMG" -${GROWTH_SIZE}K
 done
 
 # success, all done