]>
Commit | Line | Data |
---|---|---|
ca0eca91 HR |
1 | QA output created by 060 |
2 | ||
3 | === Testing L2 reference into L1 === | |
4 | ||
7486458c | 5 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
ca0eca91 HR |
6 | ERROR cluster 3 refcount=1 reference=3 |
7 | ||
8 | 1 errors were found on the image. | |
9 | Data may be corrupted, or further writes to the image may corrupt it. | |
0485e6ee | 10 | incompatible_features [] |
adb43552 | 11 | qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L1 table); further corruption events will be suppressed |
ca0eca91 | 12 | write failed: Input/output error |
0485e6ee | 13 | incompatible_features [1] |
e800e5d4 KW |
14 | image: TEST_DIR/t.IMGFMT |
15 | file format: IMGFMT | |
de38b500 | 16 | virtual size: 64 MiB (67108864 bytes) |
f383611a HR |
17 | cluster_size: 65536 |
18 | Format specific information: | |
19 | compat: 1.1 | |
dba5aee4 | 20 | compression type: COMPRESSION_TYPE |
f383611a | 21 | lazy refcounts: false |
0709c5a1 | 22 | refcount bits: 16 |
f383611a | 23 | corrupt: true |
7be20252 | 24 | extended l2: false |
36b9986b | 25 | qemu-io: can't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write |
64ebf556 | 26 | no file open, try 'help open' |
ca0eca91 HR |
27 | read 512/512 bytes at offset 0 |
28 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
29 | ||
30 | === Testing cluster data reference into refcount block === | |
31 | ||
7486458c | 32 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
ca0eca91 HR |
33 | ERROR refcount block 0 refcount=2 |
34 | ERROR cluster 2 refcount=1 reference=2 | |
35 | ||
36 | 2 errors were found on the image. | |
37 | Data may be corrupted, or further writes to the image may corrupt it. | |
0485e6ee | 38 | incompatible_features [] |
adb43552 | 39 | qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed |
ca0eca91 | 40 | write failed: Input/output error |
0485e6ee | 41 | incompatible_features [1] |
d26e6ec0 HR |
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 | |
ca0eca91 HR |
47 | The following inconsistencies were found and repaired: |
48 | ||
49 | 0 leaked clusters | |
d26e6ec0 | 50 | 2 corruptions |
ca0eca91 HR |
51 | |
52 | Double checking the fixed image now... | |
53 | No errors were found on the image. | |
0485e6ee | 54 | incompatible_features [] |
ca0eca91 HR |
55 | wrote 512/512 bytes at offset 0 |
56 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
0485e6ee | 57 | incompatible_features [] |
34eeb82d HR |
58 | |
59 | === Testing cluster data reference into inactive L2 table === | |
60 | ||
7486458c | 61 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
34eeb82d HR |
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 | |
68 | ||
69 | 1 errors were found on the image. | |
70 | Data may be corrupted, or further writes to the image may corrupt it. | |
71 | ||
72 | 1 leaked clusters were found on the image. | |
73 | This means waste of disk space, but no harm to data. | |
0485e6ee | 74 | incompatible_features [] |
adb43552 | 75 | qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 table); further corruption events will be suppressed |
34eeb82d | 76 | write failed: Input/output error |
0485e6ee | 77 | incompatible_features [1] |
d26e6ec0 HR |
78 | ERROR cluster 4 refcount=1 reference=2 |
79 | Leaked cluster 9 refcount=1 reference=0 | |
34eeb82d HR |
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: | |
84 | ||
85 | 1 leaked clusters | |
86 | 2 corruptions | |
87 | ||
88 | Double checking the fixed image now... | |
89 | No errors were found on the image. | |
0485e6ee | 90 | incompatible_features [] |
34eeb82d HR |
91 | wrote 512/512 bytes at offset 0 |
92 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
0485e6ee | 93 | incompatible_features [] |
34eeb82d HR |
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) | |
98d39e34 HR |
99 | |
100 | === Testing overlap while COW is in flight === | |
101 | ||
c8bb23cb AN |
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) | |
b66ff2c2 | 105 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT |
98d39e34 HR |
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) | |
adb43552 | 110 | qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L2 table); further corruption events will be suppressed |
98d39e34 HR |
111 | blkdebug: Suspended request '0' |
112 | write failed: Input/output error | |
113 | blkdebug: Resuming request '0' | |
114 | aio_write failed: No medium found | |
a42f8a3d HR |
115 | |
116 | === Testing unallocated image header === | |
117 | ||
7486458c | 118 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
a42f8a3d HR |
119 | wrote 65536/65536 bytes at offset 0 |
120 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
adb43552 | 121 | qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with qcow2_header); further corruption events will be suppressed |
a42f8a3d | 122 | write failed: Input/output error |
5b0ed2be HR |
123 | |
124 | === Testing unaligned L1 entry === | |
125 | ||
7486458c | 126 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
5b0ed2be HR |
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 | |
f30136b3 HR |
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 | |
d1402b50 | 135 | qemu-img: Failed to turn zero into data clusters: Input/output error |
5b0ed2be HR |
136 | |
137 | === Testing unaligned L2 entry === | |
138 | ||
7486458c | 139 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
5b0ed2be HR |
140 | wrote 65536/65536 bytes at offset 0 |
141 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
fdfab37d | 142 | qcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed |
5b0ed2be HR |
143 | read failed: Input/output error |
144 | ||
f30136b3 HR |
145 | === Testing unaligned pre-allocated zero cluster === |
146 | ||
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) | |
bcb07dba | 150 | qcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed |
d1402b50 | 151 | qemu-img: Failed to turn zero into data clusters: Input/output error |
f30136b3 | 152 | |
5b0ed2be HR |
153 | === Testing unaligned reftable entry === |
154 | ||
7486458c | 155 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
5b0ed2be HR |
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 | |
158 | ||
159 | === Testing non-fatal corruption on freeing === | |
160 | ||
7486458c | 161 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
5b0ed2be HR |
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) | |
167 | ||
168 | === Testing read-only corruption report === | |
169 | ||
7486458c | 170 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
5b0ed2be HR |
171 | wrote 65536/65536 bytes at offset 0 |
172 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
fdfab37d | 173 | qcow2: Image is corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further non-fatal corruption events will be suppressed |
5b0ed2be HR |
174 | read failed: Input/output error |
175 | read failed: Input/output error | |
176 | ||
177 | === Testing non-fatal and then fatal corruption report === | |
178 | ||
7486458c | 179 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
5b0ed2be HR |
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 | |
fdfab37d | 183 | qcow2: Marking image as corrupt: Cluster allocation offset 0x62a00 unaligned (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed |
5b0ed2be HR |
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 | |
6bf45d59 | 187 | |
ef083f61 AG |
188 | === Testing empty refcount table === |
189 | ||
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 | |
bcb5270c AG |
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: | |
199 | ||
200 | 0 leaked clusters | |
201 | 3 corruptions | |
202 | ||
203 | Double checking the fixed image now... | |
204 | No errors were found on the image. | |
ef083f61 | 205 | |
6bf45d59 AG |
206 | === Testing empty refcount table with valid L1 and L2 tables === |
207 | ||
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 | |
bcb5270c AG |
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: | |
221 | ||
222 | 0 leaked clusters | |
223 | 5 corruptions | |
224 | ||
225 | Double checking the fixed image now... | |
226 | No errors were found on the image. | |
98839750 AG |
227 | |
228 | === Testing empty refcount block === | |
229 | ||
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 | |
bcb5270c AG |
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: | |
241 | ||
242 | 0 leaked clusters | |
243 | 4 corruptions | |
244 | ||
245 | Double checking the fixed image now... | |
246 | No errors were found on the image. | |
8aa34834 AG |
247 | |
248 | === Testing empty refcount block with compressed write === | |
249 | ||
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 | |
bcb5270c AG |
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: | |
263 | ||
264 | 0 leaked clusters | |
265 | 4 corruptions | |
266 | ||
267 | Double checking the fixed image now... | |
268 | No errors were found on the image. | |
951053a9 AG |
269 | |
270 | === Testing zero refcount table size === | |
271 | ||
272 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
36b9986b | 273 | qemu-io: can't open device TEST_DIR/t.IMGFMT: Image does not contain a reference count table |
bcb5270c AG |
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: | |
278 | ||
279 | 0 leaked clusters | |
280 | 2 corruptions | |
281 | ||
282 | Double checking the fixed image now... | |
283 | No errors were found on the image. | |
5a45da5e AG |
284 | |
285 | === Testing incorrect refcount table offset === | |
286 | ||
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 | |
791fff50 HR |
290 | |
291 | === Testing dirty corrupt image === | |
292 | ||
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 | |
36b9986b | 302 | qemu-io: can't open device TEST_DIR/t.IMGFMT: Could not repair dirty image: Input/output error |
791fff50 HR |
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: | |
307 | ||
308 | 1 leaked clusters | |
309 | 0 corruptions | |
310 | ||
311 | Double checking the fixed image now... | |
312 | No errors were found on the image. | |
93bbaf03 HR |
313 | |
314 | === Writing to an unaligned preallocated zero cluster === | |
315 | ||
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 | |
ac5b787a | 323 | --- Repairing --- |
fc2e6528 | 324 | Repairing offset=2a00: Preallocated cluster is not properly aligned; L2 entry corrupted. |
ac5b787a HR |
325 | The following inconsistencies were found and repaired: |
326 | ||
327 | 0 leaked clusters | |
328 | 1 corruptions | |
329 | ||
330 | Double checking the fixed image now... | |
331 | No errors were found on the image. | |
d470ad42 HR |
332 | |
333 | === Discarding with an unaligned refblock === | |
334 | ||
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: | |
357 | ||
358 | 1 leaked clusters | |
359 | 0 corruptions | |
360 | ||
361 | Double checking the fixed image now... | |
362 | No errors were found on the image. | |
23482f8a HR |
363 | |
364 | === Discarding an out-of-bounds refblock === | |
365 | ||
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 --- | |
de38b500 | 370 | virtual size: 64 MiB (67108864 bytes) |
23482f8a HR |
371 | No errors were found on the image. |
372 | Image resized. | |
de38b500 | 373 | virtual size: 32 MiB (33554432 bytes) |
23482f8a HR |
374 | |
375 | === Discarding a non-covered in-bounds refblock === | |
376 | ||
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 --- | |
de38b500 | 381 | virtual size: 64 MiB (67108864 bytes) |
23482f8a HR |
382 | No errors were found on the image. |
383 | Image resized. | |
de38b500 | 384 | virtual size: 32 MiB (33554432 bytes) |
4efb1f7c HR |
385 | |
386 | === Discarding a refblock covered by an unaligned refblock === | |
387 | ||
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: | |
408 | ||
409 | 3 leaked clusters | |
410 | 0 corruptions | |
411 | ||
412 | Double checking the fixed image now... | |
413 | No errors were found on the image. | |
50a3efb0 AG |
414 | |
415 | === Testing the QEMU shutdown with a corrupted image === | |
416 | ||
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": {}} | |
92548938 | 425 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}} |
c50abd17 HR |
426 | |
427 | === Testing incoming inactive corrupted image === | |
428 | ||
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}} | |
c50abd17 HR |
434 | {"return": ""} |
435 | {"return": {}} | |
92548938 | 436 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}} |
c50abd17 HR |
437 | |
438 | corrupt: false | |
ca0eca91 | 439 | *** done |