1QA output created by 290 2 3### Test 'qemu-io -c discard' on a QCOW2 image without a backing file 4 5# Create an image with compat=0.10 without a backing file 6Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072 7# Fill all clusters with data and then discard them 8wrote 131072/131072 bytes at offset 0 9128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 10discard 131072/131072 bytes at offset 0 11128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 12# Read the data from the discarded clusters 13read 131072/131072 bytes at offset 0 14128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 15# Output of qemu-img map 16Offset Length Mapped to File 17# Create an image with compat=1.1 without a backing file 18Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072 19# Fill all clusters with data and then discard them 20wrote 131072/131072 bytes at offset 0 21128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 22discard 131072/131072 bytes at offset 0 23128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 24# Read the data from the discarded clusters 25read 131072/131072 bytes at offset 0 26128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 27# Output of qemu-img map 28Offset Length Mapped to File 29 30### Test 'qemu-io -c discard' on a QCOW2 image with a backing file 31 32# Create a backing image and fill it with data 33Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=131072 34wrote 131072/131072 bytes at offset 0 35128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 36# Create an image with compat=0.10 and a backing file 37Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072 backing_file=TEST_DIR/t.IMGFMT.base 38# Fill all clusters with data and then discard them 39wrote 131072/131072 bytes at offset 0 40128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 41discard 131072/131072 bytes at offset 0 42128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 43# Read the data from the discarded clusters 44read 131072/131072 bytes at offset 0 45128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 46# Output of qemu-img map 47Offset Length Mapped to File 480 0x20000 0x50000 TEST_DIR/t.qcow2 49# Create an image with compat=1.1 and a backing file 50Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072 backing_file=TEST_DIR/t.IMGFMT.base 51# Fill all clusters with data and then discard them 52wrote 131072/131072 bytes at offset 0 53128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 54discard 131072/131072 bytes at offset 0 55128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 56# Read the data from the discarded clusters 57read 131072/131072 bytes at offset 0 58128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 59# Output of qemu-img map 60Offset Length Mapped to File 61*** done 62