1 QA output created by 290
3 ### Test 'qemu-io -c discard' on a QCOW2 image without a backing file
5 # Create an image with compat=0.10 without a backing file
6 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072
7 # Fill all clusters with data and then discard them
8 wrote 131072/131072 bytes at offset 0
9 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
10 discard 131072/131072 bytes at offset 0
11 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
12 # Read the data from the discarded clusters
13 read 131072/131072 bytes at offset 0
14 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
15 # Output of qemu-img map
16 Offset Length Mapped to File
17 # Create an image with compat=1.1 without a backing file
18 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072
19 # Fill all clusters with data and then discard them
20 wrote 131072/131072 bytes at offset 0
21 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
22 discard 131072/131072 bytes at offset 0
23 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
24 # Read the data from the discarded clusters
25 read 131072/131072 bytes at offset 0
26 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
27 # Output of qemu-img map
28 Offset Length Mapped to File
30 ### Test 'qemu-io -c discard' on a QCOW2 image with a backing file
32 # Create a backing image and fill it with data
33 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=131072
34 wrote 131072/131072 bytes at offset 0
35 128 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
37 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
38 # Fill all clusters with data and then discard them
39 wrote 131072/131072 bytes at offset 0
40 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
41 discard 131072/131072 bytes at offset 0
42 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
43 # Read the data from the discarded clusters
44 read 131072/131072 bytes at offset 0
45 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
46 # Output of qemu-img map
47 Offset Length Mapped to File
48 0 0x20000 0x50000 TEST_DIR/t.qcow2
49 # Create an image with compat=1.1 and a backing file
50 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
51 # Fill all clusters with data and then discard them
52 wrote 131072/131072 bytes at offset 0
53 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
54 discard 131072/131072 bytes at offset 0
55 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
56 # Read the data from the discarded clusters
57 read 131072/131072 bytes at offset 0
58 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
59 # Output of qemu-img map
60 Offset Length Mapped to File