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 0x0
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 0x2
14 image: TEST_DIR/t.IMGFMT
16 virtual size: 64 MiB (67108864 bytes)
18 Format specific information:
23 qemu-io: can't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write
24 no file open, try 'help open'
25 read 512/512 bytes at offset 0
26 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
28 === Testing cluster data reference into refcount block ===
30 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
31 ERROR refcount block 0 refcount=2
32 ERROR cluster 2 refcount=1 reference=2
34 2 errors were found on the image.
35 Data may be corrupted, or further writes to the image may corrupt it.
36 incompatible_features 0x0
37 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed
38 write failed: Input/output error
39 incompatible_features 0x2
40 ERROR refcount block 0 refcount=2
41 ERROR cluster 2 refcount=1 reference=2
42 Rebuilding refcount structure
43 Repairing cluster 1 refcount=1 reference=0
44 Repairing cluster 2 refcount=2 reference=1
45 The following inconsistencies were found and repaired:
50 Double checking the fixed image now...
51 No errors were found on the image.
52 incompatible_features 0x0
53 wrote 512/512 bytes at offset 0
54 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
55 incompatible_features 0x0
57 === Testing cluster data reference into inactive L2 table ===
59 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
60 wrote 512/512 bytes at offset 0
61 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
62 wrote 512/512 bytes at offset 0
63 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
64 ERROR cluster 4 refcount=1 reference=2
65 Leaked cluster 9 refcount=1 reference=0
67 1 errors were found on the image.
68 Data may be corrupted, or further writes to the image may corrupt it.
70 1 leaked clusters were found on the image.
71 This means waste of disk space, but no harm to data.
72 incompatible_features 0x0
73 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 table); further corruption events will be suppressed
74 write failed: Input/output error
75 incompatible_features 0x2
76 ERROR cluster 4 refcount=1 reference=2
77 Leaked cluster 9 refcount=1 reference=0
78 Repairing cluster 4 refcount=1 reference=2
79 Repairing cluster 9 refcount=1 reference=0
80 Repairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2
81 The following inconsistencies were found and repaired:
86 Double checking the fixed image now...
87 No errors were found on the image.
88 incompatible_features 0x0
89 wrote 512/512 bytes at offset 0
90 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
91 incompatible_features 0x0
92 read 512/512 bytes at offset 0
93 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
94 No errors were found on the image.
95 read 512/512 bytes at offset 0
96 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
98 === Testing overlap while COW is in flight ===
100 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=1073741824
101 wrote 65536/65536 bytes at offset 0
102 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
103 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 backing_file=TEST_DIR/t.IMGFMT.base
104 wrote 65536/65536 bytes at offset 0
105 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
106 wrote 65536/65536 bytes at offset 536870912
107 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
108 discard 65536/65536 bytes at offset 0
109 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
110 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L2 table); further corruption events will be suppressed
111 blkdebug: Suspended request '0'
112 write failed: Input/output error
113 blkdebug: Resuming request '0'
114 aio_write failed: No medium found
116 === Testing unallocated image header ===
118 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
119 wrote 65536/65536 bytes at offset 0
120 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
121 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with qcow2_header); further corruption events will be suppressed
122 write failed: Input/output error
124 === Testing unaligned L1 entry ===
126 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
127 wrote 65536/65536 bytes at offset 0
128 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
129 qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed
130 read failed: Input/output error
131 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
132 wrote 65536/65536 bytes at offset 0
133 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
134 qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed
135 qemu-img: Failed to turn zero into data clusters: Input/output error
137 === Testing unaligned L2 entry ===
139 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
140 wrote 65536/65536 bytes at offset 0
141 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
142 qcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
143 read failed: Input/output error
145 === Testing unaligned pre-allocated zero cluster ===
147 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
148 wrote 65536/65536 bytes at offset 0
149 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
150 qcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
151 qemu-img: Failed to turn zero into data clusters: Input/output error
153 === Testing unaligned reftable entry ===
155 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
156 qcow2: Marking image as corrupt: Refblock offset 0x22a00 unaligned (reftable index: 0); further corruption events will be suppressed
157 write failed: Input/output error
159 === Testing non-fatal corruption on freeing ===
161 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
162 wrote 65536/65536 bytes at offset 0
163 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
164 qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed
165 discard 65536/65536 bytes at offset 0
166 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
168 === Testing read-only corruption report ===
170 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
171 wrote 65536/65536 bytes at offset 0
172 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
173 qcow2: Image is corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further non-fatal corruption events will be suppressed
174 read failed: Input/output error
175 read failed: Input/output error
177 === Testing non-fatal and then fatal corruption report ===
179 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
180 wrote 131072/131072 bytes at offset 0
181 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
182 qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed
183 qcow2: Marking image as corrupt: Cluster allocation offset 0x62a00 unaligned (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
184 discard 65536/65536 bytes at offset 0
185 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
186 read failed: Input/output error
188 === Testing empty refcount table ===
190 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
191 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount table); further corruption events will be suppressed
192 write failed: Input/output error
193 ERROR cluster 0 refcount=0 reference=1
194 ERROR cluster 1 refcount=0 reference=1
195 ERROR cluster 3 refcount=0 reference=1
196 Rebuilding refcount structure
197 Repairing cluster 1 refcount=1 reference=0
198 The following inconsistencies were found and repaired:
203 Double checking the fixed image now...
204 No errors were found on the image.
206 === Testing empty refcount table with valid L1 and L2 tables ===
208 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
209 wrote 65536/65536 bytes at offset 0
210 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
211 qcow2: Marking image as corrupt: Preventing invalid allocation of refcount block at offset 0; further corruption events will be suppressed
212 write failed: Input/output error
213 ERROR cluster 0 refcount=0 reference=1
214 ERROR cluster 1 refcount=0 reference=1
215 ERROR cluster 3 refcount=0 reference=1
216 ERROR cluster 4 refcount=0 reference=1
217 ERROR cluster 5 refcount=0 reference=1
218 Rebuilding refcount structure
219 Repairing cluster 1 refcount=1 reference=0
220 The following inconsistencies were found and repaired:
225 Double checking the fixed image now...
226 No errors were found on the image.
228 === Testing empty refcount block ===
230 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
231 qcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further corruption events will be suppressed
232 write failed: Input/output error
233 ERROR cluster 0 refcount=0 reference=1
234 ERROR cluster 1 refcount=0 reference=1
235 ERROR cluster 2 refcount=0 reference=1
236 ERROR cluster 3 refcount=0 reference=1
237 Rebuilding refcount structure
238 Repairing cluster 1 refcount=1 reference=0
239 Repairing cluster 2 refcount=1 reference=0
240 The following inconsistencies were found and repaired:
245 Double checking the fixed image now...
246 No errors were found on the image.
248 === Testing empty refcount block with compressed write ===
250 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
251 wrote 65536/65536 bytes at offset 65536
252 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
253 qcow2: Marking image as corrupt: Preventing invalid allocation of compressed cluster at offset 0; further corruption events will be suppressed
254 write failed: Input/output error
255 ERROR cluster 0 refcount=0 reference=1
256 ERROR cluster 1 refcount=0 reference=1
257 ERROR cluster 2 refcount=0 reference=1
258 ERROR cluster 3 refcount=0 reference=1
259 Rebuilding refcount structure
260 Repairing cluster 1 refcount=1 reference=0
261 Repairing cluster 2 refcount=1 reference=0
262 The following inconsistencies were found and repaired:
267 Double checking the fixed image now...
268 No errors were found on the image.
270 === Testing zero refcount table size ===
272 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
273 qemu-io: can't open device TEST_DIR/t.IMGFMT: Image does not contain a reference count table
274 ERROR cluster 0 refcount=0 reference=1
275 ERROR cluster 3 refcount=0 reference=1
276 Rebuilding refcount structure
277 The following inconsistencies were found and repaired:
282 Double checking the fixed image now...
283 No errors were found on the image.
285 === Testing incorrect refcount table offset ===
287 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
288 qcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further corruption events will be suppressed
289 write failed: Input/output error
291 === Testing dirty corrupt image ===
293 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
294 ERROR refcount block 0 is not cluster aligned; refcount table entry corrupted
295 IMGFMT: Marking image as corrupt: Refblock offset 0xffff2a00 unaligned (reftable index: 0); further corruption events will be suppressed
296 Can't get refcount for cluster 0: Input/output error
297 Can't get refcount for cluster 1: Input/output error
298 Can't get refcount for cluster 2: Input/output error
299 Can't get refcount for cluster 3: Input/output error
300 Rebuilding refcount structure
301 Repairing cluster 1 refcount=1 reference=0
302 qemu-io: can't open device TEST_DIR/t.IMGFMT: Could not repair dirty image: Input/output error
304 Leaked cluster 1 refcount=1 reference=0
305 Repairing cluster 1 refcount=1 reference=0
306 The following inconsistencies were found and repaired:
311 Double checking the fixed image now...
312 No errors were found on the image.
314 === Writing to an unaligned preallocated zero cluster ===
316 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
317 wrote 65536/65536 bytes at offset 0
318 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
319 discard 65536/65536 bytes at offset 0
320 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
321 qcow2: Marking image as corrupt: Preallocated zero cluster offset 0x2a00 unaligned (guest offset: 0); further corruption events will be suppressed
322 write failed: Input/output error
324 Repairing offset=2a00: Preallocated zero cluster is not properly aligned; L2 entry corrupted.
325 The following inconsistencies were found and repaired:
330 Double checking the fixed image now...
331 No errors were found on the image.
333 === Discarding with an unaligned refblock ===
335 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
336 wrote 131072/131072 bytes at offset 0
337 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
338 qcow2: Marking image as corrupt: Refblock offset 0x2a00 unaligned (reftable index: 0); further corruption events will be suppressed
339 qcow2_free_clusters failed: Input/output error
340 discard failed: No medium found
342 ERROR refcount block 0 is not cluster aligned; refcount table entry corrupted
343 qcow2: Marking image as corrupt: Refblock offset 0x2a00 unaligned (reftable index: 0); further corruption events will be suppressed
344 Can't get refcount for cluster 0: Input/output error
345 Can't get refcount for cluster 1: Input/output error
346 Can't get refcount for cluster 2: Input/output error
347 Can't get refcount for cluster 3: Input/output error
348 Can't get refcount for cluster 4: Input/output error
349 Can't get refcount for cluster 5: Input/output error
350 Can't get refcount for cluster 6: Input/output error
351 Rebuilding refcount structure
352 Repairing cluster 1 refcount=1 reference=0
353 qemu-img: Check failed: No medium found
354 Leaked cluster 1 refcount=1 reference=0
355 Repairing cluster 1 refcount=1 reference=0
356 The following inconsistencies were found and repaired:
361 Double checking the fixed image now...
362 No errors were found on the image.
364 === Discarding an out-of-bounds refblock ===
366 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
367 qcow2: Marking image as corrupt: Refblock at 0xffffff00000000 is not covered by the refcount structures; further corruption events will be suppressed
368 qemu-img: Failed to discard unused refblocks: Input/output error
369 --- Checking and retrying ---
370 virtual size: 64 MiB (67108864 bytes)
371 No errors were found on the image.
373 virtual size: 32 MiB (33554432 bytes)
375 === Discarding a non-covered in-bounds refblock ===
377 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
378 qcow2: Marking image as corrupt: Refblock at 0x1000000000 is not covered by the refcount structures; further corruption events will be suppressed
379 qemu-img: Failed to discard unused refblocks: Input/output error
380 --- Checking and retrying ---
381 virtual size: 64 MiB (67108864 bytes)
382 No errors were found on the image.
384 virtual size: 32 MiB (33554432 bytes)
386 === Discarding a refblock covered by an unaligned refblock ===
388 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
389 qcow2: Marking image as corrupt: Cannot get entry from refcount block cache: Offset 0x200 is unaligned; further corruption events will be suppressed
390 qemu-img: Failed to discard unused refblocks: Input/output error
392 Repairing refcount block 1 is outside image
393 ERROR refcount block 2 is not cluster aligned; refcount table entry corrupted
394 qcow2: Marking image as corrupt: Refblock offset 0x200 unaligned (reftable index: 0x2); further corruption events will be suppressed
395 Can't get refcount for cluster 1048576: Input/output error
396 Rebuilding refcount structure
397 Repairing cluster 1 refcount=1 reference=0
398 Repairing cluster 2 refcount=1 reference=0
399 Repairing cluster 1048576 refcount=1 reference=0
400 qemu-img: Check failed: No medium found
401 Leaked cluster 1 refcount=1 reference=0
402 Leaked cluster 2 refcount=1 reference=0
403 Leaked cluster 1048576 refcount=1 reference=0
404 Repairing cluster 1 refcount=1 reference=0
405 Repairing cluster 2 refcount=1 reference=0
406 Repairing cluster 1048576 refcount=1 reference=0
407 The following inconsistencies were found and repaired:
412 Double checking the fixed image now...
413 No errors were found on the image.
415 === Testing the QEMU shutdown with a corrupted image ===
417 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
418 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount table); further corruption events will be suppressed
421 {"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}}
422 write failed: Input/output error
425 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
427 === Testing incoming inactive corrupted image ===
429 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
432 qcow2: Image is corrupt: L2 table offset 0x2a2a2a00 unaligned (L1 index: 0); further non-fatal corruption events will be suppressed
433 {"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}}
436 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}