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. 100485e6eeSMax Reitzincompatible_features [] 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 130485e6eeSMax Reitzincompatible_features [1] 14e800e5d4SKevin Wolfimage: TEST_DIR/t.IMGFMT 15e800e5d4SKevin Wolffile format: IMGFMT 16de38b500SEric Blakevirtual size: 64 MiB (67108864 bytes) 17f383611aSMax Reitzcluster_size: 65536 18f383611aSMax ReitzFormat specific information: 19f383611aSMax Reitz compat: 1.1 20dba5aee4SVladimir Sementsov-Ogievskiy compression type: COMPRESSION_TYPE 21f383611aSMax Reitz lazy refcounts: false 220709c5a1SMax Reitz refcount bits: 16 23f383611aSMax Reitz corrupt: true 247be20252SAlberto Garcia extended l2: false 2536b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write 2664ebf556SEric Blakeno file open, try 'help open' 27ca0eca91SMax Reitzread 512/512 bytes at offset 0 28ca0eca91SMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 29ca0eca91SMax Reitz 30ca0eca91SMax Reitz=== Testing cluster data reference into refcount block === 31ca0eca91SMax Reitz 32ca0eca91SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 33ca0eca91SMax ReitzERROR refcount block 0 refcount=2 34ca0eca91SMax ReitzERROR cluster 2 refcount=1 reference=2 35ca0eca91SMax Reitz 36ca0eca91SMax Reitz2 errors were found on the image. 37ca0eca91SMax ReitzData may be corrupted, or further writes to the image may corrupt it. 380485e6eeSMax Reitzincompatible_features [] 39adb43552SMax Reitzqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed 40ca0eca91SMax Reitzwrite failed: Input/output error 410485e6eeSMax Reitzincompatible_features [1] 42d26e6ec0SMax ReitzERROR refcount block 0 refcount=2 43d26e6ec0SMax ReitzERROR cluster 2 refcount=1 reference=2 44d26e6ec0SMax ReitzRebuilding refcount structure 45d26e6ec0SMax ReitzRepairing cluster 1 refcount=1 reference=0 46d26e6ec0SMax ReitzRepairing cluster 2 refcount=2 reference=1 47ca0eca91SMax ReitzThe following inconsistencies were found and repaired: 48ca0eca91SMax Reitz 49ca0eca91SMax Reitz 0 leaked clusters 50d26e6ec0SMax Reitz 2 corruptions 51ca0eca91SMax Reitz 52ca0eca91SMax ReitzDouble checking the fixed image now... 53ca0eca91SMax ReitzNo errors were found on the image. 540485e6eeSMax Reitzincompatible_features [] 55ca0eca91SMax Reitzwrote 512/512 bytes at offset 0 56ca0eca91SMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 570485e6eeSMax Reitzincompatible_features [] 5834eeb82dSMax Reitz 5934eeb82dSMax Reitz=== Testing cluster data reference into inactive L2 table === 6034eeb82dSMax Reitz 6134eeb82dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 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 Reitzwrote 512/512 bytes at offset 0 6534eeb82dSMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 6634eeb82dSMax ReitzERROR cluster 4 refcount=1 reference=2 6734eeb82dSMax ReitzLeaked cluster 9 refcount=1 reference=0 6834eeb82dSMax Reitz 6934eeb82dSMax Reitz1 errors were found on the image. 7034eeb82dSMax ReitzData may be corrupted, or further writes to the image may corrupt it. 7134eeb82dSMax Reitz 7234eeb82dSMax Reitz1 leaked clusters were found on the image. 7334eeb82dSMax ReitzThis means waste of disk space, but no harm to data. 740485e6eeSMax Reitzincompatible_features [] 75adb43552SMax Reitzqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 table); further corruption events will be suppressed 7634eeb82dSMax Reitzwrite failed: Input/output error 770485e6eeSMax Reitzincompatible_features [1] 78d26e6ec0SMax ReitzERROR cluster 4 refcount=1 reference=2 79d26e6ec0SMax ReitzLeaked cluster 9 refcount=1 reference=0 8034eeb82dSMax ReitzRepairing cluster 4 refcount=1 reference=2 8134eeb82dSMax ReitzRepairing cluster 9 refcount=1 reference=0 8234eeb82dSMax ReitzRepairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2 8334eeb82dSMax ReitzThe following inconsistencies were found and repaired: 8434eeb82dSMax Reitz 8534eeb82dSMax Reitz 1 leaked clusters 8634eeb82dSMax Reitz 2 corruptions 8734eeb82dSMax Reitz 8834eeb82dSMax ReitzDouble checking the fixed image now... 8934eeb82dSMax ReitzNo errors were found on the image. 900485e6eeSMax Reitzincompatible_features [] 9134eeb82dSMax Reitzwrote 512/512 bytes at offset 0 9234eeb82dSMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 930485e6eeSMax Reitzincompatible_features [] 9434eeb82dSMax Reitzread 512/512 bytes at offset 0 9534eeb82dSMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 9634eeb82dSMax ReitzNo errors were found on the image. 9734eeb82dSMax Reitzread 512/512 bytes at offset 0 9834eeb82dSMax Reitz512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 9998d39e34SMax Reitz 10098d39e34SMax Reitz=== Testing overlap while COW is in flight === 10198d39e34SMax Reitz 102c8bb23cbSAnton NefedovFormatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=1073741824 103c8bb23cbSAnton Nefedovwrote 65536/65536 bytes at offset 0 104c8bb23cbSAnton Nefedov64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 105b66ff2c2SEric BlakeFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 10698d39e34SMax Reitzwrote 65536/65536 bytes at offset 0 10798d39e34SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 10898d39e34SMax Reitzwrote 65536/65536 bytes at offset 536870912 10998d39e34SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 110adb43552SMax Reitzqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L2 table); further corruption events will be suppressed 11198d39e34SMax Reitzblkdebug: Suspended request '0' 11298d39e34SMax Reitzwrite failed: Input/output error 11398d39e34SMax Reitzblkdebug: Resuming request '0' 11498d39e34SMax Reitzaio_write failed: No medium found 115a42f8a3dSMax Reitz 116a42f8a3dSMax Reitz=== Testing unallocated image header === 117a42f8a3dSMax Reitz 118a42f8a3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 119a42f8a3dSMax Reitzwrote 65536/65536 bytes at offset 0 120a42f8a3dSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 121adb43552SMax Reitzqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with qcow2_header); further corruption events will be suppressed 122a42f8a3dSMax Reitzwrite failed: Input/output error 1235b0ed2beSMax Reitz 1245b0ed2beSMax Reitz=== Testing unaligned L1 entry === 1255b0ed2beSMax Reitz 1265b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 1275b0ed2beSMax Reitzwrote 65536/65536 bytes at offset 0 1285b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1295b0ed2beSMax Reitzqcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed 1305b0ed2beSMax Reitzread failed: Input/output error 131f30136b3SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 132f30136b3SMax Reitzwrote 65536/65536 bytes at offset 0 133f30136b3SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 134f30136b3SMax Reitzqcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed 135d1402b50SMax Reitzqemu-img: Failed to turn zero into data clusters: Input/output error 1365b0ed2beSMax Reitz 1375b0ed2beSMax Reitz=== Testing unaligned L2 entry === 1385b0ed2beSMax Reitz 1395b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 1405b0ed2beSMax Reitzwrote 65536/65536 bytes at offset 0 1415b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 142fdfab37dSEric Blakeqcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed 1435b0ed2beSMax Reitzread failed: Input/output error 1445b0ed2beSMax Reitz 145f30136b3SMax Reitz=== Testing unaligned pre-allocated zero cluster === 146f30136b3SMax Reitz 147f30136b3SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 148f30136b3SMax Reitzwrote 65536/65536 bytes at offset 0 149f30136b3SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 150bcb07dbaSEric Blakeqcow2: Marking image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed 151d1402b50SMax Reitzqemu-img: Failed to turn zero into data clusters: Input/output error 152f30136b3SMax Reitz 1535b0ed2beSMax Reitz=== Testing unaligned reftable entry === 1545b0ed2beSMax Reitz 1555b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 1565b0ed2beSMax Reitzqcow2: Marking image as corrupt: Refblock offset 0x22a00 unaligned (reftable index: 0); further corruption events will be suppressed 1575b0ed2beSMax Reitzwrite failed: Input/output error 1585b0ed2beSMax Reitz 1595b0ed2beSMax Reitz=== Testing non-fatal corruption on freeing === 1605b0ed2beSMax Reitz 1615b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 1625b0ed2beSMax Reitzwrote 65536/65536 bytes at offset 0 1635b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1645b0ed2beSMax Reitzqcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed 1655b0ed2beSMax Reitzdiscard 65536/65536 bytes at offset 0 1665b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1675b0ed2beSMax Reitz 1685b0ed2beSMax Reitz=== Testing read-only corruption report === 1695b0ed2beSMax Reitz 1705b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 1715b0ed2beSMax Reitzwrote 65536/65536 bytes at offset 0 1725b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 173fdfab37dSEric Blakeqcow2: Image is corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further non-fatal corruption events will be suppressed 1745b0ed2beSMax Reitzread failed: Input/output error 1755b0ed2beSMax Reitzread failed: Input/output error 1765b0ed2beSMax Reitz 1775b0ed2beSMax Reitz=== Testing non-fatal and then fatal corruption report === 1785b0ed2beSMax Reitz 1795b0ed2beSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 1805b0ed2beSMax Reitzwrote 131072/131072 bytes at offset 0 1815b0ed2beSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1825b0ed2beSMax Reitzqcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed 183fdfab37dSEric Blakeqcow2: Marking image as corrupt: Cluster allocation offset 0x62a00 unaligned (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed 1845b0ed2beSMax Reitzdiscard 65536/65536 bytes at offset 0 1855b0ed2beSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1865b0ed2beSMax Reitzread failed: Input/output error 1876bf45d59SAlberto Garcia 188ef083f61SAlberto Garcia=== Testing empty refcount table === 189ef083f61SAlberto Garcia 190ef083f61SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 191ef083f61SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount table); further corruption events will be suppressed 192ef083f61SAlberto Garciawrite failed: Input/output error 193bcb5270cSAlberto GarciaERROR cluster 0 refcount=0 reference=1 194bcb5270cSAlberto GarciaERROR cluster 1 refcount=0 reference=1 195bcb5270cSAlberto GarciaERROR cluster 3 refcount=0 reference=1 196bcb5270cSAlberto GarciaRebuilding refcount structure 197bcb5270cSAlberto GarciaRepairing cluster 1 refcount=1 reference=0 198bcb5270cSAlberto GarciaThe following inconsistencies were found and repaired: 199bcb5270cSAlberto Garcia 200bcb5270cSAlberto Garcia 0 leaked clusters 201bcb5270cSAlberto Garcia 3 corruptions 202bcb5270cSAlberto Garcia 203bcb5270cSAlberto GarciaDouble checking the fixed image now... 204bcb5270cSAlberto GarciaNo errors were found on the image. 205ef083f61SAlberto Garcia 2066bf45d59SAlberto Garcia=== Testing empty refcount table with valid L1 and L2 tables === 2076bf45d59SAlberto Garcia 2086bf45d59SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 2096bf45d59SAlberto Garciawrote 65536/65536 bytes at offset 0 2106bf45d59SAlberto Garcia64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2116bf45d59SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid allocation of refcount block at offset 0; further corruption events will be suppressed 2126bf45d59SAlberto Garciawrite failed: Input/output error 213bcb5270cSAlberto GarciaERROR cluster 0 refcount=0 reference=1 214bcb5270cSAlberto GarciaERROR cluster 1 refcount=0 reference=1 215bcb5270cSAlberto GarciaERROR cluster 3 refcount=0 reference=1 216bcb5270cSAlberto GarciaERROR cluster 4 refcount=0 reference=1 217bcb5270cSAlberto GarciaERROR cluster 5 refcount=0 reference=1 218bcb5270cSAlberto GarciaRebuilding refcount structure 219bcb5270cSAlberto GarciaRepairing cluster 1 refcount=1 reference=0 220bcb5270cSAlberto GarciaThe following inconsistencies were found and repaired: 221bcb5270cSAlberto Garcia 222bcb5270cSAlberto Garcia 0 leaked clusters 223bcb5270cSAlberto Garcia 5 corruptions 224bcb5270cSAlberto Garcia 225bcb5270cSAlberto GarciaDouble checking the fixed image now... 226bcb5270cSAlberto GarciaNo errors were found on the image. 22798839750SAlberto Garcia 22898839750SAlberto Garcia=== Testing empty refcount block === 22998839750SAlberto Garcia 23098839750SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 23198839750SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further corruption events will be suppressed 23298839750SAlberto Garciawrite failed: Input/output error 233bcb5270cSAlberto GarciaERROR cluster 0 refcount=0 reference=1 234bcb5270cSAlberto GarciaERROR cluster 1 refcount=0 reference=1 235bcb5270cSAlberto GarciaERROR cluster 2 refcount=0 reference=1 236bcb5270cSAlberto GarciaERROR cluster 3 refcount=0 reference=1 237bcb5270cSAlberto GarciaRebuilding refcount structure 238bcb5270cSAlberto GarciaRepairing cluster 1 refcount=1 reference=0 239bcb5270cSAlberto GarciaRepairing cluster 2 refcount=1 reference=0 240bcb5270cSAlberto GarciaThe following inconsistencies were found and repaired: 241bcb5270cSAlberto Garcia 242bcb5270cSAlberto Garcia 0 leaked clusters 243bcb5270cSAlberto Garcia 4 corruptions 244bcb5270cSAlberto Garcia 245bcb5270cSAlberto GarciaDouble checking the fixed image now... 246bcb5270cSAlberto GarciaNo errors were found on the image. 2478aa34834SAlberto Garcia 2488aa34834SAlberto Garcia=== Testing empty refcount block with compressed write === 2498aa34834SAlberto Garcia 2508aa34834SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 2518aa34834SAlberto Garciawrote 65536/65536 bytes at offset 65536 2528aa34834SAlberto Garcia64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2538aa34834SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid allocation of compressed cluster at offset 0; further corruption events will be suppressed 2548aa34834SAlberto Garciawrite failed: Input/output error 255bcb5270cSAlberto GarciaERROR cluster 0 refcount=0 reference=1 256bcb5270cSAlberto GarciaERROR cluster 1 refcount=0 reference=1 257bcb5270cSAlberto GarciaERROR cluster 2 refcount=0 reference=1 258bcb5270cSAlberto GarciaERROR cluster 3 refcount=0 reference=1 259bcb5270cSAlberto GarciaRebuilding refcount structure 260bcb5270cSAlberto GarciaRepairing cluster 1 refcount=1 reference=0 261bcb5270cSAlberto GarciaRepairing cluster 2 refcount=1 reference=0 262bcb5270cSAlberto GarciaThe following inconsistencies were found and repaired: 263bcb5270cSAlberto Garcia 264bcb5270cSAlberto Garcia 0 leaked clusters 265bcb5270cSAlberto Garcia 4 corruptions 266bcb5270cSAlberto Garcia 267bcb5270cSAlberto GarciaDouble checking the fixed image now... 268bcb5270cSAlberto GarciaNo errors were found on the image. 269951053a9SAlberto Garcia 270951053a9SAlberto Garcia=== Testing zero refcount table size === 271951053a9SAlberto Garcia 272951053a9SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 27336b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.IMGFMT: Image does not contain a reference count table 274bcb5270cSAlberto GarciaERROR cluster 0 refcount=0 reference=1 275bcb5270cSAlberto GarciaERROR cluster 3 refcount=0 reference=1 276bcb5270cSAlberto GarciaRebuilding refcount structure 277bcb5270cSAlberto GarciaThe following inconsistencies were found and repaired: 278bcb5270cSAlberto Garcia 279bcb5270cSAlberto Garcia 0 leaked clusters 280bcb5270cSAlberto Garcia 2 corruptions 281bcb5270cSAlberto Garcia 282bcb5270cSAlberto GarciaDouble checking the fixed image now... 283bcb5270cSAlberto GarciaNo errors were found on the image. 2845a45da5eSAlberto Garcia 2855a45da5eSAlberto Garcia=== Testing incorrect refcount table offset === 2865a45da5eSAlberto Garcia 2875a45da5eSAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 2885a45da5eSAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further corruption events will be suppressed 2895a45da5eSAlberto Garciawrite failed: Input/output error 290791fff50SMax Reitz 291791fff50SMax Reitz=== Testing dirty corrupt image === 292791fff50SMax Reitz 293791fff50SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 294791fff50SMax ReitzERROR refcount block 0 is not cluster aligned; refcount table entry corrupted 295791fff50SMax ReitzIMGFMT: Marking image as corrupt: Refblock offset 0xffff2a00 unaligned (reftable index: 0); further corruption events will be suppressed 296791fff50SMax ReitzCan't get refcount for cluster 0: Input/output error 297791fff50SMax ReitzCan't get refcount for cluster 1: Input/output error 298791fff50SMax ReitzCan't get refcount for cluster 2: Input/output error 299791fff50SMax ReitzCan't get refcount for cluster 3: Input/output error 300791fff50SMax ReitzRebuilding refcount structure 301791fff50SMax ReitzRepairing cluster 1 refcount=1 reference=0 30236b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.IMGFMT: Could not repair dirty image: Input/output error 303791fff50SMax Reitz--- Repairing --- 304791fff50SMax ReitzLeaked cluster 1 refcount=1 reference=0 305791fff50SMax ReitzRepairing cluster 1 refcount=1 reference=0 306791fff50SMax ReitzThe following inconsistencies were found and repaired: 307791fff50SMax Reitz 308791fff50SMax Reitz 1 leaked clusters 309791fff50SMax Reitz 0 corruptions 310791fff50SMax Reitz 311791fff50SMax ReitzDouble checking the fixed image now... 312791fff50SMax ReitzNo errors were found on the image. 31393bbaf03SMax Reitz 31493bbaf03SMax Reitz=== Writing to an unaligned preallocated zero cluster === 31593bbaf03SMax Reitz 31693bbaf03SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 31793bbaf03SMax Reitzwrote 65536/65536 bytes at offset 0 31893bbaf03SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 31993bbaf03SMax Reitzdiscard 65536/65536 bytes at offset 0 32093bbaf03SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 32193bbaf03SMax Reitzqcow2: Marking image as corrupt: Preallocated zero cluster offset 0x2a00 unaligned (guest offset: 0); further corruption events will be suppressed 32293bbaf03SMax Reitzwrite failed: Input/output error 323ac5b787aSMax Reitz--- Repairing --- 324fc2e6528SAlberto GarciaRepairing offset=2a00: Preallocated cluster is not properly aligned; L2 entry corrupted. 325ac5b787aSMax ReitzThe following inconsistencies were found and repaired: 326ac5b787aSMax Reitz 327ac5b787aSMax Reitz 0 leaked clusters 328ac5b787aSMax Reitz 1 corruptions 329ac5b787aSMax Reitz 330ac5b787aSMax ReitzDouble checking the fixed image now... 331ac5b787aSMax ReitzNo errors were found on the image. 332d470ad42SMax Reitz 333d470ad42SMax Reitz=== Discarding with an unaligned refblock === 334d470ad42SMax Reitz 335d470ad42SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 336d470ad42SMax Reitzwrote 131072/131072 bytes at offset 0 337d470ad42SMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 338d470ad42SMax Reitzqcow2: Marking image as corrupt: Refblock offset 0x2a00 unaligned (reftable index: 0); further corruption events will be suppressed 339d470ad42SMax Reitzqcow2_free_clusters failed: Input/output error 340d470ad42SMax Reitzdiscard failed: No medium found 341d470ad42SMax Reitz--- Repairing --- 342d470ad42SMax ReitzERROR refcount block 0 is not cluster aligned; refcount table entry corrupted 343d470ad42SMax Reitzqcow2: Marking image as corrupt: Refblock offset 0x2a00 unaligned (reftable index: 0); further corruption events will be suppressed 344d470ad42SMax ReitzCan't get refcount for cluster 0: Input/output error 345d470ad42SMax ReitzCan't get refcount for cluster 1: Input/output error 346d470ad42SMax ReitzCan't get refcount for cluster 2: Input/output error 347d470ad42SMax ReitzCan't get refcount for cluster 3: Input/output error 348d470ad42SMax ReitzCan't get refcount for cluster 4: Input/output error 349d470ad42SMax ReitzCan't get refcount for cluster 5: Input/output error 350d470ad42SMax ReitzCan't get refcount for cluster 6: Input/output error 351d470ad42SMax ReitzRebuilding refcount structure 352d470ad42SMax ReitzRepairing cluster 1 refcount=1 reference=0 353d470ad42SMax Reitzqemu-img: Check failed: No medium found 354d470ad42SMax ReitzLeaked cluster 1 refcount=1 reference=0 355d470ad42SMax ReitzRepairing cluster 1 refcount=1 reference=0 356d470ad42SMax ReitzThe following inconsistencies were found and repaired: 357d470ad42SMax Reitz 358d470ad42SMax Reitz 1 leaked clusters 359d470ad42SMax Reitz 0 corruptions 360d470ad42SMax Reitz 361d470ad42SMax ReitzDouble checking the fixed image now... 362d470ad42SMax ReitzNo errors were found on the image. 36323482f8aSMax Reitz 36423482f8aSMax Reitz=== Discarding an out-of-bounds refblock === 36523482f8aSMax Reitz 36623482f8aSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 36723482f8aSMax Reitzqcow2: Marking image as corrupt: Refblock at 0xffffff00000000 is not covered by the refcount structures; further corruption events will be suppressed 36823482f8aSMax Reitzqemu-img: Failed to discard unused refblocks: Input/output error 36923482f8aSMax Reitz--- Checking and retrying --- 370de38b500SEric Blakevirtual size: 64 MiB (67108864 bytes) 37123482f8aSMax ReitzNo errors were found on the image. 37223482f8aSMax ReitzImage resized. 373de38b500SEric Blakevirtual size: 32 MiB (33554432 bytes) 37423482f8aSMax Reitz 37523482f8aSMax Reitz=== Discarding a non-covered in-bounds refblock === 37623482f8aSMax Reitz 37723482f8aSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 37823482f8aSMax Reitzqcow2: Marking image as corrupt: Refblock at 0x1000000000 is not covered by the refcount structures; further corruption events will be suppressed 37923482f8aSMax Reitzqemu-img: Failed to discard unused refblocks: Input/output error 38023482f8aSMax Reitz--- Checking and retrying --- 381de38b500SEric Blakevirtual size: 64 MiB (67108864 bytes) 38223482f8aSMax ReitzNo errors were found on the image. 38323482f8aSMax ReitzImage resized. 384de38b500SEric Blakevirtual size: 32 MiB (33554432 bytes) 3854efb1f7cSMax Reitz 3864efb1f7cSMax Reitz=== Discarding a refblock covered by an unaligned refblock === 3874efb1f7cSMax Reitz 3884efb1f7cSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 3894efb1f7cSMax Reitzqcow2: Marking image as corrupt: Cannot get entry from refcount block cache: Offset 0x200 is unaligned; further corruption events will be suppressed 3904efb1f7cSMax Reitzqemu-img: Failed to discard unused refblocks: Input/output error 3914efb1f7cSMax Reitz--- Repairing --- 3924efb1f7cSMax ReitzRepairing refcount block 1 is outside image 3934efb1f7cSMax ReitzERROR refcount block 2 is not cluster aligned; refcount table entry corrupted 3944efb1f7cSMax Reitzqcow2: Marking image as corrupt: Refblock offset 0x200 unaligned (reftable index: 0x2); further corruption events will be suppressed 3954efb1f7cSMax ReitzCan't get refcount for cluster 1048576: Input/output error 3964efb1f7cSMax ReitzRebuilding refcount structure 3974efb1f7cSMax ReitzRepairing cluster 1 refcount=1 reference=0 3984efb1f7cSMax ReitzRepairing cluster 2 refcount=1 reference=0 3994efb1f7cSMax ReitzRepairing cluster 1048576 refcount=1 reference=0 4004efb1f7cSMax Reitzqemu-img: Check failed: No medium found 4014efb1f7cSMax ReitzLeaked cluster 1 refcount=1 reference=0 4024efb1f7cSMax ReitzLeaked cluster 2 refcount=1 reference=0 4034efb1f7cSMax ReitzLeaked cluster 1048576 refcount=1 reference=0 4044efb1f7cSMax ReitzRepairing cluster 1 refcount=1 reference=0 4054efb1f7cSMax ReitzRepairing cluster 2 refcount=1 reference=0 4064efb1f7cSMax ReitzRepairing cluster 1048576 refcount=1 reference=0 4074efb1f7cSMax ReitzThe following inconsistencies were found and repaired: 4084efb1f7cSMax Reitz 4094efb1f7cSMax Reitz 3 leaked clusters 4104efb1f7cSMax Reitz 0 corruptions 4114efb1f7cSMax Reitz 4124efb1f7cSMax ReitzDouble checking the fixed image now... 4134efb1f7cSMax ReitzNo errors were found on the image. 41450a3efb0SAlberto Garcia 41550a3efb0SAlberto Garcia=== Testing the QEMU shutdown with a corrupted image === 41650a3efb0SAlberto Garcia 41750a3efb0SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 41850a3efb0SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount table); further corruption events will be suppressed 41950a3efb0SAlberto GarciaQMP_VERSION 42050a3efb0SAlberto Garcia{"return": {}} 42150a3efb0SAlberto 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}} 42250a3efb0SAlberto Garciawrite failed: Input/output error 42350a3efb0SAlberto Garcia{"return": ""} 42492548938SDominik Csapak{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}} 425*f389309dSStefan Hajnoczi{"return": {}} 426c50abd17SMax Reitz 427c50abd17SMax Reitz=== Testing incoming inactive corrupted image === 428c50abd17SMax Reitz 429c50abd17SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 430c50abd17SMax ReitzQMP_VERSION 431c50abd17SMax Reitz{"return": {}} 432c50abd17SMax Reitzqcow2: Image is corrupt: L2 table offset 0x2a2a2a00 unaligned (L1 index: 0); further non-fatal corruption events will be suppressed 433c50abd17SMax Reitz{"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}} 434c50abd17SMax Reitz{"return": ""} 43592548938SDominik Csapak{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}} 436*f389309dSStefan Hajnoczi{"return": {}} 437c50abd17SMax Reitz 438c50abd17SMax Reitz corrupt: false 439ca0eca91SMax Reitz*** done 440