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