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 corrupt: true 22qemu-io: can't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write 23read 512/512 bytes at offset 0 24512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 25 26=== Testing cluster data reference into refcount block === 27 28Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 29ERROR refcount block 0 refcount=2 30ERROR cluster 2 refcount=1 reference=2 31 322 errors were found on the image. 33Data may be corrupted, or further writes to the image may corrupt it. 34incompatible_features 0x0 35qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed 36write failed: Input/output error 37incompatible_features 0x2 38ERROR refcount block 0 refcount=2 39ERROR cluster 2 refcount=1 reference=2 40Rebuilding refcount structure 41Repairing cluster 1 refcount=1 reference=0 42Repairing cluster 2 refcount=2 reference=1 43The following inconsistencies were found and repaired: 44 45 0 leaked clusters 46 2 corruptions 47 48Double checking the fixed image now... 49No errors were found on the image. 50incompatible_features 0x0 51wrote 512/512 bytes at offset 0 52512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 53incompatible_features 0x0 54 55=== Testing cluster data reference into inactive L2 table === 56 57Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 58wrote 512/512 bytes at offset 0 59512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 60wrote 512/512 bytes at offset 0 61512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 62ERROR cluster 4 refcount=1 reference=2 63Leaked cluster 9 refcount=1 reference=0 64 651 errors were found on the image. 66Data may be corrupted, or further writes to the image may corrupt it. 67 681 leaked clusters were found on the image. 69This means waste of disk space, but no harm to data. 70incompatible_features 0x0 71qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 table); further corruption events will be suppressed 72write failed: Input/output error 73incompatible_features 0x2 74ERROR cluster 4 refcount=1 reference=2 75Leaked cluster 9 refcount=1 reference=0 76Repairing cluster 4 refcount=1 reference=2 77Repairing cluster 9 refcount=1 reference=0 78Repairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2 79The following inconsistencies were found and repaired: 80 81 1 leaked clusters 82 2 corruptions 83 84Double checking the fixed image now... 85No errors were found on the image. 86incompatible_features 0x0 87wrote 512/512 bytes at offset 0 88512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 89incompatible_features 0x0 90read 512/512 bytes at offset 0 91512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 92No errors were found on the image. 93read 512/512 bytes at offset 0 94512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 95 96=== Testing overlap while COW is in flight === 97 98Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 99wrote 65536/65536 bytes at offset 0 10064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 101wrote 65536/65536 bytes at offset 536870912 10264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 103discard 65536/65536 bytes at offset 0 10464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 105qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L2 table); further corruption events will be suppressed 106blkdebug: Suspended request '0' 107write failed: Input/output error 108blkdebug: Resuming request '0' 109aio_write failed: No medium found 110 111=== Testing unallocated image header === 112 113Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 114wrote 65536/65536 bytes at offset 0 11564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 116qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with qcow2_header); further corruption events will be suppressed 117write failed: Input/output error 118 119=== Testing unaligned L1 entry === 120 121Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 122wrote 65536/65536 bytes at offset 0 12364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 124qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed 125read failed: Input/output error 126 127=== Testing unaligned L2 entry === 128 129Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 130wrote 65536/65536 bytes at offset 0 13164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 132qcow2: Marking image as corrupt: Data cluster offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed 133read failed: Input/output error 134 135=== Testing unaligned reftable entry === 136 137Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 138qcow2: Marking image as corrupt: Refblock offset 0x22a00 unaligned (reftable index: 0); further corruption events will be suppressed 139write failed: Input/output error 140 141=== Testing non-fatal corruption on freeing === 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: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed 147discard 65536/65536 bytes at offset 0 14864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 149 150=== Testing read-only corruption report === 151 152Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 153wrote 65536/65536 bytes at offset 0 15464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 155qcow2: Image is corrupt: Data cluster offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further non-fatal corruption events will be suppressed 156read failed: Input/output error 157read failed: Input/output error 158 159=== Testing non-fatal and then fatal corruption report === 160 161Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 162wrote 131072/131072 bytes at offset 0 163128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 164qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed 165qcow2: Marking image as corrupt: Data cluster offset 0x62a00 unaligned (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed 166discard 65536/65536 bytes at offset 0 16764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 168read failed: Input/output error 169*** done 170