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 14qemu-io: can't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write 15read 512/512 bytes at offset 0 16512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 17 18=== Testing cluster data reference into refcount block === 19 20Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 21ERROR refcount block 0 refcount=2 22ERROR cluster 2 refcount=1 reference=2 23 242 errors were found on the image. 25Data may be corrupted, or further writes to the image may corrupt it. 26incompatible_features 0x0 27qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed 28write failed: Input/output error 29incompatible_features 0x2 30Repairing refcount block 0 refcount=2 31The following inconsistencies were found and repaired: 32 33 0 leaked clusters 34 1 corruptions 35 36Double checking the fixed image now... 37No errors were found on the image. 38incompatible_features 0x0 39wrote 512/512 bytes at offset 0 40512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 41incompatible_features 0x0 42 43=== Testing cluster data reference into inactive L2 table === 44 45Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 46wrote 512/512 bytes at offset 0 47512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 48wrote 512/512 bytes at offset 0 49512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 50ERROR cluster 4 refcount=1 reference=2 51Leaked cluster 9 refcount=1 reference=0 52 531 errors were found on the image. 54Data may be corrupted, or further writes to the image may corrupt it. 55 561 leaked clusters were found on the image. 57This means waste of disk space, but no harm to data. 58incompatible_features 0x0 59qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 table); further corruption events will be suppressed 60write failed: Input/output error 61incompatible_features 0x2 62Repairing cluster 4 refcount=1 reference=2 63Repairing cluster 9 refcount=1 reference=0 64Repairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2 65The following inconsistencies were found and repaired: 66 67 1 leaked clusters 68 2 corruptions 69 70Double checking the fixed image now... 71No errors were found on the image. 72incompatible_features 0x0 73wrote 512/512 bytes at offset 0 74512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 75incompatible_features 0x0 76read 512/512 bytes at offset 0 77512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 78No errors were found on the image. 79read 512/512 bytes at offset 0 80512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 81 82=== Testing overlap while COW is in flight === 83 84Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 85wrote 65536/65536 bytes at offset 0 8664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 87wrote 65536/65536 bytes at offset 536870912 8864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 89discard 65536/65536 bytes at offset 0 9064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 91qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L2 table); further corruption events will be suppressed 92blkdebug: Suspended request '0' 93write failed: Input/output error 94blkdebug: Resuming request '0' 95aio_write failed: No medium found 96 97=== Testing unallocated image header === 98 99Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 100wrote 65536/65536 bytes at offset 0 10164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 102qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with qcow2_header); further corruption events will be suppressed 103write failed: Input/output error 104 105=== Testing unaligned L1 entry === 106 107Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 108wrote 65536/65536 bytes at offset 0 10964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 110qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruption events will be suppressed 111read failed: Input/output error 112 113=== Testing unaligned L2 entry === 114 115Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 116wrote 65536/65536 bytes at offset 0 11764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 118qcow2: Marking image as corrupt: Data cluster offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed 119read failed: Input/output error 120 121=== Testing unaligned reftable entry === 122 123Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 124qcow2: Marking image as corrupt: Refblock offset 0x22a00 unaligned (reftable index: 0); further corruption events will be suppressed 125write failed: Input/output error 126 127=== Testing non-fatal corruption on freeing === 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: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed 133discard 65536/65536 bytes at offset 0 13464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 135 136=== Testing read-only corruption report === 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: Data cluster offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0); further non-fatal corruption events will be suppressed 142read failed: Input/output error 143read failed: Input/output error 144 145=== Testing non-fatal and then fatal corruption report === 146 147Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 148wrote 131072/131072 bytes at offset 0 149128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 150qcow2: Image is corrupt: Cannot free unaligned cluster 0x52a00; further non-fatal corruption events will be suppressed 151qcow2: Marking image as corrupt: Data cluster offset 0x62a00 unaligned (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed 152discard 65536/65536 bytes at offset 0 15364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 154read failed: Input/output error 155*** done 156