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) 373qemu-img: warning: Deprecated use of amend to alter the backing file; use qemu-img rebase instead 374read 131072/131072 bytes at offset 0 375128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 376No errors were found on the image. 377 378=== Testing invalid configurations === 379 380Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 381qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 382qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 383qemu-img: Unknown compatibility level 0.42 384qemu-img: Invalid parameter 'foo' 385qemu-img: Invalid parameter 'cluster_size' 386This option is only supported for image creation 387qemu-img: Invalid parameter 'encryption' 388This option is only supported for image creation 389qemu-img: Invalid parameter 'preallocation' 390This option is only supported for image creation 391 392=== Testing correct handling of unset value === 393 394Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 395Should work: 396Should not work: 397qemu-img: Invalid parameter 'cluster_size' 398This option is only supported for image creation 399 400=== Testing zero expansion on inactive clusters === 401 402Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 403wrote 131072/131072 bytes at offset 0 404128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 405wrote 131072/131072 bytes at offset 0 406128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 407No errors were found on the image. 408read 131072/131072 bytes at offset 0 409128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 410No errors were found on the image. 411read 131072/131072 bytes at offset 0 412128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 413 414=== Testing zero expansion on shared L2 table === 415 416Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 417wrote 131072/131072 bytes at offset 0 418128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 419No errors were found on the image. 420read 131072/131072 bytes at offset 0 421128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 422No errors were found on the image. 423read 131072/131072 bytes at offset 0 424128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 425 426=== Testing zero expansion on backed image === 427 428Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 429wrote 131072/131072 bytes at offset 0 430128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 431Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 432read 131072/131072 bytes at offset 0 433128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 434wrote 65536/65536 bytes at offset 0 43564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 436No errors were found on the image. 437read 65536/65536 bytes at offset 0 43864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 439read 65536/65536 bytes at offset 65536 44064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 441 442=== Testing zero expansion on backed inactive clusters === 443 444Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 445wrote 131072/131072 bytes at offset 0 446128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 447Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 448wrote 65536/65536 bytes at offset 0 44964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 450wrote 131072/131072 bytes at offset 0 451128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 452No errors were found on the image. 453read 131072/131072 bytes at offset 0 454128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 455No errors were found on the image. 456read 65536/65536 bytes at offset 0 45764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 458read 65536/65536 bytes at offset 65536 45964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 460 461=== Testing zero expansion on backed image with shared L2 table === 462 463Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 464wrote 131072/131072 bytes at offset 0 465128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 466Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 467wrote 131072/131072 bytes at offset 0 468128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 469No errors were found on the image. 470read 131072/131072 bytes at offset 0 471128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 472No errors were found on the image. 473read 131072/131072 bytes at offset 0 474128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 475 476=== Testing preallocated zero expansion on full image === 477 478Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 479wrote 67108864/67108864 bytes at offset 0 48064 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 481wrote 67108864/67108864 bytes at offset 0 48264 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 483No errors were found on the image. 484read 67108864/67108864 bytes at offset 0 48564 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 486 487=== Testing progress report without snapshot === 488 489Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 490Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 491wrote 65536/65536 bytes at offset 0 49264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 493wrote 65536/65536 bytes at offset 1073741824 49464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 495wrote 65536/65536 bytes at offset 2147483648 49664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 497wrote 65536/65536 bytes at offset 3221225472 49864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 499 (0.00/100%) 500 (12.50/100%) 501 (25.00/100%) 502 (37.50/100%) 503 (50.00/100%) 504 (62.50/100%) 505 (75.00/100%) 506 (87.50/100%) 507 (100.00/100%) 508 (100.00/100%) 509No errors were found on the image. 510 511=== Testing progress report with snapshot === 512 513Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 514Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 515wrote 65536/65536 bytes at offset 0 51664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 517wrote 65536/65536 bytes at offset 1073741824 51864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 519wrote 65536/65536 bytes at offset 2147483648 52064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 521wrote 65536/65536 bytes at offset 3221225472 52264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 523 (0.00/100%) 524 (6.25/100%) 525 (12.50/100%) 526 (18.75/100%) 527 (25.00/100%) 528 (31.25/100%) 529 (37.50/100%) 530 (43.75/100%) 531 (50.00/100%) 532 (56.25/100%) 533 (62.50/100%) 534 (68.75/100%) 535 (75.00/100%) 536 (81.25/100%) 537 (87.50/100%) 538 (93.75/100%) 539 (100.00/100%) 540 (100.00/100%) 541No errors were found on the image. 542 543=== Testing version downgrade with external data file === 544 545Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 546qemu-img: Cannot downgrade an image with a data file 547image: TEST_DIR/t.IMGFMT 548file format: IMGFMT 549virtual size: 64 MiB (67108864 bytes) 550cluster_size: 65536 551Format specific information: 552 compat: 1.1 553 compression type: zlib 554 lazy refcounts: false 555 refcount bits: 16 556 data file: TEST_DIR/t.IMGFMT.data 557 data file raw: false 558 corrupt: false 559No errors were found on the image. 560 561=== Try changing the external data file === 562 563Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 564qemu-img: data-file can only be set for images that use an external data file 565 566Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 567qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Could not open 'foo': No such file or directory 568image: TEST_DIR/t.IMGFMT 569file format: IMGFMT 570virtual size: 64 MiB (67108864 bytes) 571cluster_size: 65536 572Format specific information: 573 compat: 1.1 574 compression type: zlib 575 lazy refcounts: false 576 refcount bits: 16 577 data file: foo 578 data file raw: false 579 corrupt: false 580 581qemu-img: Could not open 'TEST_DIR/t.IMGFMT': 'data-file' is required for this image 582image: TEST_DIR/t.IMGFMT 583file format: IMGFMT 584virtual size: 64 MiB (67108864 bytes) 585cluster_size: 65536 586Format specific information: 587 compat: 1.1 588 compression type: zlib 589 lazy refcounts: false 590 refcount bits: 16 591 data file raw: false 592 corrupt: false 593 594=== Clearing and setting data-file-raw === 595 596Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on 597image: TEST_DIR/t.IMGFMT 598file format: IMGFMT 599virtual size: 64 MiB (67108864 bytes) 600cluster_size: 65536 601Format specific information: 602 compat: 1.1 603 compression type: zlib 604 lazy refcounts: false 605 refcount bits: 16 606 data file: TEST_DIR/t.IMGFMT.data 607 data file raw: true 608 corrupt: false 609No errors were found on the image. 610image: TEST_DIR/t.IMGFMT 611file format: IMGFMT 612virtual size: 64 MiB (67108864 bytes) 613cluster_size: 65536 614Format specific information: 615 compat: 1.1 616 compression type: zlib 617 lazy refcounts: false 618 refcount bits: 16 619 data file: TEST_DIR/t.IMGFMT.data 620 data file raw: false 621 corrupt: false 622No errors were found on the image. 623qemu-img: data-file-raw cannot be set on existing images 624image: TEST_DIR/t.IMGFMT 625file format: IMGFMT 626virtual size: 64 MiB (67108864 bytes) 627cluster_size: 65536 628Format specific information: 629 compat: 1.1 630 compression type: zlib 631 lazy refcounts: false 632 refcount bits: 16 633 data file: TEST_DIR/t.IMGFMT.data 634 data file raw: false 635 corrupt: false 636No errors were found on the image. 637*** done 638