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 27magic 0x514649fb 28version 2 29backing_file_offset 0x0 30backing_file_size 0x0 31cluster_bits 16 32size 67108864 33crypt_method 0 34l1_size 1 35l1_table_offset 0x30000 36refcount_table_offset 0x10000 37refcount_table_clusters 1 38nb_snapshots 0 39snapshot_offset 0x0 40incompatible_features 0x0 41compatible_features 0x0 42autoclear_features 0x0 43refcount_order 4 44header_length 72 45 46Header extension: 47magic 0x6803f857 48length 144 49data <binary> 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 dirty version downgrade === 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) 60magic 0x514649fb 61version 3 62backing_file_offset 0x0 63backing_file_size 0x0 64cluster_bits 16 65size 67108864 66crypt_method 0 67l1_size 1 68l1_table_offset 0x30000 69refcount_table_offset 0x10000 70refcount_table_clusters 1 71nb_snapshots 0 72snapshot_offset 0x0 73incompatible_features 0x1 74compatible_features 0x1 75autoclear_features 0x0 76refcount_order 4 77header_length 104 78 79Repairing cluster 5 refcount=0 reference=1 80Repairing cluster 6 refcount=0 reference=1 81magic 0x514649fb 82version 2 83backing_file_offset 0x0 84backing_file_size 0x0 85cluster_bits 16 86size 67108864 87crypt_method 0 88l1_size 1 89l1_table_offset 0x30000 90refcount_table_offset 0x10000 91refcount_table_clusters 1 92nb_snapshots 0 93snapshot_offset 0x0 94incompatible_features 0x0 95compatible_features 0x0 96autoclear_features 0x0 97refcount_order 4 98header_length 72 99 100Header extension: 101magic 0x6803f857 102length 144 103data <binary> 104 105read 131072/131072 bytes at offset 0 106128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 107No errors were found on the image. 108 109=== Testing version downgrade with unknown compat/autoclear flags === 110 111Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 112magic 0x514649fb 113version 3 114backing_file_offset 0x0 115backing_file_size 0x0 116cluster_bits 16 117size 67108864 118crypt_method 0 119l1_size 1 120l1_table_offset 0x30000 121refcount_table_offset 0x10000 122refcount_table_clusters 1 123nb_snapshots 0 124snapshot_offset 0x0 125incompatible_features 0x0 126compatible_features 0x40000000000 127autoclear_features 0x40000000000 128refcount_order 4 129header_length 104 130 131magic 0x514649fb 132version 2 133backing_file_offset 0x0 134backing_file_size 0x0 135cluster_bits 16 136size 67108864 137crypt_method 0 138l1_size 1 139l1_table_offset 0x30000 140refcount_table_offset 0x10000 141refcount_table_clusters 1 142nb_snapshots 0 143snapshot_offset 0x0 144incompatible_features 0x0 145compatible_features 0x0 146autoclear_features 0x0 147refcount_order 4 148header_length 72 149 150Header extension: 151magic 0x6803f857 152length 144 153data <binary> 154 155No errors were found on the image. 156 157=== Testing version upgrade and resize === 158 159Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 160wrote 65536/65536 bytes at offset 44040192 16164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 162magic 0x514649fb 163version 2 164backing_file_offset 0x0 165backing_file_size 0x0 166cluster_bits 16 167size 67108864 168crypt_method 0 169l1_size 1 170l1_table_offset 0x30000 171refcount_table_offset 0x10000 172refcount_table_clusters 1 173nb_snapshots 0 174snapshot_offset 0x0 175incompatible_features 0x0 176compatible_features 0x0 177autoclear_features 0x0 178refcount_order 4 179header_length 72 180 181magic 0x514649fb 182version 3 183backing_file_offset 0x0 184backing_file_size 0x0 185cluster_bits 16 186size 134217728 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 0x1 196autoclear_features 0x0 197refcount_order 4 198header_length 104 199 200Header extension: 201magic 0x6803f857 202length 144 203data <binary> 204 205read 65536/65536 bytes at offset 44040192 20664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 207No errors were found on the image. 208 209=== Testing dirty lazy_refcounts=off === 210 211Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 212wrote 131072/131072 bytes at offset 0 213128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 214magic 0x514649fb 215version 3 216backing_file_offset 0x0 217backing_file_size 0x0 218cluster_bits 16 219size 67108864 220crypt_method 0 221l1_size 1 222l1_table_offset 0x30000 223refcount_table_offset 0x10000 224refcount_table_clusters 1 225nb_snapshots 0 226snapshot_offset 0x0 227incompatible_features 0x1 228compatible_features 0x1 229autoclear_features 0x0 230refcount_order 4 231header_length 104 232 233Repairing cluster 5 refcount=0 reference=1 234Repairing cluster 6 refcount=0 reference=1 235magic 0x514649fb 236version 3 237backing_file_offset 0x0 238backing_file_size 0x0 239cluster_bits 16 240size 67108864 241crypt_method 0 242l1_size 1 243l1_table_offset 0x30000 244refcount_table_offset 0x10000 245refcount_table_clusters 1 246nb_snapshots 0 247snapshot_offset 0x0 248incompatible_features 0x0 249compatible_features 0x0 250autoclear_features 0x0 251refcount_order 4 252header_length 104 253 254Header extension: 255magic 0x6803f857 256length 144 257data <binary> 258 259read 131072/131072 bytes at offset 0 260128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 261No errors were found on the image. 262 263=== Testing backing file === 264 265Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 266Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 267wrote 131072/131072 bytes at offset 0 268128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 269read 131072/131072 bytes at offset 0 270128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 271read 131072/131072 bytes at offset 0 272128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 273No errors were found on the image. 274 275=== Testing invalid configurations === 276 277Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 278Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 279qemu-img: Error while amending options: Invalid argument 280Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 281qemu-img: Error while amending options: Invalid argument 282Unknown compatibility level 0.42. 283qemu-img: Error while amending options: Invalid argument 284Unknown option 'foo' 285qemu-img: Invalid options for file format 'qcow2' 286Changing the cluster size is not supported. 287qemu-img: Error while amending options: Operation not supported 288Changing the encryption flag is not supported. 289qemu-img: Error while amending options: Operation not supported 290Cannot change preallocation mode. 291qemu-img: Error while amending options: Operation not supported 292 293=== Testing correct handling of unset value === 294 295Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 296Should work: 297Should not work: 298Changing the cluster size is not supported. 299qemu-img: Error while amending options: Operation not supported 300 301=== Testing zero expansion on inactive clusters === 302 303Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 304wrote 131072/131072 bytes at offset 0 305128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 306wrote 131072/131072 bytes at offset 0 307128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 308No errors were found on the image. 309read 131072/131072 bytes at offset 0 310128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 311No errors were found on the image. 312read 131072/131072 bytes at offset 0 313128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 314 315=== Testing zero expansion on shared L2 table === 316 317Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 318wrote 131072/131072 bytes at offset 0 319128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 320No errors were found on the image. 321read 131072/131072 bytes at offset 0 322128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 323No errors were found on the image. 324read 131072/131072 bytes at offset 0 325128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 326 327=== Testing zero expansion on backed image === 328 329Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 330wrote 131072/131072 bytes at offset 0 331128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 332Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file='TEST_DIR/t.IMGFMT.base' 333read 131072/131072 bytes at offset 0 334128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 335wrote 65536/65536 bytes at offset 0 33664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 337No errors were found on the image. 338read 65536/65536 bytes at offset 0 33964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 340read 65536/65536 bytes at offset 65536 34164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 342 343=== Testing zero expansion on backed inactive clusters === 344 345Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 346wrote 131072/131072 bytes at offset 0 347128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 348Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file='TEST_DIR/t.IMGFMT.base' 349wrote 65536/65536 bytes at offset 0 35064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 351wrote 131072/131072 bytes at offset 0 352128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 353No errors were found on the image. 354read 131072/131072 bytes at offset 0 355128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 356No errors were found on the image. 357read 65536/65536 bytes at offset 0 35864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 359read 65536/65536 bytes at offset 65536 36064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 361 362=== Testing zero expansion on backed image with shared L2 table === 363 364Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 365wrote 131072/131072 bytes at offset 0 366128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 367Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file='TEST_DIR/t.IMGFMT.base' 368wrote 131072/131072 bytes at offset 0 369128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 370No errors were found on the image. 371read 131072/131072 bytes at offset 0 372128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 373No errors were found on the image. 374read 131072/131072 bytes at offset 0 375128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 376 377=== Testing preallocated zero expansion on full image === 378 379Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 380wrote 67108864/67108864 bytes at offset 0 38164 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 382wrote 67108864/67108864 bytes at offset 0 38364 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 384No errors were found on the image. 385read 67108864/67108864 bytes at offset 0 38664 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 387*** done 388