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 144 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 144 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 144 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 144 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 144 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 144 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 144 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: Error while amending options: Invalid argument 362qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 363qemu-img: Error while amending options: Invalid argument 364qemu-img: Unknown compatibility level 0.42 365qemu-img: Error while amending options: Invalid argument 366qemu-img: Invalid parameter 'foo' 367qemu-img: Changing the cluster size is not supported 368qemu-img: Error while amending options: Operation not supported 369qemu-img: Changing the encryption flag is not supported 370qemu-img: Error while amending options: Operation not supported 371qemu-img: Cannot change preallocation mode 372qemu-img: Error while amending options: Operation not supported 373 374=== Testing correct handling of unset value === 375 376Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 377Should work: 378Should not work: 379qemu-img: Changing the cluster size is not supported 380qemu-img: Error while amending options: Operation not supported 381 382=== Testing zero expansion on inactive clusters === 383 384Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 385wrote 131072/131072 bytes at offset 0 386128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 387wrote 131072/131072 bytes at offset 0 388128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 389No errors were found on the image. 390read 131072/131072 bytes at offset 0 391128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 392No errors were found on the image. 393read 131072/131072 bytes at offset 0 394128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 395 396=== Testing zero expansion on shared L2 table === 397 398Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 399wrote 131072/131072 bytes at offset 0 400128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 401No errors were found on the image. 402read 131072/131072 bytes at offset 0 403128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 404No errors were found on the image. 405read 131072/131072 bytes at offset 0 406128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 407 408=== Testing zero expansion on backed image === 409 410Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 411wrote 131072/131072 bytes at offset 0 412128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 413Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 414read 131072/131072 bytes at offset 0 415128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 416wrote 65536/65536 bytes at offset 0 41764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 418No errors were found on the image. 419read 65536/65536 bytes at offset 0 42064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 421read 65536/65536 bytes at offset 65536 42264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 423 424=== Testing zero expansion on backed inactive clusters === 425 426Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 427wrote 131072/131072 bytes at offset 0 428128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 429Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 430wrote 65536/65536 bytes at offset 0 43164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 432wrote 131072/131072 bytes at offset 0 433128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 434No errors were found on the image. 435read 131072/131072 bytes at offset 0 436128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 437No errors were found on the image. 438read 65536/65536 bytes at offset 0 43964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 440read 65536/65536 bytes at offset 65536 44164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 442 443=== Testing zero expansion on backed image with shared L2 table === 444 445Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 446wrote 131072/131072 bytes at offset 0 447128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 448Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base 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 131072/131072 bytes at offset 0 456128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 457 458=== Testing preallocated zero expansion on full image === 459 460Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 461wrote 67108864/67108864 bytes at offset 0 46264 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 463wrote 67108864/67108864 bytes at offset 0 46464 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 465No errors were found on the image. 466read 67108864/67108864 bytes at offset 0 46764 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 468 469=== Testing progress report without snapshot === 470 471Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 472Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base 473wrote 65536/65536 bytes at offset 0 47464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 475wrote 65536/65536 bytes at offset 1073741824 47664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 477wrote 65536/65536 bytes at offset 2147483648 47864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 479wrote 65536/65536 bytes at offset 3221225472 48064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 481 (0.00/100%) 482 (12.50/100%) 483 (25.00/100%) 484 (37.50/100%) 485 (50.00/100%) 486 (62.50/100%) 487 (75.00/100%) 488 (87.50/100%) 489 (100.00/100%) 490 (100.00/100%) 491No errors were found on the image. 492 493=== Testing progress report with snapshot === 494 495Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 496Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base 497wrote 65536/65536 bytes at offset 0 49864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 499wrote 65536/65536 bytes at offset 1073741824 50064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 501wrote 65536/65536 bytes at offset 2147483648 50264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 503wrote 65536/65536 bytes at offset 3221225472 50464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 505 (0.00/100%) 506 (6.25/100%) 507 (12.50/100%) 508 (18.75/100%) 509 (25.00/100%) 510 (31.25/100%) 511 (37.50/100%) 512 (43.75/100%) 513 (50.00/100%) 514 (56.25/100%) 515 (62.50/100%) 516 (68.75/100%) 517 (75.00/100%) 518 (81.25/100%) 519 (87.50/100%) 520 (93.75/100%) 521 (100.00/100%) 522 (100.00/100%) 523No errors were found on the image. 524*** done 525