1QA output created by 122 2Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 3wrote 67108864/67108864 bytes at offset 0 464 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 5 6=== Check allocation status regression with -B === 7 8Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 9wrote 3145728/3145728 bytes at offset 0 103 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 11Offset Length File 120 0x300000 TEST_DIR/t.IMGFMT.orig 130x300000 0x3d00000 TEST_DIR/t.IMGFMT.base 14 15=== Check that zero clusters are kept in overlay === 16 17Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 18wrote 3145728/3145728 bytes at offset 0 193 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 20read 3145728/3145728 bytes at offset 0 213 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 22read 3145728/3145728 bytes at offset 0 233 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 24wrote 3145728/3145728 bytes at offset 0 253 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 26read 3145728/3145728 bytes at offset 0 273 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 28read 3145728/3145728 bytes at offset 0 293 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 30 31=== Converting to an overlay larger than its backing file === 32 33Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=268435456 34Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=805306368 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 35Offset Length File 36 37wrote 1048576/1048576 bytes at offset 267386880 381 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 39wrote 1048576/1048576 bytes at offset 629145600 401 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 41Offset Length File 420xff00000 0x100000 TEST_DIR/t.IMGFMT.base 430x25800000 0x100000 TEST_DIR/t.IMGFMT.orig 44read 1048576/1048576 bytes at offset 267386880 451 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 46read 1048576/1048576 bytes at offset 629145600 471 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 48 49=== Concatenate multiple source images === 50 51Formatting 'TEST_DIR/t.IMGFMT.1', fmt=IMGFMT size=4194304 52Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=4194304 53Formatting 'TEST_DIR/t.IMGFMT.3', fmt=IMGFMT size=4194304 54wrote 65536/65536 bytes at offset 0 5564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 56wrote 65536/65536 bytes at offset 0 5764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 58wrote 65536/65536 bytes at offset 0 5964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 60Offset Length File 610 0x10000 TEST_DIR/t.IMGFMT 620x400000 0x10000 TEST_DIR/t.IMGFMT 630x800000 0x10000 TEST_DIR/t.IMGFMT 64read 65536/65536 bytes at offset 0 6564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 66read 65536/65536 bytes at offset 4194304 6764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 68read 65536/65536 bytes at offset 8388608 6964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 70[{ "start": 0, "length": 65536, "depth": 0, "present": true, "zero": false, "data": true}, 71{ "start": 65536, "length": 4128768, "depth": 0, "present": false, "zero": true, "data": false}, 72{ "start": 4194304, "length": 65536, "depth": 0, "present": true, "zero": false, "data": true}, 73{ "start": 4259840, "length": 4128768, "depth": 0, "present": false, "zero": true, "data": false}, 74{ "start": 8388608, "length": 65536, "depth": 0, "present": true, "zero": false, "data": true}, 75{ "start": 8454144, "length": 4128768, "depth": 0, "present": false, "zero": true, "data": false}] 76read 65536/65536 bytes at offset 0 7764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 78read 65536/65536 bytes at offset 4194304 7964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 80read 65536/65536 bytes at offset 8388608 8164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 82qemu-img: Having a backing file for the target makes no sense when concatenating multiple input images 83qemu-img: Having a backing file for the target makes no sense when concatenating multiple input images 84 85=== Compression with misaligned allocations and image sizes === 86 87Formatting 'TEST_DIR/t.IMGFMT.1', fmt=IMGFMT size=1047552 88Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=1047552 89wrote 16384/16384 bytes at offset 16384 9016 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 91wrote 133120/133120 bytes at offset 133120 92130 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 93wrote 1024/1024 bytes at offset 1046528 941 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 95wrote 1024/1024 bytes at offset 0 961 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 97[{ "start": 0, "length": 65536, "depth": 0, "present": true, "zero": false, "data": true}, 98{ "start": 65536, "length": 65536, "depth": 0, "present": false, "zero": true, "data": false}, 99{ "start": 131072, "length": 196608, "depth": 0, "present": true, "zero": false, "data": true}, 100{ "start": 327680, "length": 655360, "depth": 0, "present": false, "zero": true, "data": false}, 101{ "start": 983040, "length": 65536, "depth": 0, "present": true, "zero": false, "data": true}, 102{ "start": 1048576, "length": 1046528, "depth": 0, "present": false, "zero": true, "data": false}] 103read 16384/16384 bytes at offset 0 10416 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 105read 16384/16384 bytes at offset 16384 10616 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 107read 100352/100352 bytes at offset 32768 10898 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 109read 133120/133120 bytes at offset 133120 110130 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 111read 780288/780288 bytes at offset 266240 112762 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 113read 1024/1024 bytes at offset 1046528 1141 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 115read 1024/1024 bytes at offset 1047552 1161 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 117read 1046528/1046528 bytes at offset 1048576 1181022 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 119 120=== Full allocation with -S 0 === 121 122Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 123wrote 3145728/3145728 bytes at offset 0 1243 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 125wrote 3145728/3145728 bytes at offset 3145728 1263 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 127 128convert -S 0: 129read 3145728/3145728 bytes at offset 0 1303 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 131read 63963136/63963136 bytes at offset 3145728 13261 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 133[{ "start": 0, "length": 67108864, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}] 134 135convert -c -S 0: 136read 3145728/3145728 bytes at offset 0 1373 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 138read 63963136/63963136 bytes at offset 3145728 13961 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 140[{ "start": 0, "length": 67108864, "depth": 0, "present": true, "zero": false, "data": true}] 141Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 142wrote 33554432/33554432 bytes at offset 0 14332 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 144Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 145wrote 3145728/3145728 bytes at offset 0 1463 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 147 148convert -S 0 with source backing file: 149read 3145728/3145728 bytes at offset 0 1503 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 151read 30408704/30408704 bytes at offset 3145728 15229 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 153read 33554432/33554432 bytes at offset 33554432 15432 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 155[{ "start": 0, "length": 67108864, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}] 156 157convert -c -S 0 with source backing file: 158read 3145728/3145728 bytes at offset 0 1593 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 160read 30408704/30408704 bytes at offset 3145728 16129 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 162read 33554432/33554432 bytes at offset 33554432 16332 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 164[{ "start": 0, "length": 67108864, "depth": 0, "present": true, "zero": false, "data": true}] 165 166convert -S 0 -B ... 167read 3145728/3145728 bytes at offset 0 1683 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 169read 30408704/30408704 bytes at offset 3145728 17029 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 171read 33554432/33554432 bytes at offset 33554432 17232 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 173[{ "start": 0, "length": 67108864, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}] 174 175convert -c -S 0 -B ... 176read 3145728/3145728 bytes at offset 0 1773 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 178read 30408704/30408704 bytes at offset 3145728 17929 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 180read 33554432/33554432 bytes at offset 33554432 18132 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 182[{ "start": 0, "length": 67108864, "depth": 0, "present": true, "zero": false, "data": true}] 183 184=== Non-zero -S === 185 186Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 187wrote 65536/65536 bytes at offset 0 18864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 189wrote 1024/1024 bytes at offset 0 1901 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 191wrote 1024/1024 bytes at offset 8192 1921 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 193wrote 1024/1024 bytes at offset 17408 1941 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 195 196convert -S 4k 197[{ "start": 0, "length": 4096, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}, 198{ "start": 4096, "length": 4096, "depth": 0, "present": false, "zero": true, "data": false}, 199{ "start": 8192, "length": 4096, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}, 200{ "start": 12288, "length": 4096, "depth": 0, "present": false, "zero": true, "data": false}, 201{ "start": 16384, "length": 4096, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}, 202{ "start": 20480, "length": 67088384, "depth": 0, "present": false, "zero": true, "data": false}] 203 204convert -c -S 4k 205[{ "start": 0, "length": 1024, "depth": 0, "present": true, "zero": false, "data": true}, 206{ "start": 1024, "length": 7168, "depth": 0, "present": false, "zero": true, "data": false}, 207{ "start": 8192, "length": 1024, "depth": 0, "present": true, "zero": false, "data": true}, 208{ "start": 9216, "length": 8192, "depth": 0, "present": false, "zero": true, "data": false}, 209{ "start": 17408, "length": 1024, "depth": 0, "present": true, "zero": false, "data": true}, 210{ "start": 18432, "length": 67090432, "depth": 0, "present": false, "zero": true, "data": false}] 211 212convert -S 8k 213[{ "start": 0, "length": 24576, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}, 214{ "start": 24576, "length": 67084288, "depth": 0, "present": false, "zero": true, "data": false}] 215 216convert -c -S 8k 217[{ "start": 0, "length": 1024, "depth": 0, "present": true, "zero": false, "data": true}, 218{ "start": 1024, "length": 7168, "depth": 0, "present": false, "zero": true, "data": false}, 219{ "start": 8192, "length": 1024, "depth": 0, "present": true, "zero": false, "data": true}, 220{ "start": 9216, "length": 8192, "depth": 0, "present": false, "zero": true, "data": false}, 221{ "start": 17408, "length": 1024, "depth": 0, "present": true, "zero": false, "data": true}, 222{ "start": 18432, "length": 67090432, "depth": 0, "present": false, "zero": true, "data": false}] 223 224=== -n to a non-zero image === 225 226Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 227Formatting 'TEST_DIR/t.IMGFMT.orig', fmt=IMGFMT size=67108864 228wrote 65536/65536 bytes at offset 0 22964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 230Images are identical. 231 232=== -n to an empty image === 233 234Formatting 'TEST_DIR/t.IMGFMT.orig', fmt=IMGFMT size=67108864 235Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 236[{ "start": 0, "length": 67108864, "depth": 0, "present": true, "zero": true, "data": false}] 237Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 238[{ "start": 0, "length": 67108864, "depth": 0, "present": false, "zero": true, "data": false}] 239 240=== -n to an empty image with a backing file === 241 242Formatting 'TEST_DIR/t.IMGFMT.orig', fmt=IMGFMT size=67108864 243Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 244Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 245[{ "start": 0, "length": 67108864, "depth": 0, "present": true, "zero": true, "data": false}] 246Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 247[{ "start": 0, "length": 67108864, "depth": 0, "present": true, "zero": false, "data": true, "offset": 327680}] 248 249=== -n -B to an image without a backing file === 250 251Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 252Formatting 'TEST_DIR/t.IMGFMT.orig', fmt=IMGFMT size=67108864 253 254=== -n incompatible with -o === 255 256qemu-img: -o has no effect when skipping image creation 257*** done 258