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 0x0 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 0x2 14image: TEST_DIR/t.qcow2 15file format: qcow2 16virtual size: 64M (67108864 bytes) 17disk size: 196K 18cluster_size: 65536 19Format specific information: 20 compat: 1.1 21 lazy refcounts: false 22 corrupt: true 23qemu-io: can't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write 24read 512/512 bytes at offset 0 25512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 26 27=== Testing cluster data reference into refcount block === 28 29Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 30ERROR refcount block 0 refcount=2 31ERROR cluster 2 refcount=1 reference=2 32 332 errors were found on the image. 34Data may be corrupted, or further writes to the image may corrupt it. 35incompatible_features 0x0 36qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed 37write failed: Input/output error 38incompatible_features 0x2 39Repairing refcount block 0 refcount=2 40The following inconsistencies were found and repaired: 41 42 0 leaked clusters 43 1 corruptions 44 45Double checking the fixed image now... 46No errors were found on the image. 47incompatible_features 0x0 48wrote 512/512 bytes at offset 0 49512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 50incompatible_features 0x0 51 52=== Testing cluster data reference into inactive L2 table === 53 54Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 55wrote 512/512 bytes at offset 0 56512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 57wrote 512/512 bytes at offset 0 58512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 59ERROR cluster 4 refcount=1 reference=2 60Leaked cluster 9 refcount=1 reference=0 61 621 errors were found on the image. 63Data may be corrupted, or further writes to the image may corrupt it. 64 651 leaked clusters were found on the image. 66This means waste of disk space, but no harm to data. 67incompatible_features 0x0 68qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 table); further corruption events will be suppressed 69write failed: Input/output error 70incompatible_features 0x2 71Repairing cluster 4 refcount=1 reference=2 72Repairing cluster 9 refcount=1 reference=0 73Repairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2 74The following inconsistencies were found and repaired: 75 76 1 leaked clusters 77 2 corruptions 78 79Double checking the fixed image now... 80No errors were found on the image. 81incompatible_features 0x0 82wrote 512/512 bytes at offset 0 83512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 84incompatible_features 0x0 85read 512/512 bytes at offset 0 86512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 87No errors were found on the image. 88read 512/512 bytes at offset 0 89512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 90 91=== Testing overlap while COW is in flight === 92 93Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 94wrote 65536/65536 bytes at offset 0 9564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 96wrote 65536/65536 bytes at offset 536870912 9764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 98discard 65536/65536 bytes at offset 0 9964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 100qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L2 table); further corruption events will be suppressed 101blkdebug: Suspended request '0' 102write failed: Input/output error 103blkdebug: Resuming request '0' 104aio_write failed: No medium found 105 106=== Testing unallocated image header === 107 108Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 109wrote 65536/65536 bytes at offset 0 11064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 111qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with qcow2_header); further corruption events will be suppressed 112write failed: Input/output error 113 114=== Testing unaligned L1 entry === 115 116Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 117wrote 65536/65536 bytes at offset 0 11864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 119qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed 120read failed: Input/output error 121 122=== Testing unaligned L2 entry === 123 124Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 125wrote 65536/65536 bytes at offset 0 12664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 127qcow2: Marking image as corrupt: Data cluster offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed 128read failed: Input/output error 129 130=== Testing unaligned reftable entry === 131 132Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 133qcow2: Marking image as corrupt: Refblock offset 0x22a00 unaligned (reftable index: 0); further corruption events will be suppressed 134write failed: Input/output error 135 136=== Testing non-fatal corruption on freeing === 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: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed 142discard 65536/65536 bytes at offset 0 14364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 144 145=== Testing read-only corruption report === 146 147Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 148wrote 65536/65536 bytes at offset 0 14964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 150qcow2: Image is corrupt: Data cluster offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further non-fatal corruption events will be suppressed 151read failed: Input/output error 152read failed: Input/output error 153 154=== Testing non-fatal and then fatal corruption report === 155 156Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 157wrote 131072/131072 bytes at offset 0 158128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 159qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed 160qcow2: Marking image as corrupt: Data cluster offset 0x62a00 unaligned (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed 161discard 65536/65536 bytes at offset 0 16264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 163read failed: Input/output error 164*** done 165