]> 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 0f1dc9fa7d18224cc25cdb57223340802126a02c..ecbd8ebd71de750b0d117779006530a23e3865d7 100755 (executable)
@@ -25,7 +25,6 @@ seq=$(basename $0)
 echo "QA output created by $seq"
 
 here=$PWD
 echo "QA output created by $seq"
 
 here=$PWD
-tmp=/tmp/$$
 status=1       # failure is the default!
 
 _cleanup()
 status=1       # failure is the default!
 
 _cleanup()
@@ -39,7 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 . ./common.filter
 
 _supported_fmt qcow2
 . ./common.filter
 
 _supported_fmt qcow2
-_supported_proto file
+_supported_proto file nfs
 _supported_os Linux
 
 IMG_SIZE=64K
 _supported_os Linux
 
 IMG_SIZE=64K
@@ -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
 
          -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
 # success, all done
 echo '*** done'
 rm -f $seq.full
This page took 0.025715 seconds and 4 git commands to generate.