blob: ebf426febc9dd31bd1e1c565ab9ee11cc567917f [file] [log] [blame]
Max Reitzd2eed8c2015-02-18 17:40:50 -05001QA output created by 112
2
3=== refcount_bits limits ===
4
Max Reitzd2eed8c2015-02-18 17:40:50 -05005Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
6qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits
Max Reitz57ee95e2020-06-25 14:55:30 +02007Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
Max Reitzd2eed8c2015-02-18 17:40:50 -05008qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits
9Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
10qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits
11Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
Eric Blake4e2f4412020-07-06 15:39:45 -050012qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits
Max Reitzd2eed8c2015-02-18 17:40:50 -050013Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
14refcount bits: 1
15Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
16refcount bits: 64
17Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
18refcount bits: 16
19
20=== refcount_bits and compat=0.10 ===
21
22Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
23refcount bits: 16
Max Reitzd2eed8c2015-02-18 17:40:50 -050024Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
Kevin Wolfb76b4f62018-01-11 16:18:08 +010025qemu-img: TEST_DIR/t.IMGFMT: Different refcount widths than 16 bits require compatibility level 1.1 or above (use version=v3 or greater)
Max Reitzd2eed8c2015-02-18 17:40:50 -050026Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
Eric Blake4e2f4412020-07-06 15:39:45 -050027qemu-img: TEST_DIR/t.IMGFMT: Different refcount widths than 16 bits require compatibility level 1.1 or above (use version=v3 or greater)
Max Reitzd2eed8c2015-02-18 17:40:50 -050028
29=== Snapshot limit on refcount_bits=1 ===
30
31Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
32refcount bits: 1
33wrote 512/512 bytes at offset 0
34512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Michael Tokarevb0a66202023-08-11 14:09:46 +030035qemu-img: Could not create snapshot 'foo': Invalid argument
Max Reitzd2eed8c2015-02-18 17:40:50 -050036Leaked cluster 6 refcount=1 reference=0
37
381 leaked clusters were found on the image.
39This means waste of disk space, but no harm to data.
40
41=== Snapshot limit on refcount_bits=2 ===
42
43Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
44refcount bits: 2
45wrote 512/512 bytes at offset 0
46512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Michael Tokarevb0a66202023-08-11 14:09:46 +030047qemu-img: Could not create snapshot 'baz': Invalid argument
Max Reitzd2eed8c2015-02-18 17:40:50 -050048Leaked cluster 7 refcount=1 reference=0
49
501 leaked clusters were found on the image.
51This means waste of disk space, but no harm to data.
52
53=== Compressed clusters with refcount_bits=1 ===
54
55Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
56refcount bits: 1
57wrote 65536/65536 bytes at offset 0
5864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
59wrote 65536/65536 bytes at offset 65536
6064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
61No errors were found on the image.
62
63=== MSb set in 64 bit refcount ===
64
65Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
66refcount bits: 64
67wrote 512/512 bytes at offset 0
68512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69wrote 512/512 bytes at offset 0
70512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
71
72=== Snapshot on maximum 64 bit refcount value ===
73
74Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
75refcount bits: 64
76wrote 512/512 bytes at offset 0
77512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Michael Tokarevb0a66202023-08-11 14:09:46 +030078qemu-img: Could not create snapshot 'foo': Invalid argument
Max Reitzd2eed8c2015-02-18 17:40:50 -050079Leaked cluster 5 refcount=18446744073709551615 reference=1
80Leaked cluster 6 refcount=1 reference=0
81
822 leaked clusters were found on the image.
83This means waste of disk space, but no harm to data.
Max Reitze9dbdc52015-07-27 17:51:40 +020084
85=== Amend from refcount_bits=16 to refcount_bits=1 ===
86
87Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
88refcount bits: 16
89wrote 33554432/33554432 bytes at offset 16777216
9032 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
91No errors were found on the image.
92refcount bits: 1
93
94=== Amend from refcount_bits=1 to refcount_bits=64 ===
95
96No errors were found on the image.
97refcount bits: 64
98
99=== Amend to compat=0.10 ===
100
101qemu-img: compat=0.10 requires refcount_bits=16
Max Reitze9dbdc52015-07-27 17:51:40 +0200102refcount bits: 64
103No errors were found on the image.
104refcount bits: 16
105refcount bits: 16
Max Reitzd1402b52018-05-09 23:00:18 +0200106qemu-img: Refcount widths other than 16 bits require compatibility level 1.1 or above (use compat=1.1 or greater)
Max Reitze9dbdc52015-07-27 17:51:40 +0200107refcount bits: 16
108
109=== Amend with snapshot ===
110
111wrote 16777216/16777216 bytes at offset 0
11216 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
113qemu-img: Cannot decrease refcount entry width to 1 bits: Cluster at offset 0x50000 has a refcount of 2
Max Reitze9dbdc52015-07-27 17:51:40 +0200114No errors were found on the image.
115refcount bits: 16
116No errors were found on the image.
117refcount bits: 2
118
119=== Testing too many references for check ===
120
121Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
122refcount bits: 1
123wrote 65536/65536 bytes at offset 0
12464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
125ERROR: overflow cluster offset=0x50000
126Use qemu-img amend to increase the refcount entry width or qemu-img convert to create a clean copy if the image cannot be opened for writing
127
1281 errors were found on the image.
129Data may be corrupted, or further writes to the image may corrupt it.
130refcount bits: 2
131ERROR cluster 5 refcount=1 reference=2
132Repairing cluster 5 refcount=1 reference=2
133Repairing OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=2
134Repairing OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=2
135The following inconsistencies were found and repaired:
136
137 0 leaked clusters
138 3 corruptions
139
140Double checking the fixed image now...
141No errors were found on the image.
142
143=== Multiple walks necessary during amend ===
144
145Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=65536
146wrote 29696/29696 bytes at offset 0
14729 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
148 (66.67/100%)
149 (50.00/100%)
150refcount bits: 64
151No errors were found on the image.
Max Reitzd2eed8c2015-02-18 17:40:50 -0500152*** done