1 QA output created by 060
3 === Testing L2 reference into L1 ===
5 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
6 ERROR cluster 3 refcount=1 reference=3
8 1 errors were found on the image.
9 Data may be corrupted, or further writes to the image may corrupt it.
10 incompatible_features []
11 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L1 table); further corruption events will be suppressed
12 write failed: Input/output error
13 incompatible_features [1]
14 image: TEST_DIR/t.IMGFMT
16 virtual size: 64 MiB (67108864 bytes)
18 Format specific information:
20 compression type: zlib
24 qemu-io: can't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write
25 no file open, try 'help open'
26 read 512/512 bytes at offset 0
27 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
29 === Testing cluster data reference into refcount block ===
31 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
32 ERROR refcount block 0 refcount=2
33 ERROR cluster 2 refcount=1 reference=2
35 2 errors were found on the image.
36 Data may be corrupted, or further writes to the image may corrupt it.
37 incompatible_features []
38 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed
39 write failed: Input/output error
40 incompatible_features [1]
41 ERROR refcount block 0 refcount=2
42 ERROR cluster 2 refcount=1 reference=2
43 Rebuilding refcount structure
44 Repairing cluster 1 refcount=1 reference=0
45 Repairing cluster 2 refcount=2 reference=1
46 The following inconsistencies were found and repaired:
51 Double checking the fixed image now...
52 No errors were found on the image.
53 incompatible_features []
54 wrote 512/512 bytes at offset 0
55 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
56 incompatible_features []
58 === Testing cluster data reference into inactive L2 table ===
60 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
61 wrote 512/512 bytes at offset 0
62 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
63 wrote 512/512 bytes at offset 0
64 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
65 ERROR cluster 4 refcount=1 reference=2
66 Leaked cluster 9 refcount=1 reference=0
68 1 errors were found on the image.
69 Data may be corrupted, or further writes to the image may corrupt it.
71 1 leaked clusters were found on the image.
72 This means waste of disk space, but no harm to data.
73 incompatible_features []
74 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 table); further corruption events will be suppressed
75 write failed: Input/output error
76 incompatible_features [1]
77 ERROR cluster 4 refcount=1 reference=2
78 Leaked cluster 9 refcount=1 reference=0
79 Repairing cluster 4 refcount=1 reference=2
80 Repairing cluster 9 refcount=1 reference=0
81 Repairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2
82 The following inconsistencies were found and repaired:
87 Double checking the fixed image now...
88 No errors were found on the image.
89 incompatible_features []
90 wrote 512/512 bytes at offset 0
91 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
92 incompatible_features []
93 read 512/512 bytes at offset 0
94 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
95 No errors were found on the image.
96 read 512/512 bytes at offset 0
97 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
99 === Testing overlap while COW is in flight ===
101 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=1073741824
102 wrote 65536/65536 bytes at offset 0
103 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
104 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
105 wrote 65536/65536 bytes at offset 0
106 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
107 wrote 65536/65536 bytes at offset 536870912
108 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
109 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L2 table); further corruption events will be suppressed
110 blkdebug: Suspended request '0'
111 write failed: Input/output error
112 blkdebug: Resuming request '0'
113 aio_write failed: No medium found
115 === Testing unallocated image header ===
117 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
118 wrote 65536/65536 bytes at offset 0
119 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
120 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with qcow2_header); further corruption events will be suppressed
121 write failed: Input/output error
123 === Testing unaligned L1 entry ===
125 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
126 wrote 65536/65536 bytes at offset 0
127 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
128 qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed
129 read failed: Input/output error
130 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
131 wrote 65536/65536 bytes at offset 0
132 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
133 qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed
134 qemu-img: Failed to turn zero into data clusters: Input/output error
136 === Testing unaligned L2 entry ===
138 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
139 wrote 65536/65536 bytes at offset 0
140 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
141 qcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
142 read failed: Input/output error
144 === Testing unaligned pre-allocated zero cluster ===
146 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
147 wrote 65536/65536 bytes at offset 0
148 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
149 qcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
150 qemu-img: Failed to turn zero into data clusters: Input/output error
152 === Testing unaligned reftable entry ===
154 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
155 qcow2: Marking image as corrupt: Refblock offset 0x22a00 unaligned (reftable index: 0); further corruption events will be suppressed
156 write failed: Input/output error
158 === Testing non-fatal corruption on freeing ===
160 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
161 wrote 65536/65536 bytes at offset 0
162 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
163 qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed
164 discard 65536/65536 bytes at offset 0
165 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
167 === Testing read-only corruption report ===
169 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
170 wrote 65536/65536 bytes at offset 0
171 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
172 qcow2: Image is corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further non-fatal corruption events will be suppressed
173 read failed: Input/output error
174 read failed: Input/output error
176 === Testing non-fatal and then fatal corruption report ===
178 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
179 wrote 131072/131072 bytes at offset 0
180 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
181 qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed
182 qcow2: Marking image as corrupt: Cluster allocation offset 0x62a00 unaligned (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
183 discard 65536/65536 bytes at offset 0
184 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
185 read failed: Input/output error
187 === Testing empty refcount table ===
189 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
190 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount table); further corruption events will be suppressed
191 write failed: Input/output error
192 ERROR cluster 0 refcount=0 reference=1
193 ERROR cluster 1 refcount=0 reference=1
194 ERROR cluster 3 refcount=0 reference=1
195 Rebuilding refcount structure
196 Repairing cluster 1 refcount=1 reference=0
197 The following inconsistencies were found and repaired:
202 Double checking the fixed image now...
203 No errors were found on the image.
205 === Testing empty refcount table with valid L1 and L2 tables ===
207 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
208 wrote 65536/65536 bytes at offset 0
209 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
210 qcow2: Marking image as corrupt: Preventing invalid allocation of refcount block at offset 0; further corruption events will be suppressed
211 write failed: Input/output error
212 ERROR cluster 0 refcount=0 reference=1
213 ERROR cluster 1 refcount=0 reference=1
214 ERROR cluster 3 refcount=0 reference=1
215 ERROR cluster 4 refcount=0 reference=1
216 ERROR cluster 5 refcount=0 reference=1
217 Rebuilding refcount structure
218 Repairing cluster 1 refcount=1 reference=0
219 The following inconsistencies were found and repaired:
224 Double checking the fixed image now...
225 No errors were found on the image.
227 === Testing empty refcount block ===
229 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
230 qcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further corruption events will be suppressed
231 write failed: Input/output error
232 ERROR cluster 0 refcount=0 reference=1
233 ERROR cluster 1 refcount=0 reference=1
234 ERROR cluster 2 refcount=0 reference=1
235 ERROR cluster 3 refcount=0 reference=1
236 Rebuilding refcount structure
237 Repairing cluster 1 refcount=1 reference=0
238 Repairing cluster 2 refcount=1 reference=0
239 The following inconsistencies were found and repaired:
244 Double checking the fixed image now...
245 No errors were found on the image.
247 === Testing empty refcount block with compressed write ===
249 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
250 wrote 65536/65536 bytes at offset 65536
251 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
252 qcow2: Marking image as corrupt: Preventing invalid allocation of compressed cluster at offset 0; further corruption events will be suppressed
253 write failed: Input/output error
254 ERROR cluster 0 refcount=0 reference=1
255 ERROR cluster 1 refcount=0 reference=1
256 ERROR cluster 2 refcount=0 reference=1
257 ERROR cluster 3 refcount=0 reference=1
258 Rebuilding refcount structure
259 Repairing cluster 1 refcount=1 reference=0
260 Repairing cluster 2 refcount=1 reference=0
261 The following inconsistencies were found and repaired:
266 Double checking the fixed image now...
267 No errors were found on the image.
269 === Testing zero refcount table size ===
271 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
272 qemu-io: can't open device TEST_DIR/t.IMGFMT: Image does not contain a reference count table
273 ERROR cluster 0 refcount=0 reference=1
274 ERROR cluster 3 refcount=0 reference=1
275 Rebuilding refcount structure
276 The following inconsistencies were found and repaired:
281 Double checking the fixed image now...
282 No errors were found on the image.
284 === Testing incorrect refcount table offset ===
286 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
287 qcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further corruption events will be suppressed
288 write failed: Input/output error
290 === Testing dirty corrupt image ===
292 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
293 ERROR refcount block 0 is not cluster aligned; refcount table entry corrupted
294 IMGFMT: Marking image as corrupt: Refblock offset 0xffff2a00 unaligned (reftable index: 0); further corruption events will be suppressed
295 Can't get refcount for cluster 0: Input/output error
296 Can't get refcount for cluster 1: Input/output error
297 Can't get refcount for cluster 2: Input/output error
298 Can't get refcount for cluster 3: Input/output error
299 Rebuilding refcount structure
300 Repairing cluster 1 refcount=1 reference=0
301 qemu-io: can't open device TEST_DIR/t.IMGFMT: Could not repair dirty image: Input/output error
303 Leaked cluster 1 refcount=1 reference=0
304 Repairing cluster 1 refcount=1 reference=0
305 The following inconsistencies were found and repaired:
310 Double checking the fixed image now...
311 No errors were found on the image.
313 === Writing to an unaligned preallocated zero cluster ===
315 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
316 wrote 65536/65536 bytes at offset 0
317 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
318 discard 65536/65536 bytes at offset 0
319 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
320 qcow2: Marking image as corrupt: Preallocated zero cluster offset 0x2a00 unaligned (guest offset: 0); further corruption events will be suppressed
321 write failed: Input/output error
323 Repairing offset=2a00: Preallocated zero cluster is not properly aligned; L2 entry corrupted.
324 The following inconsistencies were found and repaired:
329 Double checking the fixed image now...
330 No errors were found on the image.
332 === Discarding with an unaligned refblock ===
334 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
335 wrote 131072/131072 bytes at offset 0
336 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
337 qcow2: Marking image as corrupt: Refblock offset 0x2a00 unaligned (reftable index: 0); further corruption events will be suppressed
338 qcow2_free_clusters failed: Input/output error
339 discard failed: No medium found
341 ERROR refcount block 0 is not cluster aligned; refcount table entry corrupted
342 qcow2: Marking image as corrupt: Refblock offset 0x2a00 unaligned (reftable index: 0); further corruption events will be suppressed
343 Can't get refcount for cluster 0: Input/output error
344 Can't get refcount for cluster 1: Input/output error
345 Can't get refcount for cluster 2: Input/output error
346 Can't get refcount for cluster 3: Input/output error
347 Can't get refcount for cluster 4: Input/output error
348 Can't get refcount for cluster 5: Input/output error
349 Can't get refcount for cluster 6: Input/output error
350 Rebuilding refcount structure
351 Repairing cluster 1 refcount=1 reference=0
352 qemu-img: Check failed: No medium found
353 Leaked cluster 1 refcount=1 reference=0
354 Repairing cluster 1 refcount=1 reference=0
355 The following inconsistencies were found and repaired:
360 Double checking the fixed image now...
361 No errors were found on the image.
363 === Discarding an out-of-bounds refblock ===
365 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
366 qcow2: Marking image as corrupt: Refblock at 0xffffff00000000 is not covered by the refcount structures; further corruption events will be suppressed
367 qemu-img: Failed to discard unused refblocks: Input/output error
368 --- Checking and retrying ---
369 virtual size: 64 MiB (67108864 bytes)
370 No errors were found on the image.
372 virtual size: 32 MiB (33554432 bytes)
374 === Discarding a non-covered in-bounds refblock ===
376 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
377 qcow2: Marking image as corrupt: Refblock at 0x1000000000 is not covered by the refcount structures; further corruption events will be suppressed
378 qemu-img: Failed to discard unused refblocks: Input/output error
379 --- Checking and retrying ---
380 virtual size: 64 MiB (67108864 bytes)
381 No errors were found on the image.
383 virtual size: 32 MiB (33554432 bytes)
385 === Discarding a refblock covered by an unaligned refblock ===
387 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
388 qcow2: Marking image as corrupt: Cannot get entry from refcount block cache: Offset 0x200 is unaligned; further corruption events will be suppressed
389 qemu-img: Failed to discard unused refblocks: Input/output error
391 Repairing refcount block 1 is outside image
392 ERROR refcount block 2 is not cluster aligned; refcount table entry corrupted
393 qcow2: Marking image as corrupt: Refblock offset 0x200 unaligned (reftable index: 0x2); further corruption events will be suppressed
394 Can't get refcount for cluster 1048576: Input/output error
395 Rebuilding refcount structure
396 Repairing cluster 1 refcount=1 reference=0
397 Repairing cluster 2 refcount=1 reference=0
398 Repairing cluster 1048576 refcount=1 reference=0
399 qemu-img: Check failed: No medium found
400 Leaked cluster 1 refcount=1 reference=0
401 Leaked cluster 2 refcount=1 reference=0
402 Leaked cluster 1048576 refcount=1 reference=0
403 Repairing cluster 1 refcount=1 reference=0
404 Repairing cluster 2 refcount=1 reference=0
405 Repairing cluster 1048576 refcount=1 reference=0
406 The following inconsistencies were found and repaired:
411 Double checking the fixed image now...
412 No errors were found on the image.
414 === Testing the QEMU shutdown with a corrupted image ===
416 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
417 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount table); further corruption events will be suppressed
420 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_IMAGE_CORRUPTED", "data": {"device": "none0", "msg": "Preventing invalid write on metadata (overlaps with refcount table)", "offset": 65536, "node-name": "drive", "fatal": true, "size": 65536}}
421 write failed: Input/output error
424 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
426 === Testing incoming inactive corrupted image ===
428 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
431 qcow2: Image is corrupt: L2 table offset 0x2a2a2a00 unaligned (L1 index: 0); further non-fatal corruption events will be suppressed
432 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_IMAGE_CORRUPTED", "data": {"device": "", "msg": "L2 table offset 0x2a2a2a00 unaligned (L1 index: 0)", "node-name": "drive", "fatal": false}}
435 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}