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 27Header extension: 28magic 0x6803f857 29length 192 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 0x0 46compatible_features 0x0 47autoclear_features 0x0 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 0x0 80compatible_features 0x1 81autoclear_features 0x0 82refcount_order 4 83header_length 104 84 85Header extension: 86magic 0x6803f857 87length 192 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 0x0 104compatible_features 0x0 105autoclear_features 0x0 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 ( if [ "${VALGRIND_QEMU}" == "y" ]; then 122 exec valgrind --log-file="${VALGRIND_LOGFILE}" --error-exitcode=99 "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@"; 123else 124 exec "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@"; 125fi ) 126magic 0x514649fb 127version 3 128backing_file_offset 0x0 129backing_file_size 0x0 130cluster_bits 16 131size 67108864 132crypt_method 0 133l1_size 1 134l1_table_offset 0x30000 135refcount_table_offset 0x10000 136refcount_table_clusters 1 137nb_snapshots 0 138snapshot_offset 0x0 139incompatible_features 0x1 140compatible_features 0x1 141autoclear_features 0x0 142refcount_order 4 143header_length 104 144 145Header extension: 146magic 0x6803f857 147length 192 148data <binary> 149 150ERROR cluster 5 refcount=0 reference=1 151ERROR cluster 6 refcount=0 reference=1 152Rebuilding refcount structure 153Repairing cluster 1 refcount=1 reference=0 154Repairing cluster 2 refcount=1 reference=0 155magic 0x514649fb 156version 2 157backing_file_offset 0x0 158backing_file_size 0x0 159cluster_bits 16 160size 67108864 161crypt_method 0 162l1_size 1 163l1_table_offset 0x30000 164refcount_table_offset 0x80000 165refcount_table_clusters 1 166nb_snapshots 0 167snapshot_offset 0x0 168incompatible_features 0x0 169compatible_features 0x0 170autoclear_features 0x0 171refcount_order 4 172header_length 72 173 174read 131072/131072 bytes at offset 0 175128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 176No errors were found on the image. 177 178=== Testing version downgrade with unknown compat/autoclear flags === 179 180Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 181magic 0x514649fb 182version 3 183backing_file_offset 0x0 184backing_file_size 0x0 185cluster_bits 16 186size 67108864 187crypt_method 0 188l1_size 1 189l1_table_offset 0x30000 190refcount_table_offset 0x10000 191refcount_table_clusters 1 192nb_snapshots 0 193snapshot_offset 0x0 194incompatible_features 0x0 195compatible_features 0x40000000000 196autoclear_features 0x40000000000 197refcount_order 4 198header_length 104 199 200Header extension: 201magic 0x6803f857 202length 192 203data <binary> 204 205magic 0x514649fb 206version 2 207backing_file_offset 0x0 208backing_file_size 0x0 209cluster_bits 16 210size 67108864 211crypt_method 0 212l1_size 1 213l1_table_offset 0x30000 214refcount_table_offset 0x10000 215refcount_table_clusters 1 216nb_snapshots 0 217snapshot_offset 0x0 218incompatible_features 0x0 219compatible_features 0x0 220autoclear_features 0x0 221refcount_order 4 222header_length 72 223 224No errors were found on the image. 225 226=== Testing version upgrade and resize === 227 228Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 229wrote 65536/65536 bytes at offset 44040192 23064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 231magic 0x514649fb 232version 2 233backing_file_offset 0x0 234backing_file_size 0x0 235cluster_bits 16 236size 67108864 237crypt_method 0 238l1_size 1 239l1_table_offset 0x30000 240refcount_table_offset 0x10000 241refcount_table_clusters 1 242nb_snapshots 0 243snapshot_offset 0x0 244incompatible_features 0x0 245compatible_features 0x0 246autoclear_features 0x0 247refcount_order 4 248header_length 72 249 250magic 0x514649fb 251version 3 252backing_file_offset 0x0 253backing_file_size 0x0 254cluster_bits 16 255size 134217728 256crypt_method 0 257l1_size 1 258l1_table_offset 0x30000 259refcount_table_offset 0x10000 260refcount_table_clusters 1 261nb_snapshots 0 262snapshot_offset 0x0 263incompatible_features 0x0 264compatible_features 0x1 265autoclear_features 0x0 266refcount_order 4 267header_length 104 268 269Header extension: 270magic 0x6803f857 271length 192 272data <binary> 273 274read 65536/65536 bytes at offset 44040192 27564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 276No errors were found on the image. 277 278=== Testing dirty lazy_refcounts=off === 279 280Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 281wrote 131072/131072 bytes at offset 0 282128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 283./common.rc: Killed ( if [ "${VALGRIND_QEMU}" == "y" ]; then 284 exec valgrind --log-file="${VALGRIND_LOGFILE}" --error-exitcode=99 "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@"; 285else 286 exec "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@"; 287fi ) 288magic 0x514649fb 289version 3 290backing_file_offset 0x0 291backing_file_size 0x0 292cluster_bits 16 293size 67108864 294crypt_method 0 295l1_size 1 296l1_table_offset 0x30000 297refcount_table_offset 0x10000 298refcount_table_clusters 1 299nb_snapshots 0 300snapshot_offset 0x0 301incompatible_features 0x1 302compatible_features 0x1 303autoclear_features 0x0 304refcount_order 4 305header_length 104 306 307Header extension: 308magic 0x6803f857 309length 192 310data <binary> 311 312ERROR cluster 5 refcount=0 reference=1 313ERROR cluster 6 refcount=0 reference=1 314Rebuilding refcount structure 315Repairing cluster 1 refcount=1 reference=0 316Repairing cluster 2 refcount=1 reference=0 317magic 0x514649fb 318version 3 319backing_file_offset 0x0 320backing_file_size 0x0 321cluster_bits 16 322size 67108864 323crypt_method 0 324l1_size 1 325l1_table_offset 0x30000 326refcount_table_offset 0x80000 327refcount_table_clusters 1 328nb_snapshots 0 329snapshot_offset 0x0 330incompatible_features 0x0 331compatible_features 0x0 332autoclear_features 0x0 333refcount_order 4 334header_length 104 335 336Header extension: 337magic 0x6803f857 338length 192 339data <binary> 340 341read 131072/131072 bytes at offset 0 342128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 343No errors were found on the image. 344 345=== Testing backing file === 346 347Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 348Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 349wrote 131072/131072 bytes at offset 0 350128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 351read 131072/131072 bytes at offset 0 352128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 353read 131072/131072 bytes at offset 0 354128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 355No errors were found on the image. 356 357=== Testing invalid configurations === 358 359Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 360qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 361qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 362qemu-img: Unknown compatibility level 0.42 363qemu-img: Invalid parameter 'foo' 364qemu-img: Changing the cluster size is not supported 365qemu-img: Changing the encryption flag is not supported 366qemu-img: Cannot change preallocation mode 367 368=== Testing correct handling of unset value === 369 370Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 371Should work: 372Should not work: 373qemu-img: Changing the cluster size is not supported 374 375=== Testing zero expansion on inactive clusters === 376 377Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 378wrote 131072/131072 bytes at offset 0 379128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 380wrote 131072/131072 bytes at offset 0 381128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 382No errors were found on the image. 383read 131072/131072 bytes at offset 0 384128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 385No errors were found on the image. 386read 131072/131072 bytes at offset 0 387128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 388 389=== Testing zero expansion on shared L2 table === 390 391Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 392wrote 131072/131072 bytes at offset 0 393128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 394No errors were found on the image. 395read 131072/131072 bytes at offset 0 396128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 397No errors were found on the image. 398read 131072/131072 bytes at offset 0 399128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 400 401=== Testing zero expansion on backed image === 402 403Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 404wrote 131072/131072 bytes at offset 0 405128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 406Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 407read 131072/131072 bytes at offset 0 408128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 409wrote 65536/65536 bytes at offset 0 41064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 411No errors were found on the image. 412read 65536/65536 bytes at offset 0 41364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 414read 65536/65536 bytes at offset 65536 41564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 416 417=== Testing zero expansion on backed inactive clusters === 418 419Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 420wrote 131072/131072 bytes at offset 0 421128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 422Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 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 131072/131072 bytes at offset 0 426128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 427No errors were found on the image. 428read 131072/131072 bytes at offset 0 429128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 430No errors were found on the image. 431read 65536/65536 bytes at offset 0 43264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 433read 65536/65536 bytes at offset 65536 43464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 435 436=== Testing zero expansion on backed image with shared L2 table === 437 438Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 439wrote 131072/131072 bytes at offset 0 440128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 441Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 442wrote 131072/131072 bytes at offset 0 443128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 444No errors were found on the image. 445read 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) 450 451=== Testing preallocated zero expansion on full image === 452 453Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 454wrote 67108864/67108864 bytes at offset 0 45564 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 456wrote 67108864/67108864 bytes at offset 0 45764 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 458No errors were found on the image. 459read 67108864/67108864 bytes at offset 0 46064 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 461 462=== Testing progress report without snapshot === 463 464Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 465Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base 466wrote 65536/65536 bytes at offset 0 46764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 468wrote 65536/65536 bytes at offset 1073741824 46964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 470wrote 65536/65536 bytes at offset 2147483648 47164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 472wrote 65536/65536 bytes at offset 3221225472 47364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 474 (0.00/100%) 475 (12.50/100%) 476 (25.00/100%) 477 (37.50/100%) 478 (50.00/100%) 479 (62.50/100%) 480 (75.00/100%) 481 (87.50/100%) 482 (100.00/100%) 483 (100.00/100%) 484No errors were found on the image. 485 486=== Testing progress report with 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 (6.25/100%) 500 (12.50/100%) 501 (18.75/100%) 502 (25.00/100%) 503 (31.25/100%) 504 (37.50/100%) 505 (43.75/100%) 506 (50.00/100%) 507 (56.25/100%) 508 (62.50/100%) 509 (68.75/100%) 510 (75.00/100%) 511 (81.25/100%) 512 (87.50/100%) 513 (93.75/100%) 514 (100.00/100%) 515 (100.00/100%) 516No errors were found on the image. 517 518=== Testing version downgrade with external data file === 519 520Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 521qemu-img: Cannot downgrade an image with a data file 522image: TEST_DIR/t.IMGFMT 523file format: IMGFMT 524virtual size: 64 MiB (67108864 bytes) 525cluster_size: 65536 526Format specific information: 527 compat: 1.1 528 lazy refcounts: false 529 refcount bits: 16 530 data file: TEST_DIR/t.IMGFMT.data 531 data file raw: false 532 corrupt: false 533No errors were found on the image. 534 535=== Try changing the external data file === 536 537Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 538qemu-img: data-file can only be set for images that use an external data file 539 540Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 541qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Could not open 'foo': No such file or directory 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: foo 551 data file raw: false 552 corrupt: false 553 554qemu-img: Could not open 'TEST_DIR/t.IMGFMT': 'data-file' is required for this image 555image: TEST_DIR/t.IMGFMT 556file format: IMGFMT 557virtual size: 64 MiB (67108864 bytes) 558cluster_size: 65536 559Format specific information: 560 compat: 1.1 561 lazy refcounts: false 562 refcount bits: 16 563 data file raw: false 564 corrupt: false 565 566=== Clearing and setting data-file-raw === 567 568Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on 569image: TEST_DIR/t.IMGFMT 570file format: IMGFMT 571virtual size: 64 MiB (67108864 bytes) 572cluster_size: 65536 573Format specific information: 574 compat: 1.1 575 lazy refcounts: false 576 refcount bits: 16 577 data file: TEST_DIR/t.IMGFMT.data 578 data file raw: true 579 corrupt: false 580No errors were found on the 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 lazy refcounts: false 588 refcount bits: 16 589 data file: TEST_DIR/t.IMGFMT.data 590 data file raw: false 591 corrupt: false 592No errors were found on the image. 593qemu-img: data-file-raw cannot be set on existing images 594image: TEST_DIR/t.IMGFMT 595file format: IMGFMT 596virtual size: 64 MiB (67108864 bytes) 597cluster_size: 65536 598Format specific information: 599 compat: 1.1 600 lazy refcounts: false 601 refcount bits: 16 602 data file: TEST_DIR/t.IMGFMT.data 603 data file raw: false 604 corrupt: false 605No errors were found on the image. 606*** done 607