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 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 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=== Concatenate multiple source images === 32 33Formatting 'TEST_DIR/t.IMGFMT.1', fmt=IMGFMT size=4194304 34Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=4194304 35Formatting 'TEST_DIR/t.IMGFMT.3', fmt=IMGFMT size=4194304 36wrote 65536/65536 bytes at offset 0 3764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 38wrote 65536/65536 bytes at offset 0 3964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 40wrote 65536/65536 bytes at offset 0 4164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 42Offset Length File 430 0x10000 TEST_DIR/t.IMGFMT 440x400000 0x10000 TEST_DIR/t.IMGFMT 450x800000 0x10000 TEST_DIR/t.IMGFMT 46read 65536/65536 bytes at offset 0 4764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 48read 65536/65536 bytes at offset 4194304 4964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 50read 65536/65536 bytes at offset 8388608 5164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 52[{ "start": 0, "length": 65536, "depth": 0, "zero": false, "data": true}, 53{ "start": 65536, "length": 4128768, "depth": 0, "zero": true, "data": false}, 54{ "start": 4194304, "length": 65536, "depth": 0, "zero": false, "data": true}, 55{ "start": 4259840, "length": 4128768, "depth": 0, "zero": true, "data": false}, 56{ "start": 8388608, "length": 65536, "depth": 0, "zero": false, "data": true}, 57{ "start": 8454144, "length": 4128768, "depth": 0, "zero": true, "data": false}] 58read 65536/65536 bytes at offset 0 5964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 60read 65536/65536 bytes at offset 4194304 6164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 62read 65536/65536 bytes at offset 8388608 6364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 64qemu-img: -B makes no sense when concatenating multiple input images 65qemu-img: -B makes no sense when concatenating multiple input images 66 67=== Compression with misaligned allocations and image sizes === 68 69Formatting 'TEST_DIR/t.IMGFMT.1', fmt=IMGFMT size=1047552 70Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=1047552 71wrote 16384/16384 bytes at offset 16384 7216 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 73wrote 133120/133120 bytes at offset 133120 74130 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 75wrote 1024/1024 bytes at offset 1046528 761 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 77wrote 1024/1024 bytes at offset 0 781 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 79[{ "start": 0, "length": 65536, "depth": 0, "zero": false, "data": true}, 80{ "start": 65536, "length": 65536, "depth": 0, "zero": true, "data": false}, 81{ "start": 131072, "length": 196608, "depth": 0, "zero": false, "data": true}, 82{ "start": 327680, "length": 655360, "depth": 0, "zero": true, "data": false}, 83{ "start": 983040, "length": 65536, "depth": 0, "zero": false, "data": true}, 84{ "start": 1048576, "length": 1046528, "depth": 0, "zero": true, "data": false}] 85read 16384/16384 bytes at offset 0 8616 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 87read 16384/16384 bytes at offset 16384 8816 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 89read 100352/100352 bytes at offset 32768 9098 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 91read 133120/133120 bytes at offset 133120 92130 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 93read 780288/780288 bytes at offset 266240 94762 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 95read 1024/1024 bytes at offset 1046528 961 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 97read 1024/1024 bytes at offset 1047552 981 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 99read 1046528/1046528 bytes at offset 1048576 1001022 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 101 102=== Full allocation with -S 0 === 103 104Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 105wrote 3145728/3145728 bytes at offset 0 1063 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 107wrote 3145728/3145728 bytes at offset 3145728 1083 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 109 110convert -S 0: 111read 3145728/3145728 bytes at offset 0 1123 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 113read 63963136/63963136 bytes at offset 3145728 11461 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 115[{ "start": 0, "length": 6291456, "depth": 0, "zero": false, "data": true, "offset": 327680}, 116{ "start": 6291456, "length": 60817408, "depth": 0, "zero": true, "data": false}] 117 118convert -c -S 0: 119read 3145728/3145728 bytes at offset 0 1203 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 121read 63963136/63963136 bytes at offset 3145728 12261 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 123[{ "start": 0, "length": 6291456, "depth": 0, "zero": false, "data": true}, 124{ "start": 6291456, "length": 60817408, "depth": 0, "zero": true, "data": false}] 125Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 126wrote 33554432/33554432 bytes at offset 0 12732 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 128Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 129wrote 3145728/3145728 bytes at offset 0 1303 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 131 132convert -S 0 with source backing file: 133read 3145728/3145728 bytes at offset 0 1343 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 135read 30408704/30408704 bytes at offset 3145728 13629 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 137read 33554432/33554432 bytes at offset 33554432 13832 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 139[{ "start": 0, "length": 67108864, "depth": 0, "zero": false, "data": true, "offset": 327680}] 140 141convert -c -S 0 with source backing file: 142read 3145728/3145728 bytes at offset 0 1433 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 144read 30408704/30408704 bytes at offset 3145728 14529 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 146read 33554432/33554432 bytes at offset 33554432 14732 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 148[{ "start": 0, "length": 67108864, "depth": 0, "zero": false, "data": true}] 149 150convert -S 0 -B ... 151read 3145728/3145728 bytes at offset 0 1523 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 153read 30408704/30408704 bytes at offset 3145728 15429 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 155read 33554432/33554432 bytes at offset 33554432 15632 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 157[{ "start": 0, "length": 67108864, "depth": 0, "zero": false, "data": true, "offset": 327680}] 158 159convert -c -S 0 -B ... 160read 3145728/3145728 bytes at offset 0 1613 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 162read 30408704/30408704 bytes at offset 3145728 16329 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 164read 33554432/33554432 bytes at offset 33554432 16532 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 166[{ "start": 0, "length": 67108864, "depth": 0, "zero": false, "data": true}] 167 168=== Non-zero -S === 169 170Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 171wrote 65536/65536 bytes at offset 0 17264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 173wrote 1024/1024 bytes at offset 0 1741 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 175wrote 1024/1024 bytes at offset 8192 1761 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 177wrote 1024/1024 bytes at offset 17408 1781 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 179 180convert -S 4k 181[{ "start": 0, "length": 1024, "depth": 0, "zero": false, "data": true, "offset": 8192}, 182{ "start": 1024, "length": 7168, "depth": 0, "zero": true, "data": false}, 183{ "start": 8192, "length": 1024, "depth": 0, "zero": false, "data": true, "offset": 9216}, 184{ "start": 9216, "length": 8192, "depth": 0, "zero": true, "data": false}, 185{ "start": 17408, "length": 1024, "depth": 0, "zero": false, "data": true, "offset": 10240}, 186{ "start": 18432, "length": 67090432, "depth": 0, "zero": true, "data": false}] 187 188convert -c -S 4k 189[{ "start": 0, "length": 1024, "depth": 0, "zero": false, "data": true}, 190{ "start": 1024, "length": 7168, "depth": 0, "zero": true, "data": false}, 191{ "start": 8192, "length": 1024, "depth": 0, "zero": false, "data": true}, 192{ "start": 9216, "length": 8192, "depth": 0, "zero": true, "data": false}, 193{ "start": 17408, "length": 1024, "depth": 0, "zero": false, "data": true}, 194{ "start": 18432, "length": 67090432, "depth": 0, "zero": true, "data": false}] 195 196convert -S 8k 197[{ "start": 0, "length": 9216, "depth": 0, "zero": false, "data": true, "offset": 8192}, 198{ "start": 9216, "length": 8192, "depth": 0, "zero": true, "data": false}, 199{ "start": 17408, "length": 1024, "depth": 0, "zero": false, "data": true, "offset": 17408}, 200{ "start": 18432, "length": 67090432, "depth": 0, "zero": true, "data": false}] 201 202convert -c -S 8k 203[{ "start": 0, "length": 1024, "depth": 0, "zero": false, "data": true}, 204{ "start": 1024, "length": 7168, "depth": 0, "zero": true, "data": false}, 205{ "start": 8192, "length": 1024, "depth": 0, "zero": false, "data": true}, 206{ "start": 9216, "length": 8192, "depth": 0, "zero": true, "data": false}, 207{ "start": 17408, "length": 1024, "depth": 0, "zero": false, "data": true}, 208{ "start": 18432, "length": 67090432, "depth": 0, "zero": true, "data": false}] 209*** done 210