xref: /openbmc/qemu/tests/qemu-iotests/060.out (revision 464e447a)
1QA output created by 060
2
3=== Testing L2 reference into L1 ===
4
5Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
6ERROR cluster 3 refcount=1 reference=3
7
81 errors were found on the image.
9Data may be corrupted, or further writes to the image may corrupt it.
10incompatible_features     0x0
11qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L1 table); further corruption events will be suppressed
12write failed: Input/output error
13incompatible_features     0x2
14image: TEST_DIR/t.IMGFMT
15file format: IMGFMT
16virtual size: 64M (67108864 bytes)
17cluster_size: 65536
18Format specific information:
19    compat: 1.1
20    lazy refcounts: false
21    refcount bits: 16
22    corrupt: true
23can't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write
24no file open, try 'help open'
25read 512/512 bytes at offset 0
26512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
27
28=== Testing cluster data reference into refcount block ===
29
30Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
31ERROR refcount block 0 refcount=2
32ERROR cluster 2 refcount=1 reference=2
33
342 errors were found on the image.
35Data may be corrupted, or further writes to the image may corrupt it.
36incompatible_features     0x0
37qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed
38write failed: Input/output error
39incompatible_features     0x2
40ERROR refcount block 0 refcount=2
41ERROR cluster 2 refcount=1 reference=2
42Rebuilding refcount structure
43Repairing cluster 1 refcount=1 reference=0
44Repairing cluster 2 refcount=2 reference=1
45The following inconsistencies were found and repaired:
46
47    0 leaked clusters
48    2 corruptions
49
50Double checking the fixed image now...
51No errors were found on the image.
52incompatible_features     0x0
53wrote 512/512 bytes at offset 0
54512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
55incompatible_features     0x0
56
57=== Testing cluster data reference into inactive L2 table ===
58
59Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
60wrote 512/512 bytes at offset 0
61512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
62wrote 512/512 bytes at offset 0
63512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
64ERROR cluster 4 refcount=1 reference=2
65Leaked cluster 9 refcount=1 reference=0
66
671 errors were found on the image.
68Data may be corrupted, or further writes to the image may corrupt it.
69
701 leaked clusters were found on the image.
71This means waste of disk space, but no harm to data.
72incompatible_features     0x0
73qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 table); further corruption events will be suppressed
74write failed: Input/output error
75incompatible_features     0x2
76ERROR cluster 4 refcount=1 reference=2
77Leaked cluster 9 refcount=1 reference=0
78Repairing cluster 4 refcount=1 reference=2
79Repairing cluster 9 refcount=1 reference=0
80Repairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2
81The following inconsistencies were found and repaired:
82
83    1 leaked clusters
84    2 corruptions
85
86Double checking the fixed image now...
87No errors were found on the image.
88incompatible_features     0x0
89wrote 512/512 bytes at offset 0
90512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
91incompatible_features     0x0
92read 512/512 bytes at offset 0
93512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
94No errors were found on the image.
95read 512/512 bytes at offset 0
96512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
97
98=== Testing overlap while COW is in flight ===
99
100Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824
101wrote 65536/65536 bytes at offset 0
10264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
103wrote 65536/65536 bytes at offset 536870912
10464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
105discard 65536/65536 bytes at offset 0
10664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
107qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L2 table); further corruption events will be suppressed
108blkdebug: Suspended request '0'
109write failed: Input/output error
110blkdebug: Resuming request '0'
111aio_write failed: No medium found
112
113=== Testing unallocated image header ===
114
115Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
116wrote 65536/65536 bytes at offset 0
11764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
118qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with qcow2_header); further corruption events will be suppressed
119write failed: Input/output error
120
121=== Testing unaligned L1 entry ===
122
123Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
124wrote 65536/65536 bytes at offset 0
12564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
126qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed
127read failed: Input/output error
128Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
129wrote 65536/65536 bytes at offset 0
13064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
131qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed
132qemu-img: Failed to turn zero into data clusters: Input/output error
133
134=== Testing unaligned L2 entry ===
135
136Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
137wrote 65536/65536 bytes at offset 0
13864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
139qcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
140read failed: Input/output error
141
142=== Testing unaligned pre-allocated zero cluster ===
143
144Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
145wrote 65536/65536 bytes at offset 0
14664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
147qcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
148qemu-img: Failed to turn zero into data clusters: Input/output error
149
150=== Testing unaligned reftable entry ===
151
152Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
153qcow2: Marking image as corrupt: Refblock offset 0x22a00 unaligned (reftable index: 0); further corruption events will be suppressed
154write failed: Input/output error
155
156=== Testing non-fatal corruption on freeing ===
157
158Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
159wrote 65536/65536 bytes at offset 0
16064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
161qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed
162discard 65536/65536 bytes at offset 0
16364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
164
165=== Testing read-only corruption report ===
166
167Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
168wrote 65536/65536 bytes at offset 0
16964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
170qcow2: Image is corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further non-fatal corruption events will be suppressed
171read failed: Input/output error
172read failed: Input/output error
173
174=== Testing non-fatal and then fatal corruption report ===
175
176Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
177wrote 131072/131072 bytes at offset 0
178128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
179qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed
180qcow2: Marking image as corrupt: Cluster allocation offset 0x62a00 unaligned (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
181discard 65536/65536 bytes at offset 0
18264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
183read failed: Input/output error
184
185=== Testing empty refcount table ===
186
187Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
188qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount table); further corruption events will be suppressed
189write failed: Input/output error
190ERROR cluster 0 refcount=0 reference=1
191ERROR cluster 1 refcount=0 reference=1
192ERROR cluster 3 refcount=0 reference=1
193Rebuilding refcount structure
194Repairing cluster 1 refcount=1 reference=0
195The following inconsistencies were found and repaired:
196
197    0 leaked clusters
198    3 corruptions
199
200Double checking the fixed image now...
201No errors were found on the image.
202
203=== Testing empty refcount table with valid L1 and L2 tables ===
204
205Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
206wrote 65536/65536 bytes at offset 0
20764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
208qcow2: Marking image as corrupt: Preventing invalid allocation of refcount block at offset 0; further corruption events will be suppressed
209write failed: Input/output error
210ERROR cluster 0 refcount=0 reference=1
211ERROR cluster 1 refcount=0 reference=1
212ERROR cluster 3 refcount=0 reference=1
213ERROR cluster 4 refcount=0 reference=1
214ERROR cluster 5 refcount=0 reference=1
215Rebuilding refcount structure
216Repairing cluster 1 refcount=1 reference=0
217The following inconsistencies were found and repaired:
218
219    0 leaked clusters
220    5 corruptions
221
222Double checking the fixed image now...
223No errors were found on the image.
224
225=== Testing empty refcount block ===
226
227Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
228qcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further corruption events will be suppressed
229write failed: Input/output error
230ERROR cluster 0 refcount=0 reference=1
231ERROR cluster 1 refcount=0 reference=1
232ERROR cluster 2 refcount=0 reference=1
233ERROR cluster 3 refcount=0 reference=1
234Rebuilding refcount structure
235Repairing cluster 1 refcount=1 reference=0
236Repairing cluster 2 refcount=1 reference=0
237The following inconsistencies were found and repaired:
238
239    0 leaked clusters
240    4 corruptions
241
242Double checking the fixed image now...
243No errors were found on the image.
244
245=== Testing empty refcount block with compressed write ===
246
247Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
248wrote 65536/65536 bytes at offset 65536
24964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
250qcow2: Marking image as corrupt: Preventing invalid allocation of compressed cluster at offset 0; further corruption events will be suppressed
251write failed: Input/output error
252ERROR cluster 0 refcount=0 reference=1
253ERROR cluster 1 refcount=0 reference=1
254ERROR cluster 2 refcount=0 reference=1
255ERROR cluster 3 refcount=0 reference=1
256Rebuilding refcount structure
257Repairing cluster 1 refcount=1 reference=0
258Repairing cluster 2 refcount=1 reference=0
259The following inconsistencies were found and repaired:
260
261    0 leaked clusters
262    4 corruptions
263
264Double checking the fixed image now...
265No errors were found on the image.
266
267=== Testing zero refcount table size ===
268
269Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
270can't open device TEST_DIR/t.IMGFMT: Image does not contain a reference count table
271ERROR cluster 0 refcount=0 reference=1
272ERROR cluster 3 refcount=0 reference=1
273Rebuilding refcount structure
274The following inconsistencies were found and repaired:
275
276    0 leaked clusters
277    2 corruptions
278
279Double checking the fixed image now...
280No errors were found on the image.
281
282=== Testing incorrect refcount table offset ===
283
284Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
285qcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further corruption events will be suppressed
286write failed: Input/output error
287
288=== Testing dirty corrupt image ===
289
290Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
291ERROR refcount block 0 is not cluster aligned; refcount table entry corrupted
292IMGFMT: Marking image as corrupt: Refblock offset 0xffff2a00 unaligned (reftable index: 0); further corruption events will be suppressed
293Can't get refcount for cluster 0: Input/output error
294Can't get refcount for cluster 1: Input/output error
295Can't get refcount for cluster 2: Input/output error
296Can't get refcount for cluster 3: Input/output error
297Rebuilding refcount structure
298Repairing cluster 1 refcount=1 reference=0
299can't open device TEST_DIR/t.IMGFMT: Could not repair dirty image: Input/output error
300--- Repairing ---
301Leaked cluster 1 refcount=1 reference=0
302Repairing cluster 1 refcount=1 reference=0
303The following inconsistencies were found and repaired:
304
305    1 leaked clusters
306    0 corruptions
307
308Double checking the fixed image now...
309No errors were found on the image.
310
311=== Writing to an unaligned preallocated zero cluster ===
312
313Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
314wrote 65536/65536 bytes at offset 0
31564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
316discard 65536/65536 bytes at offset 0
31764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
318qcow2: Marking image as corrupt: Preallocated zero cluster offset 0x2a00 unaligned (guest offset: 0); further corruption events will be suppressed
319write failed: Input/output error
320--- Repairing ---
321Repairing offset=2a00: Preallocated zero cluster is not properly aligned; L2 entry corrupted.
322The following inconsistencies were found and repaired:
323
324    0 leaked clusters
325    1 corruptions
326
327Double checking the fixed image now...
328No errors were found on the image.
329
330=== Discarding with an unaligned refblock ===
331
332Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
333wrote 131072/131072 bytes at offset 0
334128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
335qcow2: Marking image as corrupt: Refblock offset 0x2a00 unaligned (reftable index: 0); further corruption events will be suppressed
336qcow2_free_clusters failed: Input/output error
337discard failed: No medium found
338--- Repairing ---
339ERROR refcount block 0 is not cluster aligned; refcount table entry corrupted
340qcow2: Marking image as corrupt: Refblock offset 0x2a00 unaligned (reftable index: 0); further corruption events will be suppressed
341Can't get refcount for cluster 0: Input/output error
342Can't get refcount for cluster 1: Input/output error
343Can't get refcount for cluster 2: Input/output error
344Can't get refcount for cluster 3: Input/output error
345Can't get refcount for cluster 4: Input/output error
346Can't get refcount for cluster 5: Input/output error
347Can't get refcount for cluster 6: Input/output error
348Rebuilding refcount structure
349Repairing cluster 1 refcount=1 reference=0
350qemu-img: Check failed: No medium found
351Leaked cluster 1 refcount=1 reference=0
352Repairing cluster 1 refcount=1 reference=0
353The following inconsistencies were found and repaired:
354
355    1 leaked clusters
356    0 corruptions
357
358Double checking the fixed image now...
359No errors were found on the image.
360
361=== Discarding an out-of-bounds refblock ===
362
363Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
364qcow2: Marking image as corrupt: Refblock at 0xffffff00000000 is not covered by the refcount structures; further corruption events will be suppressed
365qemu-img: Failed to discard unused refblocks: Input/output error
366--- Checking and retrying ---
367virtual size: 64M (67108864 bytes)
368No errors were found on the image.
369Image resized.
370virtual size: 32M (33554432 bytes)
371
372=== Discarding a non-covered in-bounds refblock ===
373
374Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
375qcow2: Marking image as corrupt: Refblock at 0x1000000000 is not covered by the refcount structures; further corruption events will be suppressed
376qemu-img: Failed to discard unused refblocks: Input/output error
377--- Checking and retrying ---
378virtual size: 64M (67108864 bytes)
379No errors were found on the image.
380Image resized.
381virtual size: 32M (33554432 bytes)
382
383=== Discarding a refblock covered by an unaligned refblock ===
384
385Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
386qcow2: Marking image as corrupt: Cannot get entry from refcount block cache: Offset 0x200 is unaligned; further corruption events will be suppressed
387qemu-img: Failed to discard unused refblocks: Input/output error
388--- Repairing ---
389Repairing refcount block 1 is outside image
390ERROR refcount block 2 is not cluster aligned; refcount table entry corrupted
391qcow2: Marking image as corrupt: Refblock offset 0x200 unaligned (reftable index: 0x2); further corruption events will be suppressed
392Can't get refcount for cluster 1048576: Input/output error
393Rebuilding refcount structure
394Repairing cluster 1 refcount=1 reference=0
395Repairing cluster 2 refcount=1 reference=0
396Repairing cluster 1048576 refcount=1 reference=0
397qemu-img: Check failed: No medium found
398Leaked cluster 1 refcount=1 reference=0
399Leaked cluster 2 refcount=1 reference=0
400Leaked cluster 1048576 refcount=1 reference=0
401Repairing cluster 1 refcount=1 reference=0
402Repairing cluster 2 refcount=1 reference=0
403Repairing cluster 1048576 refcount=1 reference=0
404The following inconsistencies were found and repaired:
405
406    3 leaked clusters
407    0 corruptions
408
409Double checking the fixed image now...
410No errors were found on the image.
411
412=== Testing the QEMU shutdown with a corrupted image ===
413
414Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
415qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount table); further corruption events will be suppressed
416QMP_VERSION
417{"return": {}}
418{"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}}
419write failed: Input/output error
420{"return": ""}
421{"return": {}}
422{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
423
424=== Testing incoming inactive corrupted image ===
425
426Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
427QMP_VERSION
428{"return": {}}
429qcow2: Image is corrupt: L2 table offset 0x2a2a2a00 unaligned (L1 index: 0); further non-fatal corruption events will be suppressed
430{"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}}
431{"return": ""}
432{"return": {}}
433{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
434
435    corrupt: false
436*** done
437