124342f2cSKevin WolfQA output created by 080 224342f2cSKevin Wolf 324342f2cSKevin Wolf== Huge header size == 424342f2cSKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 536b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: qcow2 header exceeds cluster size 636b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: qcow2 header exceeds cluster size 7a1b3955cSKevin Wolf 8a1b3955cSKevin Wolf== Huge unknown header extension == 9a1b3955cSKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 1036b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Invalid backing file offset 1136b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Header extension too large 1236b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Header extension too large 135dab2fadSKevin Wolf 145dab2fadSKevin Wolf== Huge refcount table size == 155dab2fadSKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 1636b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Reference count table too large 1736b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Reference count table too large 188c7de283SKevin Wolf 198c7de283SKevin Wolf== Misaligned refcount table == 208c7de283SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 2136b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Reference count table offset invalid 228c7de283SKevin Wolf 238c7de283SKevin Wolf== Huge refcount offset == 248c7de283SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 2536b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Reference count table offset invalid 26ce48f2f4SKevin Wolf 27ce48f2f4SKevin Wolf== Invalid snapshot table == 28ce48f2f4SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 2936b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Snapshot table too large 3036b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Snapshot table too large 3136b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Snapshot table offset invalid 3236b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Snapshot table offset invalid 33ce48f2f4SKevin Wolf 34ce48f2f4SKevin Wolf== Hitting snapshot table size limit == 35ce48f2f4SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 36*b0a6620aSMichael Tokarevqemu-img: Could not create snapshot 'test': File too large 37ce48f2f4SKevin Wolfread 512/512 bytes at offset 0 38ce48f2f4SKevin Wolf512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 392d51c32cSKevin Wolf 402d51c32cSKevin Wolf== Invalid L1 table == 412d51c32cSKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 4236b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Active L1 table too large 4336b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Active L1 table too large 4436b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Active L1 table offset invalid 4536b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Active L1 table offset invalid 466d33e8e7SKevin Wolf 4711b128f4SKevin Wolf== Invalid L1 table (with internal snapshot in the image) == 4811b128f4SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 4911b128f4SKevin Wolfqemu-img: Could not open 'TEST_DIR/t.IMGFMT': L1 table is too small 5011b128f4SKevin Wolf 516d33e8e7SKevin Wolf== Invalid backing file size == 526d33e8e7SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 5336b9986bSThomas Huthqemu-io: can't open device TEST_DIR/t.qcow2: Backing file name too long 54b106ad91SKevin Wolf 55b106ad91SKevin Wolf== Invalid L2 entry (huge physical offset) == 56b106ad91SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 57b106ad91SKevin Wolfwrote 512/512 bytes at offset 0 58b106ad91SKevin Wolf512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 59*b0a6620aSMichael Tokarevqemu-img: Could not create snapshot 'test': File too large 60*b0a6620aSMichael Tokarevqemu-img: Could not create snapshot 'test': Resource temporarily unavailable 616a83f8b5SKevin Wolf 62314e8d39SAlberto Garcia== Invalid snapshot L1 table offset == 63314e8d39SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 64314e8d39SAlberto Garciawrote 512/512 bytes at offset 0 65314e8d39SAlberto Garcia512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 66314e8d39SAlberto Garciaqemu-img: Failed to load snapshot: Snapshot L1 table offset invalid 67c9a442e4SAlberto Garciaqemu-img: Snapshot L1 table offset invalid 68d1402b50SMax Reitzqemu-img: Failed to turn zero into data clusters: Invalid argument 6936b9986bSThomas Huthqemu-io: Failed to flush the refcount block cache: Invalid argument 70c7a9d81dSAlberto Garciawrite failed: Invalid argument 71a8475d75SAlberto Garciaqemu-img: Snapshot L1 table offset invalid 72a8475d75SAlberto Garciaqemu-img: Could not apply snapshot 'test': Failed to load snapshot: Invalid argument 73db5794f1SAlberto Garciaqemu-img: Could not delete snapshot 'test': Snapshot L1 table offset invalid 740c2ada81SAlberto GarciaERROR snapshot 1 (test) l1_offset=0x400200: L1 table is not cluster aligned; snapshot table entry corrupted 750c2ada81SAlberto GarciaLeaked cluster 4 refcount=2 reference=1 760c2ada81SAlberto GarciaLeaked cluster 5 refcount=2 reference=1 770c2ada81SAlberto GarciaLeaked cluster 6 refcount=1 reference=0 780c2ada81SAlberto Garcia 790c2ada81SAlberto Garcia1 errors were found on the image. 800c2ada81SAlberto GarciaData may be corrupted, or further writes to the image may corrupt it. 810c2ada81SAlberto Garcia 820c2ada81SAlberto Garcia3 leaked clusters were found on the image. 830c2ada81SAlberto GarciaThis means waste of disk space, but no harm to data. 84314e8d39SAlberto Garcia 85314e8d39SAlberto Garcia== Invalid snapshot L1 table size == 866a83f8b5SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 876a83f8b5SKevin Wolfwrote 512/512 bytes at offset 0 886a83f8b5SKevin Wolf512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 896a83f8b5SKevin Wolfqemu-img: Failed to load snapshot: Snapshot L1 table too large 90c9a442e4SAlberto Garciaqemu-img: Snapshot L1 table too large 91d1402b50SMax Reitzqemu-img: Failed to turn zero into data clusters: File too large 9236b9986bSThomas Huthqemu-io: Failed to flush the refcount block cache: File too large 93c7a9d81dSAlberto Garciawrite failed: File too large 94a8475d75SAlberto Garciaqemu-img: Snapshot L1 table too large 95a8475d75SAlberto Garciaqemu-img: Could not apply snapshot 'test': Failed to load snapshot: File too large 96db5794f1SAlberto Garciaqemu-img: Could not delete snapshot 'test': Snapshot L1 table too large 970c2ada81SAlberto GarciaERROR snapshot 1 (test) l1_size=0x10000000: L1 table is too large; snapshot table entry corrupted 980c2ada81SAlberto GarciaLeaked cluster 4 refcount=2 reference=1 990c2ada81SAlberto GarciaLeaked cluster 5 refcount=2 reference=1 1000c2ada81SAlberto GarciaLeaked cluster 6 refcount=1 reference=0 1010c2ada81SAlberto Garcia 1020c2ada81SAlberto Garcia1 errors were found on the image. 1030c2ada81SAlberto GarciaData may be corrupted, or further writes to the image may corrupt it. 1040c2ada81SAlberto Garcia 1050c2ada81SAlberto Garcia3 leaked clusters were found on the image. 1060c2ada81SAlberto GarciaThis means waste of disk space, but no harm to data. 10724342f2cSKevin Wolf*** done 108