Merge remote-tracking branch 'remotes/nvme/tags/nvme-fixes-20210407-pull-request...
[qemu/ar7.git] / tests / qemu-iotests / 060.out
blobb74540bafbe84ff721fc0197d21c4907d52cce70
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
15 file format: IMGFMT
16 virtual size: 64 MiB (67108864 bytes)
17 cluster_size: 65536
18 Format specific information:
19     compat: 1.1
20     compression type: zlib
21     lazy refcounts: false
22     refcount bits: 16
23     corrupt: true
24     extended l2: false
25 qemu-io: can't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write
26 no file open, try 'help open'
27 read 512/512 bytes at offset 0
28 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
30 === Testing cluster data reference into refcount block ===
32 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
33 ERROR refcount block 0 refcount=2
34 ERROR cluster 2 refcount=1 reference=2
36 2 errors were found on the image.
37 Data may be corrupted, or further writes to the image may corrupt it.
38 incompatible_features     []
39 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed
40 write failed: Input/output error
41 incompatible_features     [1]
42 ERROR refcount block 0 refcount=2
43 ERROR cluster 2 refcount=1 reference=2
44 Rebuilding refcount structure
45 Repairing cluster 1 refcount=1 reference=0
46 Repairing cluster 2 refcount=2 reference=1
47 The following inconsistencies were found and repaired:
49     0 leaked clusters
50     2 corruptions
52 Double checking the fixed image now...
53 No errors were found on the image.
54 incompatible_features     []
55 wrote 512/512 bytes at offset 0
56 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
57 incompatible_features     []
59 === Testing cluster data reference into inactive L2 table ===
61 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
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 wrote 512/512 bytes at offset 0
65 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
66 ERROR cluster 4 refcount=1 reference=2
67 Leaked cluster 9 refcount=1 reference=0
69 1 errors were found on the image.
70 Data may be corrupted, or further writes to the image may corrupt it.
72 1 leaked clusters were found on the image.
73 This means waste of disk space, but no harm to data.
74 incompatible_features     []
75 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 table); further corruption events will be suppressed
76 write failed: Input/output error
77 incompatible_features     [1]
78 ERROR cluster 4 refcount=1 reference=2
79 Leaked cluster 9 refcount=1 reference=0
80 Repairing cluster 4 refcount=1 reference=2
81 Repairing cluster 9 refcount=1 reference=0
82 Repairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2
83 The following inconsistencies were found and repaired:
85     1 leaked clusters
86     2 corruptions
88 Double checking the fixed image now...
89 No errors were found on the image.
90 incompatible_features     []
91 wrote 512/512 bytes at offset 0
92 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
93 incompatible_features     []
94 read 512/512 bytes at offset 0
95 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
96 No errors were found on the image.
97 read 512/512 bytes at offset 0
98 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
100 === Testing overlap while COW is in flight ===
102 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=1073741824
103 wrote 65536/65536 bytes at offset 0
104 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
105 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
106 wrote 65536/65536 bytes at offset 0
107 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
108 wrote 65536/65536 bytes at offset 536870912
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:
200     0 leaked clusters
201     3 corruptions
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:
222     0 leaked clusters
223     5 corruptions
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:
242     0 leaked clusters
243     4 corruptions
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:
264     0 leaked clusters
265     4 corruptions
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:
279     0 leaked clusters
280     2 corruptions
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
303 --- Repairing ---
304 Leaked cluster 1 refcount=1 reference=0
305 Repairing cluster 1 refcount=1 reference=0
306 The following inconsistencies were found and repaired:
308     1 leaked clusters
309     0 corruptions
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
323 --- Repairing ---
324 Repairing offset=2a00: Preallocated cluster is not properly aligned; L2 entry corrupted.
325 The following inconsistencies were found and repaired:
327     0 leaked clusters
328     1 corruptions
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
341 --- Repairing ---
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:
358     1 leaked clusters
359     0 corruptions
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.
372 Image resized.
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.
383 Image resized.
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
391 --- Repairing ---
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:
409     3 leaked clusters
410     0 corruptions
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
419 QMP_VERSION
420 {"return": {}}
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
423 {"return": ""}
424 {"return": {}}
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
430 QMP_VERSION
431 {"return": {}}
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}}
434 {"return": ""}
435 {"return": {}}
436 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
438     corrupt: false
439 *** done