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.IMGFMT 15file format: IMGFMT 16virtual size: 64M (67108864 bytes) 17cluster_size: 65536 18Format specific information: 19 compat: 1.1 20 lazy refcounts: false 21 refcount bits: 16 22 corrupt: true 23can'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 39ERROR refcount block 0 refcount=2 40ERROR cluster 2 refcount=1 reference=2 41Rebuilding refcount structure 42Repairing cluster 1 refcount=1 reference=0 43Repairing cluster 2 refcount=2 reference=1 44The following inconsistencies were found and repaired: 45 46 0 leaked clusters 47 2 corruptions 48 49Double checking the fixed image now... 50No errors were found on the image. 51incompatible_features 0x0 52wrote 512/512 bytes at offset 0 53512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 54incompatible_features 0x0 55 56=== Testing cluster data reference into inactive L2 table === 57 58Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 59wrote 512/512 bytes at offset 0 60512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 61wrote 512/512 bytes at offset 0 62512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 63ERROR cluster 4 refcount=1 reference=2 64Leaked cluster 9 refcount=1 reference=0 65 661 errors were found on the image. 67Data may be corrupted, or further writes to the image may corrupt it. 68 691 leaked clusters were found on the image. 70This means waste of disk space, but no harm to data. 71incompatible_features 0x0 72qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 table); further corruption events will be suppressed 73write failed: Input/output error 74incompatible_features 0x2 75ERROR cluster 4 refcount=1 reference=2 76Leaked cluster 9 refcount=1 reference=0 77Repairing cluster 4 refcount=1 reference=2 78Repairing cluster 9 refcount=1 reference=0 79Repairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2 80The following inconsistencies were found and repaired: 81 82 1 leaked clusters 83 2 corruptions 84 85Double checking the fixed image now... 86No errors were found on the image. 87incompatible_features 0x0 88wrote 512/512 bytes at offset 0 89512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 90incompatible_features 0x0 91read 512/512 bytes at offset 0 92512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 93No errors were found on the image. 94read 512/512 bytes at offset 0 95512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 96 97=== Testing overlap while COW is in flight === 98 99Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 100wrote 65536/65536 bytes at offset 0 10164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 102wrote 65536/65536 bytes at offset 536870912 10364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 104discard 65536/65536 bytes at offset 0 10564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 106qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L2 table); further corruption events will be suppressed 107blkdebug: Suspended request '0' 108write failed: Input/output error 109blkdebug: Resuming request '0' 110aio_write failed: No medium found 111 112=== Testing unallocated image header === 113 114Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 115wrote 65536/65536 bytes at offset 0 11664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 117qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with qcow2_header); further corruption events will be suppressed 118write failed: Input/output error 119 120=== Testing unaligned L1 entry === 121 122Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 123wrote 65536/65536 bytes at offset 0 12464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 125qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed 126read failed: Input/output error 127Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 128wrote 65536/65536 bytes at offset 0 12964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 130qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed 131qemu-img: Error while amending options: Input/output error 132 133=== Testing unaligned L2 entry === 134 135Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 136wrote 65536/65536 bytes at offset 0 13764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 138qcow2: Marking image as corrupt: Data cluster offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed 139read failed: Input/output error 140 141=== Testing unaligned pre-allocated zero cluster === 142 143Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 144wrote 65536/65536 bytes at offset 0 14564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 146qcow2: Marking image as corrupt: Data cluster offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed 147qemu-img: Error while amending options: Input/output error 148 149=== Testing unaligned reftable entry === 150 151Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 152qcow2: Marking image as corrupt: Refblock offset 0x22a00 unaligned (reftable index: 0); further corruption events will be suppressed 153write failed: Input/output error 154 155=== Testing non-fatal corruption on freeing === 156 157Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 158wrote 65536/65536 bytes at offset 0 15964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 160qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal 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) 163 164=== Testing read-only corruption report === 165 166Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 167wrote 65536/65536 bytes at offset 0 16864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 169qcow2: Image is corrupt: Data cluster offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further non-fatal corruption events will be suppressed 170read failed: Input/output error 171read failed: Input/output error 172 173=== Testing non-fatal and then fatal corruption report === 174 175Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 176wrote 131072/131072 bytes at offset 0 177128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 178qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed 179qcow2: Marking image as corrupt: Data cluster offset 0x62a00 unaligned (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed 180discard 65536/65536 bytes at offset 0 18164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 182read failed: Input/output error 183*** done 184