1QA output created by 061 2 3=== Testing version downgrade with zero expansion === 4 5Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 6wrote 131072/131072 bytes at offset 0 7128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 8magic 0x514649fb 9version 3 10backing_file_offset 0x0 11backing_file_size 0x0 12cluster_bits 16 13size 67108864 14crypt_method 0 15l1_size 1 16l1_table_offset 0x30000 17refcount_table_offset 0x10000 18refcount_table_clusters 1 19nb_snapshots 0 20snapshot_offset 0x0 21incompatible_features 0x0 22compatible_features 0x1 23autoclear_features 0x0 24refcount_order 4 25header_length 104 26 27magic 0x514649fb 28version 2 29backing_file_offset 0x0 30backing_file_size 0x0 31cluster_bits 16 32size 67108864 33crypt_method 0 34l1_size 1 35l1_table_offset 0x30000 36refcount_table_offset 0x10000 37refcount_table_clusters 1 38nb_snapshots 0 39snapshot_offset 0x0 40incompatible_features 0x0 41compatible_features 0x0 42autoclear_features 0x0 43refcount_order 4 44header_length 72 45 46Header extension: 47magic 0x6803f857 48length 144 49data <binary> 50 51read 131072/131072 bytes at offset 0 52128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 53No errors were found on the image. 54 55=== Testing dirty version downgrade === 56 57Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 58wrote 131072/131072 bytes at offset 0 59128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 60./common.config: Killed ( exec "$QEMU_IO_PROG" $QEMU_IO_OPTIONS "$@" ) 61magic 0x514649fb 62version 3 63backing_file_offset 0x0 64backing_file_size 0x0 65cluster_bits 16 66size 67108864 67crypt_method 0 68l1_size 1 69l1_table_offset 0x30000 70refcount_table_offset 0x10000 71refcount_table_clusters 1 72nb_snapshots 0 73snapshot_offset 0x0 74incompatible_features 0x1 75compatible_features 0x1 76autoclear_features 0x0 77refcount_order 4 78header_length 104 79 80ERROR cluster 5 refcount=0 reference=1 81ERROR cluster 6 refcount=0 reference=1 82Rebuilding refcount structure 83Repairing cluster 1 refcount=1 reference=0 84Repairing cluster 2 refcount=1 reference=0 85magic 0x514649fb 86version 2 87backing_file_offset 0x0 88backing_file_size 0x0 89cluster_bits 16 90size 67108864 91crypt_method 0 92l1_size 1 93l1_table_offset 0x30000 94refcount_table_offset 0x80000 95refcount_table_clusters 1 96nb_snapshots 0 97snapshot_offset 0x0 98incompatible_features 0x0 99compatible_features 0x0 100autoclear_features 0x0 101refcount_order 4 102header_length 72 103 104Header extension: 105magic 0x6803f857 106length 144 107data <binary> 108 109read 131072/131072 bytes at offset 0 110128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 111No errors were found on the image. 112 113=== Testing version downgrade with unknown compat/autoclear flags === 114 115Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 116magic 0x514649fb 117version 3 118backing_file_offset 0x0 119backing_file_size 0x0 120cluster_bits 16 121size 67108864 122crypt_method 0 123l1_size 1 124l1_table_offset 0x30000 125refcount_table_offset 0x10000 126refcount_table_clusters 1 127nb_snapshots 0 128snapshot_offset 0x0 129incompatible_features 0x0 130compatible_features 0x40000000000 131autoclear_features 0x40000000000 132refcount_order 4 133header_length 104 134 135magic 0x514649fb 136version 2 137backing_file_offset 0x0 138backing_file_size 0x0 139cluster_bits 16 140size 67108864 141crypt_method 0 142l1_size 1 143l1_table_offset 0x30000 144refcount_table_offset 0x10000 145refcount_table_clusters 1 146nb_snapshots 0 147snapshot_offset 0x0 148incompatible_features 0x0 149compatible_features 0x0 150autoclear_features 0x0 151refcount_order 4 152header_length 72 153 154Header extension: 155magic 0x6803f857 156length 144 157data <binary> 158 159No errors were found on the image. 160 161=== Testing version upgrade and resize === 162 163Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 164wrote 65536/65536 bytes at offset 44040192 16564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 166magic 0x514649fb 167version 2 168backing_file_offset 0x0 169backing_file_size 0x0 170cluster_bits 16 171size 67108864 172crypt_method 0 173l1_size 1 174l1_table_offset 0x30000 175refcount_table_offset 0x10000 176refcount_table_clusters 1 177nb_snapshots 0 178snapshot_offset 0x0 179incompatible_features 0x0 180compatible_features 0x0 181autoclear_features 0x0 182refcount_order 4 183header_length 72 184 185magic 0x514649fb 186version 3 187backing_file_offset 0x0 188backing_file_size 0x0 189cluster_bits 16 190size 134217728 191crypt_method 0 192l1_size 1 193l1_table_offset 0x30000 194refcount_table_offset 0x10000 195refcount_table_clusters 1 196nb_snapshots 0 197snapshot_offset 0x0 198incompatible_features 0x0 199compatible_features 0x1 200autoclear_features 0x0 201refcount_order 4 202header_length 104 203 204Header extension: 205magic 0x6803f857 206length 144 207data <binary> 208 209read 65536/65536 bytes at offset 44040192 21064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 211No errors were found on the image. 212 213=== Testing dirty lazy_refcounts=off === 214 215Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 216wrote 131072/131072 bytes at offset 0 217128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 218./common.config: Killed ( exec "$QEMU_IO_PROG" $QEMU_IO_OPTIONS "$@" ) 219magic 0x514649fb 220version 3 221backing_file_offset 0x0 222backing_file_size 0x0 223cluster_bits 16 224size 67108864 225crypt_method 0 226l1_size 1 227l1_table_offset 0x30000 228refcount_table_offset 0x10000 229refcount_table_clusters 1 230nb_snapshots 0 231snapshot_offset 0x0 232incompatible_features 0x1 233compatible_features 0x1 234autoclear_features 0x0 235refcount_order 4 236header_length 104 237 238ERROR cluster 5 refcount=0 reference=1 239ERROR cluster 6 refcount=0 reference=1 240Rebuilding refcount structure 241Repairing cluster 1 refcount=1 reference=0 242Repairing cluster 2 refcount=1 reference=0 243magic 0x514649fb 244version 3 245backing_file_offset 0x0 246backing_file_size 0x0 247cluster_bits 16 248size 67108864 249crypt_method 0 250l1_size 1 251l1_table_offset 0x30000 252refcount_table_offset 0x80000 253refcount_table_clusters 1 254nb_snapshots 0 255snapshot_offset 0x0 256incompatible_features 0x0 257compatible_features 0x0 258autoclear_features 0x0 259refcount_order 4 260header_length 104 261 262Header extension: 263magic 0x6803f857 264length 144 265data <binary> 266 267read 131072/131072 bytes at offset 0 268128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 269No errors were found on the image. 270 271=== Testing backing file === 272 273Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 274Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 275wrote 131072/131072 bytes at offset 0 276128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 277read 131072/131072 bytes at offset 0 278128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 279read 131072/131072 bytes at offset 0 280128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 281No errors were found on the image. 282 283=== Testing invalid configurations === 284 285Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 286Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 287qemu-img: Error while amending options: Invalid argument 288Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 289qemu-img: Error while amending options: Invalid argument 290Unknown compatibility level 0.42. 291qemu-img: Error while amending options: Invalid argument 292qemu-img: Invalid parameter 'foo' 293Changing the cluster size is not supported. 294qemu-img: Error while amending options: Operation not supported 295Changing the encryption flag is not supported. 296qemu-img: Error while amending options: Operation not supported 297Cannot change preallocation mode. 298qemu-img: Error while amending options: Operation not supported 299 300=== Testing correct handling of unset value === 301 302Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 303Should work: 304Should not work: 305Changing the cluster size is not supported. 306qemu-img: Error while amending options: Operation not supported 307 308=== Testing zero expansion on inactive clusters === 309 310Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 311wrote 131072/131072 bytes at offset 0 312128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 313wrote 131072/131072 bytes at offset 0 314128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 315No errors were found on the image. 316read 131072/131072 bytes at offset 0 317128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 318No errors were found on the image. 319read 131072/131072 bytes at offset 0 320128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 321 322=== Testing zero expansion on shared L2 table === 323 324Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 325wrote 131072/131072 bytes at offset 0 326128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 327No errors were found on the image. 328read 131072/131072 bytes at offset 0 329128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 330No errors were found on the image. 331read 131072/131072 bytes at offset 0 332128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 333 334=== Testing zero expansion on backed image === 335 336Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 337wrote 131072/131072 bytes at offset 0 338128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 339Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 340read 131072/131072 bytes at offset 0 341128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 342wrote 65536/65536 bytes at offset 0 34364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 344No errors were found on the image. 345read 65536/65536 bytes at offset 0 34664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 347read 65536/65536 bytes at offset 65536 34864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 349 350=== Testing zero expansion on backed inactive clusters === 351 352Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 353wrote 131072/131072 bytes at offset 0 354128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 355Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 356wrote 65536/65536 bytes at offset 0 35764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 358wrote 131072/131072 bytes at offset 0 359128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 360No errors were found on the image. 361read 131072/131072 bytes at offset 0 362128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 363No errors were found on the image. 364read 65536/65536 bytes at offset 0 36564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 366read 65536/65536 bytes at offset 65536 36764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 368 369=== Testing zero expansion on backed image with shared L2 table === 370 371Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 372wrote 131072/131072 bytes at offset 0 373128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 374Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 375wrote 131072/131072 bytes at offset 0 376128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 377No errors were found on the image. 378read 131072/131072 bytes at offset 0 379128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 380No errors were found on the image. 381read 131072/131072 bytes at offset 0 382128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 383 384=== Testing preallocated zero expansion on full image === 385 386Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 387wrote 67108864/67108864 bytes at offset 0 38864 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 389wrote 67108864/67108864 bytes at offset 0 39064 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 391No errors were found on the image. 392read 67108864/67108864 bytes at offset 0 39364 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 394 395=== Testing progress report without snapshot === 396 397Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 398Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base 399wrote 65536/65536 bytes at offset 0 40064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 401wrote 65536/65536 bytes at offset 1073741824 40264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 403wrote 65536/65536 bytes at offset 2147483648 40464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 405wrote 65536/65536 bytes at offset 3221225472 40664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 407 (0.00/100%) 408 (12.50/100%) 409 (25.00/100%) 410 (37.50/100%) 411 (50.00/100%) 412 (62.50/100%) 413 (75.00/100%) 414 (87.50/100%) 415 (100.00/100%) 416 (100.00/100%) 417No errors were found on the image. 418 419=== Testing progress report with snapshot === 420 421Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 422Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base 423wrote 65536/65536 bytes at offset 0 42464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 425wrote 65536/65536 bytes at offset 1073741824 42664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 427wrote 65536/65536 bytes at offset 2147483648 42864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 429wrote 65536/65536 bytes at offset 3221225472 43064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 431 (0.00/100%) 432 (6.25/100%) 433 (12.50/100%) 434 (18.75/100%) 435 (25.00/100%) 436 (31.25/100%) 437 (37.50/100%) 438 (43.75/100%) 439 (50.00/100%) 440 (56.25/100%) 441 (62.50/100%) 442 (68.75/100%) 443 (75.00/100%) 444 (81.25/100%) 445 (87.50/100%) 446 (93.75/100%) 447 (100.00/100%) 448 (100.00/100%) 449No errors were found on the image. 450*** done 451