xref: /qemu/tests/qemu-iotests/060.out (revision ac5b787a6ee57852021e4a5a6876759218fbbbb0)
1ca0eca91SMax ReitzQA output created by 060
2ca0eca91SMax Reitz
3ca0eca91SMax Reitz=== Testing L2 reference into L1 ===
4ca0eca91SMax Reitz
5ca0eca91SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
6ca0eca91SMax ReitzERROR cluster 3 refcount=1 reference=3
7ca0eca91SMax Reitz
8ca0eca91SMax Reitz1 errors were found on the image.
9ca0eca91SMax ReitzData may be corrupted, or further writes to the image may corrupt it.
10ca0eca91SMax Reitzincompatible_features     0x0
11adb43552SMax Reitzqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L1 table); further corruption events will be suppressed
12ca0eca91SMax Reitzwrite failed: Input/output error
13ca0eca91SMax Reitzincompatible_features     0x2
14e800e5d4SKevin Wolfimage: TEST_DIR/t.IMGFMT
15e800e5d4SKevin Wolffile format: IMGFMT
16f383611aSMax Reitzvirtual size: 64M (67108864 bytes)
17f383611aSMax Reitzcluster_size: 65536
18f383611aSMax ReitzFormat specific information:
19f383611aSMax Reitz    compat: 1.1
20f383611aSMax Reitz    lazy refcounts: false
210709c5a1SMax Reitz    refcount bits: 16
22f383611aSMax Reitz    corrupt: true
23b9884681SMarkus Armbrustercan't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write
2464ebf556SEric Blakeno file open, try 'help open'
25ca0eca91SMax Reitzread 512/512 bytes at offset 0
26ca0eca91SMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
27ca0eca91SMax Reitz
28ca0eca91SMax Reitz=== Testing cluster data reference into refcount block ===
29ca0eca91SMax Reitz
30ca0eca91SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
31ca0eca91SMax ReitzERROR refcount block 0 refcount=2
32ca0eca91SMax ReitzERROR cluster 2 refcount=1 reference=2
33ca0eca91SMax Reitz
34ca0eca91SMax Reitz2 errors were found on the image.
35ca0eca91SMax ReitzData may be corrupted, or further writes to the image may corrupt it.
36ca0eca91SMax Reitzincompatible_features     0x0
37adb43552SMax Reitzqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed
38ca0eca91SMax Reitzwrite failed: Input/output error
39ca0eca91SMax Reitzincompatible_features     0x2
40d26e6ec0SMax ReitzERROR refcount block 0 refcount=2
41d26e6ec0SMax ReitzERROR cluster 2 refcount=1 reference=2
42d26e6ec0SMax ReitzRebuilding refcount structure
43d26e6ec0SMax ReitzRepairing cluster 1 refcount=1 reference=0
44d26e6ec0SMax ReitzRepairing cluster 2 refcount=2 reference=1
45ca0eca91SMax ReitzThe following inconsistencies were found and repaired:
46ca0eca91SMax Reitz
47ca0eca91SMax Reitz    0 leaked clusters
48d26e6ec0SMax Reitz    2 corruptions
49ca0eca91SMax Reitz
50ca0eca91SMax ReitzDouble checking the fixed image now...
51ca0eca91SMax ReitzNo errors were found on the image.
52ca0eca91SMax Reitzincompatible_features     0x0
53ca0eca91SMax Reitzwrote 512/512 bytes at offset 0
54ca0eca91SMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
55ca0eca91SMax Reitzincompatible_features     0x0
5634eeb82dSMax Reitz
5734eeb82dSMax Reitz=== Testing cluster data reference into inactive L2 table ===
5834eeb82dSMax Reitz
5934eeb82dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
6034eeb82dSMax Reitzwrote 512/512 bytes at offset 0
6134eeb82dSMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
6234eeb82dSMax Reitzwrote 512/512 bytes at offset 0
6334eeb82dSMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
6434eeb82dSMax ReitzERROR cluster 4 refcount=1 reference=2
6534eeb82dSMax ReitzLeaked cluster 9 refcount=1 reference=0
6634eeb82dSMax Reitz
6734eeb82dSMax Reitz1 errors were found on the image.
6834eeb82dSMax ReitzData may be corrupted, or further writes to the image may corrupt it.
6934eeb82dSMax Reitz
7034eeb82dSMax Reitz1 leaked clusters were found on the image.
7134eeb82dSMax ReitzThis means waste of disk space, but no harm to data.
7234eeb82dSMax Reitzincompatible_features     0x0
73adb43552SMax Reitzqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 table); further corruption events will be suppressed
7434eeb82dSMax Reitzwrite failed: Input/output error
7534eeb82dSMax Reitzincompatible_features     0x2
76d26e6ec0SMax ReitzERROR cluster 4 refcount=1 reference=2
77d26e6ec0SMax ReitzLeaked cluster 9 refcount=1 reference=0
7834eeb82dSMax ReitzRepairing cluster 4 refcount=1 reference=2
7934eeb82dSMax ReitzRepairing cluster 9 refcount=1 reference=0
8034eeb82dSMax ReitzRepairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2
8134eeb82dSMax ReitzThe following inconsistencies were found and repaired:
8234eeb82dSMax Reitz
8334eeb82dSMax Reitz    1 leaked clusters
8434eeb82dSMax Reitz    2 corruptions
8534eeb82dSMax Reitz
8634eeb82dSMax ReitzDouble checking the fixed image now...
8734eeb82dSMax ReitzNo errors were found on the image.
8834eeb82dSMax Reitzincompatible_features     0x0
8934eeb82dSMax Reitzwrote 512/512 bytes at offset 0
9034eeb82dSMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
9134eeb82dSMax Reitzincompatible_features     0x0
9234eeb82dSMax Reitzread 512/512 bytes at offset 0
9334eeb82dSMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
9434eeb82dSMax ReitzNo errors were found on the image.
9534eeb82dSMax Reitzread 512/512 bytes at offset 0
9634eeb82dSMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
9798d39e34SMax Reitz
9898d39e34SMax Reitz=== Testing overlap while COW is in flight ===
9998d39e34SMax Reitz
10098d39e34SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824
10198d39e34SMax Reitzwrote 65536/65536 bytes at offset 0
10298d39e34SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
10398d39e34SMax Reitzwrote 65536/65536 bytes at offset 536870912
10498d39e34SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
10598d39e34SMax Reitzdiscard 65536/65536 bytes at offset 0
10698d39e34SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
107adb43552SMax Reitzqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L2 table); further corruption events will be suppressed
10898d39e34SMax Reitzblkdebug: Suspended request '0'
10998d39e34SMax Reitzwrite failed: Input/output error
11098d39e34SMax Reitzblkdebug: Resuming request '0'
11198d39e34SMax Reitzaio_write failed: No medium found
112a42f8a3dSMax Reitz
113a42f8a3dSMax Reitz=== Testing unallocated image header ===
114a42f8a3dSMax Reitz
115a42f8a3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
116a42f8a3dSMax Reitzwrote 65536/65536 bytes at offset 0
117a42f8a3dSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
118adb43552SMax Reitzqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with qcow2_header); further corruption events will be suppressed
119a42f8a3dSMax Reitzwrite failed: Input/output error
1205b0ed2beSMax Reitz
1215b0ed2beSMax Reitz=== Testing unaligned L1 entry ===
1225b0ed2beSMax Reitz
1235b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
1245b0ed2beSMax Reitzwrote 65536/65536 bytes at offset 0
1255b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1265b0ed2beSMax Reitzqcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed
1275b0ed2beSMax Reitzread failed: Input/output error
128f30136b3SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
129f30136b3SMax Reitzwrote 65536/65536 bytes at offset 0
130f30136b3SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
131f30136b3SMax Reitzqcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed
132f30136b3SMax Reitzqemu-img: Error while amending options: Input/output error
1335b0ed2beSMax Reitz
1345b0ed2beSMax Reitz=== Testing unaligned L2 entry ===
1355b0ed2beSMax Reitz
1365b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
1375b0ed2beSMax Reitzwrote 65536/65536 bytes at offset 0
1385b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
139fdfab37dSEric Blakeqcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
1405b0ed2beSMax Reitzread failed: Input/output error
1415b0ed2beSMax Reitz
142f30136b3SMax Reitz=== Testing unaligned pre-allocated zero cluster ===
143f30136b3SMax Reitz
144f30136b3SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
145f30136b3SMax Reitzwrote 65536/65536 bytes at offset 0
146f30136b3SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
147bcb07dbaSEric Blakeqcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
148f30136b3SMax Reitzqemu-img: Error while amending options: Input/output error
149f30136b3SMax Reitz
1505b0ed2beSMax Reitz=== Testing unaligned reftable entry ===
1515b0ed2beSMax Reitz
1525b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
1535b0ed2beSMax Reitzqcow2: Marking image as corrupt: Refblock offset 0x22a00 unaligned (reftable index: 0); further corruption events will be suppressed
1545b0ed2beSMax Reitzwrite failed: Input/output error
1555b0ed2beSMax Reitz
1565b0ed2beSMax Reitz=== Testing non-fatal corruption on freeing ===
1575b0ed2beSMax Reitz
1585b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
1595b0ed2beSMax Reitzwrote 65536/65536 bytes at offset 0
1605b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1615b0ed2beSMax Reitzqcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed
1625b0ed2beSMax Reitzdiscard 65536/65536 bytes at offset 0
1635b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1645b0ed2beSMax Reitz
1655b0ed2beSMax Reitz=== Testing read-only corruption report ===
1665b0ed2beSMax Reitz
1675b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
1685b0ed2beSMax Reitzwrote 65536/65536 bytes at offset 0
1695b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
170fdfab37dSEric Blakeqcow2: Image is corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further non-fatal corruption events will be suppressed
1715b0ed2beSMax Reitzread failed: Input/output error
1725b0ed2beSMax Reitzread failed: Input/output error
1735b0ed2beSMax Reitz
1745b0ed2beSMax Reitz=== Testing non-fatal and then fatal corruption report ===
1755b0ed2beSMax Reitz
1765b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
1775b0ed2beSMax Reitzwrote 131072/131072 bytes at offset 0
1785b0ed2beSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1795b0ed2beSMax Reitzqcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed
180fdfab37dSEric Blakeqcow2: Marking image as corrupt: Cluster allocation offset 0x62a00 unaligned (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
1815b0ed2beSMax Reitzdiscard 65536/65536 bytes at offset 0
1825b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1835b0ed2beSMax Reitzread failed: Input/output error
1846bf45d59SAlberto Garcia
185ef083f61SAlberto Garcia=== Testing empty refcount table ===
186ef083f61SAlberto Garcia
187ef083f61SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
188ef083f61SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount table); further corruption events will be suppressed
189ef083f61SAlberto Garciawrite failed: Input/output error
190bcb5270cSAlberto GarciaERROR cluster 0 refcount=0 reference=1
191bcb5270cSAlberto GarciaERROR cluster 1 refcount=0 reference=1
192bcb5270cSAlberto GarciaERROR cluster 3 refcount=0 reference=1
193bcb5270cSAlberto GarciaRebuilding refcount structure
194bcb5270cSAlberto GarciaRepairing cluster 1 refcount=1 reference=0
195bcb5270cSAlberto GarciaThe following inconsistencies were found and repaired:
196bcb5270cSAlberto Garcia
197bcb5270cSAlberto Garcia    0 leaked clusters
198bcb5270cSAlberto Garcia    3 corruptions
199bcb5270cSAlberto Garcia
200bcb5270cSAlberto GarciaDouble checking the fixed image now...
201bcb5270cSAlberto GarciaNo errors were found on the image.
202ef083f61SAlberto Garcia
2036bf45d59SAlberto Garcia=== Testing empty refcount table with valid L1 and L2 tables ===
2046bf45d59SAlberto Garcia
2056bf45d59SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
2066bf45d59SAlberto Garciawrote 65536/65536 bytes at offset 0
2076bf45d59SAlberto Garcia64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2086bf45d59SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid allocation of refcount block at offset 0; further corruption events will be suppressed
2096bf45d59SAlberto Garciawrite failed: Input/output error
210bcb5270cSAlberto GarciaERROR cluster 0 refcount=0 reference=1
211bcb5270cSAlberto GarciaERROR cluster 1 refcount=0 reference=1
212bcb5270cSAlberto GarciaERROR cluster 3 refcount=0 reference=1
213bcb5270cSAlberto GarciaERROR cluster 4 refcount=0 reference=1
214bcb5270cSAlberto GarciaERROR cluster 5 refcount=0 reference=1
215bcb5270cSAlberto GarciaRebuilding refcount structure
216bcb5270cSAlberto GarciaRepairing cluster 1 refcount=1 reference=0
217bcb5270cSAlberto GarciaThe following inconsistencies were found and repaired:
218bcb5270cSAlberto Garcia
219bcb5270cSAlberto Garcia    0 leaked clusters
220bcb5270cSAlberto Garcia    5 corruptions
221bcb5270cSAlberto Garcia
222bcb5270cSAlberto GarciaDouble checking the fixed image now...
223bcb5270cSAlberto GarciaNo errors were found on the image.
22498839750SAlberto Garcia
22598839750SAlberto Garcia=== Testing empty refcount block ===
22698839750SAlberto Garcia
22798839750SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
22898839750SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further corruption events will be suppressed
22998839750SAlberto Garciawrite failed: Input/output error
230bcb5270cSAlberto GarciaERROR cluster 0 refcount=0 reference=1
231bcb5270cSAlberto GarciaERROR cluster 1 refcount=0 reference=1
232bcb5270cSAlberto GarciaERROR cluster 2 refcount=0 reference=1
233bcb5270cSAlberto GarciaERROR cluster 3 refcount=0 reference=1
234bcb5270cSAlberto GarciaRebuilding refcount structure
235bcb5270cSAlberto GarciaRepairing cluster 1 refcount=1 reference=0
236bcb5270cSAlberto GarciaRepairing cluster 2 refcount=1 reference=0
237bcb5270cSAlberto GarciaThe following inconsistencies were found and repaired:
238bcb5270cSAlberto Garcia
239bcb5270cSAlberto Garcia    0 leaked clusters
240bcb5270cSAlberto Garcia    4 corruptions
241bcb5270cSAlberto Garcia
242bcb5270cSAlberto GarciaDouble checking the fixed image now...
243bcb5270cSAlberto GarciaNo errors were found on the image.
2448aa34834SAlberto Garcia
2458aa34834SAlberto Garcia=== Testing empty refcount block with compressed write ===
2468aa34834SAlberto Garcia
2478aa34834SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
2488aa34834SAlberto Garciawrote 65536/65536 bytes at offset 65536
2498aa34834SAlberto Garcia64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2508aa34834SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid allocation of compressed cluster at offset 0; further corruption events will be suppressed
2518aa34834SAlberto Garciawrite failed: Input/output error
252bcb5270cSAlberto GarciaERROR cluster 0 refcount=0 reference=1
253bcb5270cSAlberto GarciaERROR cluster 1 refcount=0 reference=1
254bcb5270cSAlberto GarciaERROR cluster 2 refcount=0 reference=1
255bcb5270cSAlberto GarciaERROR cluster 3 refcount=0 reference=1
256bcb5270cSAlberto GarciaRebuilding refcount structure
257bcb5270cSAlberto GarciaRepairing cluster 1 refcount=1 reference=0
258bcb5270cSAlberto GarciaRepairing cluster 2 refcount=1 reference=0
259bcb5270cSAlberto GarciaThe following inconsistencies were found and repaired:
260bcb5270cSAlberto Garcia
261bcb5270cSAlberto Garcia    0 leaked clusters
262bcb5270cSAlberto Garcia    4 corruptions
263bcb5270cSAlberto Garcia
264bcb5270cSAlberto GarciaDouble checking the fixed image now...
265bcb5270cSAlberto GarciaNo errors were found on the image.
266951053a9SAlberto Garcia
267951053a9SAlberto Garcia=== Testing zero refcount table size ===
268951053a9SAlberto Garcia
269951053a9SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
270951053a9SAlberto Garciacan't open device TEST_DIR/t.IMGFMT: Image does not contain a reference count table
271bcb5270cSAlberto GarciaERROR cluster 0 refcount=0 reference=1
272bcb5270cSAlberto GarciaERROR cluster 3 refcount=0 reference=1
273bcb5270cSAlberto GarciaRebuilding refcount structure
274bcb5270cSAlberto GarciaThe following inconsistencies were found and repaired:
275bcb5270cSAlberto Garcia
276bcb5270cSAlberto Garcia    0 leaked clusters
277bcb5270cSAlberto Garcia    2 corruptions
278bcb5270cSAlberto Garcia
279bcb5270cSAlberto GarciaDouble checking the fixed image now...
280bcb5270cSAlberto GarciaNo errors were found on the image.
2815a45da5eSAlberto Garcia
2825a45da5eSAlberto Garcia=== Testing incorrect refcount table offset ===
2835a45da5eSAlberto Garcia
2845a45da5eSAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
2855a45da5eSAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further corruption events will be suppressed
2865a45da5eSAlberto Garciawrite failed: Input/output error
287791fff50SMax Reitz
288791fff50SMax Reitz=== Testing dirty corrupt image ===
289791fff50SMax Reitz
290791fff50SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
291791fff50SMax ReitzERROR refcount block 0 is not cluster aligned; refcount table entry corrupted
292791fff50SMax ReitzIMGFMT: Marking image as corrupt: Refblock offset 0xffff2a00 unaligned (reftable index: 0); further corruption events will be suppressed
293791fff50SMax ReitzCan't get refcount for cluster 0: Input/output error
294791fff50SMax ReitzCan't get refcount for cluster 1: Input/output error
295791fff50SMax ReitzCan't get refcount for cluster 2: Input/output error
296791fff50SMax ReitzCan't get refcount for cluster 3: Input/output error
297791fff50SMax ReitzRebuilding refcount structure
298791fff50SMax ReitzRepairing cluster 1 refcount=1 reference=0
299791fff50SMax Reitzcan't open device TEST_DIR/t.IMGFMT: Could not repair dirty image: Input/output error
300791fff50SMax Reitz--- Repairing ---
301791fff50SMax ReitzLeaked cluster 1 refcount=1 reference=0
302791fff50SMax ReitzRepairing cluster 1 refcount=1 reference=0
303791fff50SMax ReitzThe following inconsistencies were found and repaired:
304791fff50SMax Reitz
305791fff50SMax Reitz    1 leaked clusters
306791fff50SMax Reitz    0 corruptions
307791fff50SMax Reitz
308791fff50SMax ReitzDouble checking the fixed image now...
309791fff50SMax ReitzNo errors were found on the image.
31093bbaf03SMax Reitz
31193bbaf03SMax Reitz=== Writing to an unaligned preallocated zero cluster ===
31293bbaf03SMax Reitz
31393bbaf03SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
31493bbaf03SMax Reitzwrote 65536/65536 bytes at offset 0
31593bbaf03SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
31693bbaf03SMax Reitzdiscard 65536/65536 bytes at offset 0
31793bbaf03SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
31893bbaf03SMax Reitzqcow2: Marking image as corrupt: Preallocated zero cluster offset 0x2a00 unaligned (guest offset: 0); further corruption events will be suppressed
31993bbaf03SMax Reitzwrite failed: Input/output error
320*ac5b787aSMax Reitz--- Repairing ---
321*ac5b787aSMax ReitzRepairing offset=2a00: Preallocated zero cluster is not properly aligned; L2 entry corrupted.
322*ac5b787aSMax ReitzThe following inconsistencies were found and repaired:
323*ac5b787aSMax Reitz
324*ac5b787aSMax Reitz    0 leaked clusters
325*ac5b787aSMax Reitz    1 corruptions
326*ac5b787aSMax Reitz
327*ac5b787aSMax ReitzDouble checking the fixed image now...
328*ac5b787aSMax ReitzNo errors were found on the image.
329d470ad42SMax Reitz
330d470ad42SMax Reitz=== Discarding with an unaligned refblock ===
331d470ad42SMax Reitz
332d470ad42SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
333d470ad42SMax Reitzwrote 131072/131072 bytes at offset 0
334d470ad42SMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
335d470ad42SMax Reitzqcow2: Marking image as corrupt: Refblock offset 0x2a00 unaligned (reftable index: 0); further corruption events will be suppressed
336d470ad42SMax Reitzqcow2_free_clusters failed: Input/output error
337d470ad42SMax Reitzdiscard failed: No medium found
338d470ad42SMax Reitz--- Repairing ---
339d470ad42SMax ReitzERROR refcount block 0 is not cluster aligned; refcount table entry corrupted
340d470ad42SMax Reitzqcow2: Marking image as corrupt: Refblock offset 0x2a00 unaligned (reftable index: 0); further corruption events will be suppressed
341d470ad42SMax ReitzCan't get refcount for cluster 0: Input/output error
342d470ad42SMax ReitzCan't get refcount for cluster 1: Input/output error
343d470ad42SMax ReitzCan't get refcount for cluster 2: Input/output error
344d470ad42SMax ReitzCan't get refcount for cluster 3: Input/output error
345d470ad42SMax ReitzCan't get refcount for cluster 4: Input/output error
346d470ad42SMax ReitzCan't get refcount for cluster 5: Input/output error
347d470ad42SMax ReitzCan't get refcount for cluster 6: Input/output error
348d470ad42SMax ReitzRebuilding refcount structure
349d470ad42SMax ReitzRepairing cluster 1 refcount=1 reference=0
350d470ad42SMax Reitzqemu-img: Check failed: No medium found
351d470ad42SMax ReitzLeaked cluster 1 refcount=1 reference=0
352d470ad42SMax ReitzRepairing cluster 1 refcount=1 reference=0
353d470ad42SMax ReitzThe following inconsistencies were found and repaired:
354d470ad42SMax Reitz
355d470ad42SMax Reitz    1 leaked clusters
356d470ad42SMax Reitz    0 corruptions
357d470ad42SMax Reitz
358d470ad42SMax ReitzDouble checking the fixed image now...
359d470ad42SMax ReitzNo errors were found on the image.
36023482f8aSMax Reitz
36123482f8aSMax Reitz=== Discarding an out-of-bounds refblock ===
36223482f8aSMax Reitz
36323482f8aSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
36423482f8aSMax Reitzqcow2: Marking image as corrupt: Refblock at 0xffffff00000000 is not covered by the refcount structures; further corruption events will be suppressed
36523482f8aSMax Reitzqemu-img: Failed to discard unused refblocks: Input/output error
36623482f8aSMax Reitz--- Checking and retrying ---
36723482f8aSMax Reitzvirtual size: 64M (67108864 bytes)
36823482f8aSMax ReitzNo errors were found on the image.
36923482f8aSMax ReitzImage resized.
37023482f8aSMax Reitzvirtual size: 32M (33554432 bytes)
37123482f8aSMax Reitz
37223482f8aSMax Reitz=== Discarding a non-covered in-bounds refblock ===
37323482f8aSMax Reitz
37423482f8aSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
37523482f8aSMax Reitzqcow2: Marking image as corrupt: Refblock at 0x1000000000 is not covered by the refcount structures; further corruption events will be suppressed
37623482f8aSMax Reitzqemu-img: Failed to discard unused refblocks: Input/output error
37723482f8aSMax Reitz--- Checking and retrying ---
37823482f8aSMax Reitzvirtual size: 64M (67108864 bytes)
37923482f8aSMax ReitzNo errors were found on the image.
38023482f8aSMax ReitzImage resized.
38123482f8aSMax Reitzvirtual size: 32M (33554432 bytes)
3824efb1f7cSMax Reitz
3834efb1f7cSMax Reitz=== Discarding a refblock covered by an unaligned refblock ===
3844efb1f7cSMax Reitz
3854efb1f7cSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
3864efb1f7cSMax Reitzqcow2: Marking image as corrupt: Cannot get entry from refcount block cache: Offset 0x200 is unaligned; further corruption events will be suppressed
3874efb1f7cSMax Reitzqemu-img: Failed to discard unused refblocks: Input/output error
3884efb1f7cSMax Reitz--- Repairing ---
3894efb1f7cSMax ReitzRepairing refcount block 1 is outside image
3904efb1f7cSMax ReitzERROR refcount block 2 is not cluster aligned; refcount table entry corrupted
3914efb1f7cSMax Reitzqcow2: Marking image as corrupt: Refblock offset 0x200 unaligned (reftable index: 0x2); further corruption events will be suppressed
3924efb1f7cSMax ReitzCan't get refcount for cluster 1048576: Input/output error
3934efb1f7cSMax ReitzRebuilding refcount structure
3944efb1f7cSMax ReitzRepairing cluster 1 refcount=1 reference=0
3954efb1f7cSMax ReitzRepairing cluster 2 refcount=1 reference=0
3964efb1f7cSMax ReitzRepairing cluster 1048576 refcount=1 reference=0
3974efb1f7cSMax Reitzqemu-img: Check failed: No medium found
3984efb1f7cSMax ReitzLeaked cluster 1 refcount=1 reference=0
3994efb1f7cSMax ReitzLeaked cluster 2 refcount=1 reference=0
4004efb1f7cSMax ReitzLeaked cluster 1048576 refcount=1 reference=0
4014efb1f7cSMax ReitzRepairing cluster 1 refcount=1 reference=0
4024efb1f7cSMax ReitzRepairing cluster 2 refcount=1 reference=0
4034efb1f7cSMax ReitzRepairing cluster 1048576 refcount=1 reference=0
4044efb1f7cSMax ReitzThe following inconsistencies were found and repaired:
4054efb1f7cSMax Reitz
4064efb1f7cSMax Reitz    3 leaked clusters
4074efb1f7cSMax Reitz    0 corruptions
4084efb1f7cSMax Reitz
4094efb1f7cSMax ReitzDouble checking the fixed image now...
4104efb1f7cSMax ReitzNo errors were found on the image.
41150a3efb0SAlberto Garcia
41250a3efb0SAlberto Garcia=== Testing the QEMU shutdown with a corrupted image ===
41350a3efb0SAlberto Garcia
41450a3efb0SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
41550a3efb0SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount table); further corruption events will be suppressed
41650a3efb0SAlberto GarciaQMP_VERSION
41750a3efb0SAlberto Garcia{"return": {}}
41850a3efb0SAlberto Garcia{"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}}
41950a3efb0SAlberto Garciawrite failed: Input/output error
42050a3efb0SAlberto Garcia{"return": ""}
42150a3efb0SAlberto Garcia{"return": {}}
42250a3efb0SAlberto Garcia{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
423ca0eca91SMax Reitz*** done
424