1QA output created by 178 2== Input validation == 3 4Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 5qemu-img: Either --size N or one filename must be specified. 6qemu-img: --size N cannot be used together with a filename. 7qemu-img: At most one filename argument is allowed. 8qemu-img: --object, --image-opts, -f, and -l require a filename argument. 9qemu-img: --object, --image-opts, -f, and -l require a filename argument. 10qemu-img: --object, --image-opts, -f, and -l require a filename argument. 11qemu-img: --object, --image-opts, -f, and -l require a filename argument. 12qemu-img: Invalid option list: , 13qemu-img: Invalid parameter 'snapshot.foo' 14qemu-img: Failed in parsing snapshot param 'snapshot.foo' 15qemu-img: --output must be used with human or json as argument. 16qemu-img: Image size must be less than 8 EiB! 17qemu-img: Unknown file format 'foo' 18 19== Size calculation for a new file (human) == 20 21required size: 196608 22fully allocated size: 196608 23required size: 589824 24fully allocated size: 2148073472 25required size: 10747904 26fully allocated size: 68730224640 27required size: 42205184 28fully allocated size: 274920112128 29required size: 168034304 30fully allocated size: 1099679662080 31required size: 343650009088 32fully allocated size: 2252143463694336 33qemu-img: The image size is too large (try using a larger cluster size) 34 35== Empty qcow2 input image (human) == 36 37Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=0 38required size: 196608 39fully allocated size: 196608 40 41converted image file size in bytes: 196608 42 43== qcow2 input image with data (human) == 44 45Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 46required size: 393216 47fully allocated size: 1074135040 48wrote 512/512 bytes at offset 512 49512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 50wrote 65536/65536 bytes at offset 65536 5164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 52wrote 64512/64512 bytes at offset 134217728 5363 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 54required size: 589824 55fully allocated size: 1074135040 56 57converted image file size in bytes: 524288 58 59== qcow2 input image with internal snapshot (human) == 60 61required size: 524288 62fully allocated size: 1074135040 63 64converted image file size in bytes: 458752 65 66== qcow2 input image and a backing file (human) == 67 68required size: 1074135040 69fully allocated size: 1074135040 70 71== qcow2 input image and preallocation (human) == 72 73required size: 1074135040 74fully allocated size: 1074135040 75 76converted image file size in bytes: 1074135040 77 78== Fully-allocated qcow2 input image (human) == 79 80Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=8388608 81wrote 8388608/8388608 bytes at offset 0 828 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 83required size: 8716288 84fully allocated size: 8716288 85 86converted image file size in bytes: 8716288 87 88== Empty raw input image (human) == 89 90Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=0 91required size: 196608 92fully allocated size: 196608 93 94converted image file size in bytes: 196608 95 96== raw input image with data (human) == 97 98Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=1073741824 99required size: 393216 100fully allocated size: 1074135040 101wrote 512/512 bytes at offset 512 102512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 103wrote 65536/65536 bytes at offset 65536 10464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 105wrote 64512/64512 bytes at offset 134217728 10663 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 107required size: 589824 108fully allocated size: 1074135040 109 110converted image file size in bytes: 524288 111 112== raw input image and a backing file (human) == 113 114required size: 1074135040 115fully allocated size: 1074135040 116 117== raw input image and preallocation (human) == 118 119required size: 1074135040 120fully allocated size: 1074135040 121 122converted image file size in bytes: 1074135040 123 124== Fully-allocated raw input image (human) == 125 126Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=8388608 127wrote 8388608/8388608 bytes at offset 0 1288 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 129required size: 8716288 130fully allocated size: 8716288 131 132converted image file size in bytes: 8716288 133 134== Size calculation for a new file (json) == 135 136{ 137 "required": 196608, 138 "fully-allocated": 196608 139} 140{ 141 "required": 589824, 142 "fully-allocated": 2148073472 143} 144{ 145 "required": 10747904, 146 "fully-allocated": 68730224640 147} 148{ 149 "required": 42205184, 150 "fully-allocated": 274920112128 151} 152{ 153 "required": 168034304, 154 "fully-allocated": 1099679662080 155} 156{ 157 "required": 343650009088, 158 "fully-allocated": 2252143463694336 159} 160qemu-img: The image size is too large (try using a larger cluster size) 161 162== Empty qcow2 input image (json) == 163 164Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=0 165{ 166 "required": 196608, 167 "fully-allocated": 196608 168} 169 170converted image file size in bytes: 196608 171 172== qcow2 input image with data (json) == 173 174Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 175{ 176 "required": 393216, 177 "fully-allocated": 1074135040 178} 179wrote 512/512 bytes at offset 512 180512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 181wrote 65536/65536 bytes at offset 65536 18264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 183wrote 64512/64512 bytes at offset 134217728 18463 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 185{ 186 "required": 589824, 187 "fully-allocated": 1074135040 188} 189 190converted image file size in bytes: 524288 191 192== qcow2 input image with internal snapshot (json) == 193 194{ 195 "required": 524288, 196 "fully-allocated": 1074135040 197} 198 199converted image file size in bytes: 458752 200 201== qcow2 input image and a backing file (json) == 202 203{ 204 "required": 1074135040, 205 "fully-allocated": 1074135040 206} 207 208== qcow2 input image and preallocation (json) == 209 210{ 211 "required": 1074135040, 212 "fully-allocated": 1074135040 213} 214 215converted image file size in bytes: 1074135040 216 217== Fully-allocated qcow2 input image (json) == 218 219Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=8388608 220wrote 8388608/8388608 bytes at offset 0 2218 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 222{ 223 "required": 8716288, 224 "fully-allocated": 8716288 225} 226 227converted image file size in bytes: 8716288 228 229== Empty raw input image (json) == 230 231Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=0 232{ 233 "required": 196608, 234 "fully-allocated": 196608 235} 236 237converted image file size in bytes: 196608 238 239== raw input image with data (json) == 240 241Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=1073741824 242{ 243 "required": 393216, 244 "fully-allocated": 1074135040 245} 246wrote 512/512 bytes at offset 512 247512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 248wrote 65536/65536 bytes at offset 65536 24964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 250wrote 64512/64512 bytes at offset 134217728 25163 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 252{ 253 "required": 589824, 254 "fully-allocated": 1074135040 255} 256 257converted image file size in bytes: 524288 258 259== raw input image and a backing file (json) == 260 261{ 262 "required": 1074135040, 263 "fully-allocated": 1074135040 264} 265 266== raw input image and preallocation (json) == 267 268{ 269 "required": 1074135040, 270 "fully-allocated": 1074135040 271} 272 273converted image file size in bytes: 1074135040 274 275== Fully-allocated raw input image (json) == 276 277Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=8388608 278wrote 8388608/8388608 bytes at offset 0 2798 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 280{ 281 "required": 8716288, 282 "fully-allocated": 8716288 283} 284 285converted image file size in bytes: 8716288 286*** done 287