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 1856bf45d59SAlberto Garcia=== Testing empty refcount table with valid L1 and L2 tables === 1866bf45d59SAlberto Garcia 1876bf45d59SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 1886bf45d59SAlberto Garciawrote 65536/65536 bytes at offset 0 1896bf45d59SAlberto Garcia64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1906bf45d59SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid allocation of refcount block at offset 0; further corruption events will be suppressed 1916bf45d59SAlberto Garciawrite failed: Input/output error 192*98839750SAlberto Garcia 193*98839750SAlberto Garcia=== Testing empty refcount block === 194*98839750SAlberto Garcia 195*98839750SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 196*98839750SAlberto Garciaqcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further corruption events will be suppressed 197*98839750SAlberto Garciawrite failed: Input/output error 198ca0eca91SMax Reitz*** done 199