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: 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*** done 518