1QA output created by 112 2 3=== refcount_bits limits === 4 5qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits 6Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 7qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits 8Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 refcount_bits=-1 9qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits 10Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 11qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits 12Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 13Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 14refcount bits: 1 15Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 16refcount bits: 64 17Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 18refcount bits: 16 19 20=== refcount_bits and compat=0.10 === 21 22Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 23refcount bits: 16 24qemu-img: TEST_DIR/t.IMGFMT: Different refcount widths than 16 bits require compatibility level 1.1 or above (use or greater) 25Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 26qemu-img: TEST_DIR/t.IMGFMT: Different refcount widths than 16 bits require compatibility level 1.1 or above (use or greater) 27Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 28 29=== Snapshot limit on refcount_bits=1 === 30 31Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 32refcount bits: 1 33wrote 512/512 bytes at offset 0 34512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 35qemu-img: Could not create snapshot 'foo': -22 (Invalid argument) 36Leaked cluster 6 refcount=1 reference=0 37 381 leaked clusters were found on the image. 39This means waste of disk space, but no harm to data. 40 41=== Snapshot limit on refcount_bits=2 === 42 43Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 44refcount bits: 2 45wrote 512/512 bytes at offset 0 46512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 47qemu-img: Could not create snapshot 'baz': -22 (Invalid argument) 48Leaked cluster 7 refcount=1 reference=0 49 501 leaked clusters were found on the image. 51This means waste of disk space, but no harm to data. 52 53=== Compressed clusters with refcount_bits=1 === 54 55Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 56refcount bits: 1 57wrote 65536/65536 bytes at offset 0 5864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 59wrote 65536/65536 bytes at offset 65536 6064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 61No errors were found on the image. 62 63=== MSb set in 64 bit refcount === 64 65Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 66refcount bits: 64 67wrote 512/512 bytes at offset 0 68512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 69wrote 512/512 bytes at offset 0 70512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 71 72=== Snapshot on maximum 64 bit refcount value === 73 74Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 75refcount bits: 64 76wrote 512/512 bytes at offset 0 77512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 78qemu-img: Could not create snapshot 'foo': -22 (Invalid argument) 79Leaked cluster 5 refcount=18446744073709551615 reference=1 80Leaked cluster 6 refcount=1 reference=0 81 822 leaked clusters were found on the image. 83This means waste of disk space, but no harm to data. 84*** done 85