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 [] 22compatible_features [0] 23autoclear_features [] 24refcount_order 4 25header_length 112 26 27Header extension: 28magic 0x6803f857 (Feature table) 29length 336 30data <binary> 31 32magic 0x514649fb 33version 2 34backing_file_offset 0x0 35backing_file_size 0x0 36cluster_bits 16 37size 67108864 38crypt_method 0 39l1_size 1 40l1_table_offset 0x30000 41refcount_table_offset 0x10000 42refcount_table_clusters 1 43nb_snapshots 0 44snapshot_offset 0x0 45incompatible_features [] 46compatible_features [] 47autoclear_features [] 48refcount_order 4 49header_length 72 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 version downgrade with zero expansion and 4K cache entries === 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) 60wrote 131072/131072 bytes at offset 33554432 61128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 62128 KiB (0x20000) bytes allocated at offset 0 bytes (0x0) 6331.875 MiB (0x1fe0000) bytes not allocated at offset 128 KiB (0x20000) 64128 KiB (0x20000) bytes allocated at offset 32 MiB (0x2000000) 6531.875 MiB (0x1fe0000) bytes not allocated at offset 32.125 MiB (0x2020000) 66magic 0x514649fb 67version 3 68backing_file_offset 0x0 69backing_file_size 0x0 70cluster_bits 16 71size 67108864 72crypt_method 0 73l1_size 1 74l1_table_offset 0x30000 75refcount_table_offset 0x10000 76refcount_table_clusters 1 77nb_snapshots 0 78snapshot_offset 0x0 79incompatible_features [] 80compatible_features [0] 81autoclear_features [] 82refcount_order 4 83header_length 112 84 85Header extension: 86magic 0x6803f857 (Feature table) 87length 336 88data <binary> 89 90magic 0x514649fb 91version 2 92backing_file_offset 0x0 93backing_file_size 0x0 94cluster_bits 16 95size 67108864 96crypt_method 0 97l1_size 1 98l1_table_offset 0x30000 99refcount_table_offset 0x10000 100refcount_table_clusters 1 101nb_snapshots 0 102snapshot_offset 0x0 103incompatible_features [] 104compatible_features [] 105autoclear_features [] 106refcount_order 4 107header_length 72 108 109read 131072/131072 bytes at offset 0 110128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 111read 131072/131072 bytes at offset 33554432 112128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 11364 MiB (0x4000000) bytes not allocated at offset 0 bytes (0x0) 114No errors were found on the image. 115 116=== Testing dirty version downgrade === 117 118Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 119wrote 131072/131072 bytes at offset 0 120128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 121./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) 122magic 0x514649fb 123version 3 124backing_file_offset 0x0 125backing_file_size 0x0 126cluster_bits 16 127size 67108864 128crypt_method 0 129l1_size 1 130l1_table_offset 0x30000 131refcount_table_offset 0x10000 132refcount_table_clusters 1 133nb_snapshots 0 134snapshot_offset 0x0 135incompatible_features [0] 136compatible_features [0] 137autoclear_features [] 138refcount_order 4 139header_length 112 140 141Header extension: 142magic 0x6803f857 (Feature table) 143length 336 144data <binary> 145 146ERROR cluster 5 refcount=0 reference=1 147ERROR cluster 6 refcount=0 reference=1 148Rebuilding refcount structure 149Repairing cluster 1 refcount=1 reference=0 150Repairing cluster 2 refcount=1 reference=0 151magic 0x514649fb 152version 2 153backing_file_offset 0x0 154backing_file_size 0x0 155cluster_bits 16 156size 67108864 157crypt_method 0 158l1_size 1 159l1_table_offset 0x30000 160refcount_table_offset 0x80000 161refcount_table_clusters 1 162nb_snapshots 0 163snapshot_offset 0x0 164incompatible_features [] 165compatible_features [] 166autoclear_features [] 167refcount_order 4 168header_length 72 169 170read 131072/131072 bytes at offset 0 171128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 172No errors were found on the image. 173 174=== Testing version downgrade with unknown compat/autoclear flags === 175 176Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 177magic 0x514649fb 178version 3 179backing_file_offset 0x0 180backing_file_size 0x0 181cluster_bits 16 182size 67108864 183crypt_method 0 184l1_size 1 185l1_table_offset 0x30000 186refcount_table_offset 0x10000 187refcount_table_clusters 1 188nb_snapshots 0 189snapshot_offset 0x0 190incompatible_features [] 191compatible_features [42] 192autoclear_features [42] 193refcount_order 4 194header_length 112 195 196Header extension: 197magic 0x6803f857 (Feature table) 198length 336 199data <binary> 200 201magic 0x514649fb 202version 2 203backing_file_offset 0x0 204backing_file_size 0x0 205cluster_bits 16 206size 67108864 207crypt_method 0 208l1_size 1 209l1_table_offset 0x30000 210refcount_table_offset 0x10000 211refcount_table_clusters 1 212nb_snapshots 0 213snapshot_offset 0x0 214incompatible_features [] 215compatible_features [] 216autoclear_features [] 217refcount_order 4 218header_length 72 219 220No errors were found on the image. 221 222=== Testing version upgrade and resize === 223 224Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 225wrote 65536/65536 bytes at offset 44040192 22664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 227magic 0x514649fb 228version 2 229backing_file_offset 0x0 230backing_file_size 0x0 231cluster_bits 16 232size 67108864 233crypt_method 0 234l1_size 1 235l1_table_offset 0x30000 236refcount_table_offset 0x10000 237refcount_table_clusters 1 238nb_snapshots 0 239snapshot_offset 0x0 240incompatible_features [] 241compatible_features [] 242autoclear_features [] 243refcount_order 4 244header_length 72 245 246magic 0x514649fb 247version 3 248backing_file_offset 0x0 249backing_file_size 0x0 250cluster_bits 16 251size 134217728 252crypt_method 0 253l1_size 1 254l1_table_offset 0x30000 255refcount_table_offset 0x10000 256refcount_table_clusters 1 257nb_snapshots 0 258snapshot_offset 0x0 259incompatible_features [] 260compatible_features [0] 261autoclear_features [] 262refcount_order 4 263header_length 112 264 265Header extension: 266magic 0x6803f857 (Feature table) 267length 336 268data <binary> 269 270read 65536/65536 bytes at offset 44040192 27164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 272No errors were found on the image. 273 274=== Testing resize with snapshots === 275 276Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 277wrote 65536/65536 bytes at offset 25165824 27864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 279qemu-img: Can't resize a v2 image which has snapshots 280version 2 281size 33554432 282nb_snapshots 1 283version 3 284size 134217728 285nb_snapshots 1 286Image resized. 287version 3 288size 67108864 289nb_snapshots 2 290qemu-img: Internal snapshots prevent downgrade of image 291version 3 292size 33554432 293nb_snapshots 2 294version 3 295size 134217728 296nb_snapshots 2 297version 2 298size 33554432 299nb_snapshots 1 300No errors were found on the image. 301 302=== Testing dirty lazy_refcounts=off === 303 304Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 305wrote 131072/131072 bytes at offset 0 306128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 307./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) 308magic 0x514649fb 309version 3 310backing_file_offset 0x0 311backing_file_size 0x0 312cluster_bits 16 313size 67108864 314crypt_method 0 315l1_size 1 316l1_table_offset 0x30000 317refcount_table_offset 0x10000 318refcount_table_clusters 1 319nb_snapshots 0 320snapshot_offset 0x0 321incompatible_features [0] 322compatible_features [0] 323autoclear_features [] 324refcount_order 4 325header_length 112 326 327Header extension: 328magic 0x6803f857 (Feature table) 329length 336 330data <binary> 331 332ERROR cluster 5 refcount=0 reference=1 333ERROR cluster 6 refcount=0 reference=1 334Rebuilding refcount structure 335Repairing cluster 1 refcount=1 reference=0 336Repairing cluster 2 refcount=1 reference=0 337magic 0x514649fb 338version 3 339backing_file_offset 0x0 340backing_file_size 0x0 341cluster_bits 16 342size 67108864 343crypt_method 0 344l1_size 1 345l1_table_offset 0x30000 346refcount_table_offset 0x80000 347refcount_table_clusters 1 348nb_snapshots 0 349snapshot_offset 0x0 350incompatible_features [] 351compatible_features [] 352autoclear_features [] 353refcount_order 4 354header_length 112 355 356Header extension: 357magic 0x6803f857 (Feature table) 358length 336 359data <binary> 360 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. 364 365=== Testing backing file === 366 367Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 368Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 369wrote 131072/131072 bytes at offset 0 370128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 371read 131072/131072 bytes at offset 0 372128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 373read 131072/131072 bytes at offset 0 374128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 375No errors were found on the image. 376 377=== Testing invalid configurations === 378 379Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 380qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 381qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 382qemu-img: Unknown compatibility level 0.42 383qemu-img: Invalid parameter 'foo' 384qemu-img: Invalid parameter 'cluster_size' 385This option is only supported for image creation 386qemu-img: Invalid parameter 'encryption' 387This option is only supported for image creation 388qemu-img: Invalid parameter 'preallocation' 389This option is only supported for image creation 390 391=== Testing correct handling of unset value === 392 393Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 394Should work: 395Should not work: 396qemu-img: Invalid parameter 'cluster_size' 397This option is only supported for image creation 398 399=== Testing zero expansion on inactive clusters === 400 401Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 402wrote 131072/131072 bytes at offset 0 403128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 404wrote 131072/131072 bytes at offset 0 405128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 406No errors were found on the image. 407read 131072/131072 bytes at offset 0 408128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 409No errors were found on the image. 410read 131072/131072 bytes at offset 0 411128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 412 413=== Testing zero expansion on shared L2 table === 414 415Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 416wrote 131072/131072 bytes at offset 0 417128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 418No errors were found on the image. 419read 131072/131072 bytes at offset 0 420128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 421No errors were found on the image. 422read 131072/131072 bytes at offset 0 423128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 424 425=== Testing zero expansion on backed image === 426 427Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 428wrote 131072/131072 bytes at offset 0 429128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 430Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 431read 131072/131072 bytes at offset 0 432128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 433wrote 65536/65536 bytes at offset 0 43464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 435No errors were found on the image. 436read 65536/65536 bytes at offset 0 43764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 438read 65536/65536 bytes at offset 65536 43964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 440 441=== Testing zero expansion on backed inactive clusters === 442 443Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 444wrote 131072/131072 bytes at offset 0 445128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 446Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 447wrote 65536/65536 bytes at offset 0 44864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 449wrote 131072/131072 bytes at offset 0 450128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 451No errors were found on the image. 452read 131072/131072 bytes at offset 0 453128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 454No errors were found on the image. 455read 65536/65536 bytes at offset 0 45664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 457read 65536/65536 bytes at offset 65536 45864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 459 460=== Testing zero expansion on backed image with shared L2 table === 461 462Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 463wrote 131072/131072 bytes at offset 0 464128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 465Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 466wrote 131072/131072 bytes at offset 0 467128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 468No errors were found on the image. 469read 131072/131072 bytes at offset 0 470128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 471No errors were found on the image. 472read 131072/131072 bytes at offset 0 473128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 474 475=== Testing preallocated zero expansion on full image === 476 477Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 478wrote 67108864/67108864 bytes at offset 0 47964 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 480wrote 67108864/67108864 bytes at offset 0 48164 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 482No errors were found on the image. 483read 67108864/67108864 bytes at offset 0 48464 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 485 486=== Testing progress report without snapshot === 487 488Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 489Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base 490wrote 65536/65536 bytes at offset 0 49164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 492wrote 65536/65536 bytes at offset 1073741824 49364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 494wrote 65536/65536 bytes at offset 2147483648 49564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 496wrote 65536/65536 bytes at offset 3221225472 49764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 498 (0.00/100%) 499 (12.50/100%) 500 (25.00/100%) 501 (37.50/100%) 502 (50.00/100%) 503 (62.50/100%) 504 (75.00/100%) 505 (87.50/100%) 506 (100.00/100%) 507 (100.00/100%) 508No errors were found on the image. 509 510=== Testing progress report with snapshot === 511 512Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 513Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base 514wrote 65536/65536 bytes at offset 0 51564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 516wrote 65536/65536 bytes at offset 1073741824 51764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 518wrote 65536/65536 bytes at offset 2147483648 51964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 520wrote 65536/65536 bytes at offset 3221225472 52164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 522 (0.00/100%) 523 (6.25/100%) 524 (12.50/100%) 525 (18.75/100%) 526 (25.00/100%) 527 (31.25/100%) 528 (37.50/100%) 529 (43.75/100%) 530 (50.00/100%) 531 (56.25/100%) 532 (62.50/100%) 533 (68.75/100%) 534 (75.00/100%) 535 (81.25/100%) 536 (87.50/100%) 537 (93.75/100%) 538 (100.00/100%) 539 (100.00/100%) 540No errors were found on the image. 541 542=== Testing version downgrade with external data file === 543 544Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 545qemu-img: Cannot downgrade an image with a data file 546image: TEST_DIR/t.IMGFMT 547file format: IMGFMT 548virtual size: 64 MiB (67108864 bytes) 549cluster_size: 65536 550Format specific information: 551 compat: 1.1 552 compression type: zlib 553 lazy refcounts: false 554 refcount bits: 16 555 data file: TEST_DIR/t.IMGFMT.data 556 data file raw: false 557 corrupt: false 558No errors were found on the image. 559 560=== Try changing the external data file === 561 562Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 563qemu-img: data-file can only be set for images that use an external data file 564 565Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 566qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Could not open 'foo': No such file or directory 567image: TEST_DIR/t.IMGFMT 568file format: IMGFMT 569virtual size: 64 MiB (67108864 bytes) 570cluster_size: 65536 571Format specific information: 572 compat: 1.1 573 compression type: zlib 574 lazy refcounts: false 575 refcount bits: 16 576 data file: foo 577 data file raw: false 578 corrupt: false 579 580qemu-img: Could not open 'TEST_DIR/t.IMGFMT': 'data-file' is required for this image 581image: TEST_DIR/t.IMGFMT 582file format: IMGFMT 583virtual size: 64 MiB (67108864 bytes) 584cluster_size: 65536 585Format specific information: 586 compat: 1.1 587 compression type: zlib 588 lazy refcounts: false 589 refcount bits: 16 590 data file raw: false 591 corrupt: false 592 593=== Clearing and setting data-file-raw === 594 595Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on 596image: TEST_DIR/t.IMGFMT 597file format: IMGFMT 598virtual size: 64 MiB (67108864 bytes) 599cluster_size: 65536 600Format specific information: 601 compat: 1.1 602 compression type: zlib 603 lazy refcounts: false 604 refcount bits: 16 605 data file: TEST_DIR/t.IMGFMT.data 606 data file raw: true 607 corrupt: false 608No errors were found on the image. 609image: TEST_DIR/t.IMGFMT 610file format: IMGFMT 611virtual size: 64 MiB (67108864 bytes) 612cluster_size: 65536 613Format specific information: 614 compat: 1.1 615 compression type: zlib 616 lazy refcounts: false 617 refcount bits: 16 618 data file: TEST_DIR/t.IMGFMT.data 619 data file raw: false 620 corrupt: false 621No errors were found on the image. 622qemu-img: data-file-raw cannot be set on existing images 623image: TEST_DIR/t.IMGFMT 624file format: IMGFMT 625virtual size: 64 MiB (67108864 bytes) 626cluster_size: 65536 627Format specific information: 628 compat: 1.1 629 compression type: zlib 630 lazy refcounts: false 631 refcount bits: 16 632 data file: TEST_DIR/t.IMGFMT.data 633 data file raw: false 634 corrupt: false 635No errors were found on the image. 636*** done 637