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: Changing the cluster size is not supported 385qemu-img: Changing the encryption flag is not supported 386qemu-img: Cannot change preallocation mode 387 388=== Testing correct handling of unset value === 389 390Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 391Should work: 392Should not work: 393qemu-img: Changing the cluster size is not supported 394 395=== Testing zero expansion on inactive clusters === 396 397Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 398wrote 131072/131072 bytes at offset 0 399128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 400wrote 131072/131072 bytes at offset 0 401128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 402No errors were found on the image. 403read 131072/131072 bytes at offset 0 404128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 405No errors were found on the image. 406read 131072/131072 bytes at offset 0 407128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 408 409=== Testing zero expansion on shared L2 table === 410 411Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 412wrote 131072/131072 bytes at offset 0 413128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 414No errors were found on the image. 415read 131072/131072 bytes at offset 0 416128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 417No errors were found on the image. 418read 131072/131072 bytes at offset 0 419128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 420 421=== Testing zero expansion on backed image === 422 423Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 424wrote 131072/131072 bytes at offset 0 425128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 426Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 427read 131072/131072 bytes at offset 0 428128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 429wrote 65536/65536 bytes at offset 0 43064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 431No errors were found on the image. 432read 65536/65536 bytes at offset 0 43364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 434read 65536/65536 bytes at offset 65536 43564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 436 437=== Testing zero expansion on backed inactive clusters === 438 439Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 440wrote 131072/131072 bytes at offset 0 441128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 442Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 443wrote 65536/65536 bytes at offset 0 44464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 445wrote 131072/131072 bytes at offset 0 446128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 447No errors were found on the image. 448read 131072/131072 bytes at offset 0 449128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 450No errors were found on the image. 451read 65536/65536 bytes at offset 0 45264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 453read 65536/65536 bytes at offset 65536 45464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 455 456=== Testing zero expansion on backed image with shared L2 table === 457 458Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 459wrote 131072/131072 bytes at offset 0 460128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 461Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 462wrote 131072/131072 bytes at offset 0 463128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 464No errors were found on the image. 465read 131072/131072 bytes at offset 0 466128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 467No errors were found on the image. 468read 131072/131072 bytes at offset 0 469128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 470 471=== Testing preallocated zero expansion on full image === 472 473Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 474wrote 67108864/67108864 bytes at offset 0 47564 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 476wrote 67108864/67108864 bytes at offset 0 47764 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 478No errors were found on the image. 479read 67108864/67108864 bytes at offset 0 48064 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 481 482=== Testing progress report without snapshot === 483 484Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 485Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base 486wrote 65536/65536 bytes at offset 0 48764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 488wrote 65536/65536 bytes at offset 1073741824 48964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 490wrote 65536/65536 bytes at offset 2147483648 49164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 492wrote 65536/65536 bytes at offset 3221225472 49364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 494 (0.00/100%) 495 (12.50/100%) 496 (25.00/100%) 497 (37.50/100%) 498 (50.00/100%) 499 (62.50/100%) 500 (75.00/100%) 501 (87.50/100%) 502 (100.00/100%) 503 (100.00/100%) 504No errors were found on the image. 505 506=== Testing progress report with snapshot === 507 508Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 509Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base 510wrote 65536/65536 bytes at offset 0 51164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 512wrote 65536/65536 bytes at offset 1073741824 51364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 514wrote 65536/65536 bytes at offset 2147483648 51564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 516wrote 65536/65536 bytes at offset 3221225472 51764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 518 (0.00/100%) 519 (6.25/100%) 520 (12.50/100%) 521 (18.75/100%) 522 (25.00/100%) 523 (31.25/100%) 524 (37.50/100%) 525 (43.75/100%) 526 (50.00/100%) 527 (56.25/100%) 528 (62.50/100%) 529 (68.75/100%) 530 (75.00/100%) 531 (81.25/100%) 532 (87.50/100%) 533 (93.75/100%) 534 (100.00/100%) 535 (100.00/100%) 536No errors were found on the image. 537 538=== Testing version downgrade with external data file === 539 540Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 541qemu-img: Cannot downgrade an image with a data file 542image: TEST_DIR/t.IMGFMT 543file format: IMGFMT 544virtual size: 64 MiB (67108864 bytes) 545cluster_size: 65536 546Format specific information: 547 compat: 1.1 548 compression type: zlib 549 lazy refcounts: false 550 refcount bits: 16 551 data file: TEST_DIR/t.IMGFMT.data 552 data file raw: false 553 corrupt: false 554No errors were found on the image. 555 556=== Try changing the external data file === 557 558Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 559qemu-img: data-file can only be set for images that use an external data file 560 561Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 562qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Could not open 'foo': No such file or directory 563image: TEST_DIR/t.IMGFMT 564file format: IMGFMT 565virtual size: 64 MiB (67108864 bytes) 566cluster_size: 65536 567Format specific information: 568 compat: 1.1 569 compression type: zlib 570 lazy refcounts: false 571 refcount bits: 16 572 data file: foo 573 data file raw: false 574 corrupt: false 575 576qemu-img: Could not open 'TEST_DIR/t.IMGFMT': 'data-file' is required for this image 577image: TEST_DIR/t.IMGFMT 578file format: IMGFMT 579virtual size: 64 MiB (67108864 bytes) 580cluster_size: 65536 581Format specific information: 582 compat: 1.1 583 compression type: zlib 584 lazy refcounts: false 585 refcount bits: 16 586 data file raw: false 587 corrupt: false 588 589=== Clearing and setting data-file-raw === 590 591Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on 592image: TEST_DIR/t.IMGFMT 593file format: IMGFMT 594virtual size: 64 MiB (67108864 bytes) 595cluster_size: 65536 596Format specific information: 597 compat: 1.1 598 compression type: zlib 599 lazy refcounts: false 600 refcount bits: 16 601 data file: TEST_DIR/t.IMGFMT.data 602 data file raw: true 603 corrupt: false 604No errors were found on the image. 605image: TEST_DIR/t.IMGFMT 606file format: IMGFMT 607virtual size: 64 MiB (67108864 bytes) 608cluster_size: 65536 609Format specific information: 610 compat: 1.1 611 compression type: zlib 612 lazy refcounts: false 613 refcount bits: 16 614 data file: TEST_DIR/t.IMGFMT.data 615 data file raw: false 616 corrupt: false 617No errors were found on the image. 618qemu-img: data-file-raw cannot be set on existing images 619image: TEST_DIR/t.IMGFMT 620file format: IMGFMT 621virtual size: 64 MiB (67108864 bytes) 622cluster_size: 65536 623Format specific information: 624 compat: 1.1 625 compression type: zlib 626 lazy refcounts: false 627 refcount bits: 16 628 data file: TEST_DIR/t.IMGFMT.data 629 data file raw: false 630 corrupt: false 631No errors were found on the image. 632*** done 633