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 104 26 27Header extension: 28magic 0x6803f857 29length 288 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 104 84 85Header extension: 86magic 0x6803f857 87length 288 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 104 140 141Header extension: 142magic 0x6803f857 143length 288 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 104 195 196Header extension: 197magic 0x6803f857 198length 288 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 104 264 265Header extension: 266magic 0x6803f857 267length 288 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 104 326 327Header extension: 328magic 0x6803f857 329length 288 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 104 355 356Header extension: 357magic 0x6803f857 358length 288 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 lazy refcounts: false 549 refcount bits: 16 550 data file: TEST_DIR/t.IMGFMT.data 551 data file raw: false 552 corrupt: false 553No errors were found on the image. 554 555=== Try changing the external data file === 556 557Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 558qemu-img: data-file can only be set for images that use an external data file 559 560Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 561qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Could not open 'foo': No such file or directory 562image: TEST_DIR/t.IMGFMT 563file format: IMGFMT 564virtual size: 64 MiB (67108864 bytes) 565cluster_size: 65536 566Format specific information: 567 compat: 1.1 568 lazy refcounts: false 569 refcount bits: 16 570 data file: foo 571 data file raw: false 572 corrupt: false 573 574qemu-img: Could not open 'TEST_DIR/t.IMGFMT': 'data-file' is required for this image 575image: TEST_DIR/t.IMGFMT 576file format: IMGFMT 577virtual size: 64 MiB (67108864 bytes) 578cluster_size: 65536 579Format specific information: 580 compat: 1.1 581 lazy refcounts: false 582 refcount bits: 16 583 data file raw: false 584 corrupt: false 585 586=== Clearing and setting data-file-raw === 587 588Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on 589image: TEST_DIR/t.IMGFMT 590file format: IMGFMT 591virtual size: 64 MiB (67108864 bytes) 592cluster_size: 65536 593Format specific information: 594 compat: 1.1 595 lazy refcounts: false 596 refcount bits: 16 597 data file: TEST_DIR/t.IMGFMT.data 598 data file raw: true 599 corrupt: false 600No errors were found on the image. 601image: TEST_DIR/t.IMGFMT 602file format: IMGFMT 603virtual size: 64 MiB (67108864 bytes) 604cluster_size: 65536 605Format specific information: 606 compat: 1.1 607 lazy refcounts: false 608 refcount bits: 16 609 data file: TEST_DIR/t.IMGFMT.data 610 data file raw: false 611 corrupt: false 612No errors were found on the image. 613qemu-img: data-file-raw cannot be set on existing images 614image: TEST_DIR/t.IMGFMT 615file format: IMGFMT 616virtual size: 64 MiB (67108864 bytes) 617cluster_size: 65536 618Format specific information: 619 compat: 1.1 620 lazy refcounts: false 621 refcount bits: 16 622 data file: TEST_DIR/t.IMGFMT.data 623 data file raw: false 624 corrupt: false 625No errors were found on the image. 626*** done 627