]> Git Repo - qemu.git/blobdiff - tests/qemu-iotests/103
qemu-iotests: Extend non-shared storage migration test (194)
[qemu.git] / tests / qemu-iotests / 103
index ccab551f636467d131a75efff7187cc0d5db89b9..ecbd8ebd71de750b0d117779006530a23e3865d7 100755 (executable)
@@ -25,7 +25,6 @@ seq=$(basename $0)
 echo "QA output created by $seq"
 
 here=$PWD
-tmp=/tmp/$$
 status=1       # failure is the default!
 
 _cleanup()
@@ -93,6 +92,16 @@ $QEMU_IO -c "open -o l2-cache-size=1M,refcount-cache-size=0.25M $TEST_IMG" \
          -c 'read -P 42 0 64k' \
     | _filter_qemu_io
 
+echo
+echo '=== Testing minimal L2 cache and COW ==='
+echo
+
+$QEMU_IMG snapshot -c foo "$TEST_IMG"
+# This requires a COW operation, which accesses two L2 tables simultaneously
+# (COW source and destination), so there must be enough space in the cache to
+# place both tables there (and qemu should not crash)
+$QEMU_IO -c "open -o cache-size=0 $TEST_IMG" -c 'write 0 64k' | _filter_qemu_io
+
 # success, all done
 echo '*** done'
 rm -f $seq.full
This page took 0.025694 seconds and 4 git commands to generate.