| 1 | QA output created by 061 |
| 2 | |
| 3 | === Testing version downgrade with zero expansion === |
| 4 | |
| 5 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 6 | wrote 131072/131072 bytes at offset 0 |
| 7 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 8 | magic 0x514649fb |
| 9 | version 3 |
| 10 | backing_file_offset 0x0 |
| 11 | backing_file_size 0x0 |
| 12 | cluster_bits 16 |
| 13 | size 67108864 |
| 14 | crypt_method 0 |
| 15 | l1_size 1 |
| 16 | l1_table_offset 0x30000 |
| 17 | refcount_table_offset 0x10000 |
| 18 | refcount_table_clusters 1 |
| 19 | nb_snapshots 0 |
| 20 | snapshot_offset 0x0 |
| 21 | incompatible_features [] |
| 22 | compatible_features [0] |
| 23 | autoclear_features [] |
| 24 | refcount_order 4 |
| 25 | header_length 112 |
| 26 | |
| 27 | Header extension: |
| 28 | magic 0x6803f857 (Feature table) |
| 29 | length 384 |
| 30 | data <binary> |
| 31 | |
| 32 | magic 0x514649fb |
| 33 | version 2 |
| 34 | backing_file_offset 0x0 |
| 35 | backing_file_size 0x0 |
| 36 | cluster_bits 16 |
| 37 | size 67108864 |
| 38 | crypt_method 0 |
| 39 | l1_size 1 |
| 40 | l1_table_offset 0x30000 |
| 41 | refcount_table_offset 0x10000 |
| 42 | refcount_table_clusters 1 |
| 43 | nb_snapshots 0 |
| 44 | snapshot_offset 0x0 |
| 45 | incompatible_features [] |
| 46 | compatible_features [] |
| 47 | autoclear_features [] |
| 48 | refcount_order 4 |
| 49 | header_length 72 |
| 50 | |
| 51 | read 131072/131072 bytes at offset 0 |
| 52 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 53 | No errors were found on the image. |
| 54 | |
| 55 | === Testing version downgrade with zero expansion and 4K cache entries === |
| 56 | |
| 57 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 58 | wrote 131072/131072 bytes at offset 0 |
| 59 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 60 | wrote 131072/131072 bytes at offset 33554432 |
| 61 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 62 | 128 KiB (0x20000) bytes allocated at offset 0 bytes (0x0) |
| 63 | 31.875 MiB (0x1fe0000) bytes not allocated at offset 128 KiB (0x20000) |
| 64 | 128 KiB (0x20000) bytes allocated at offset 32 MiB (0x2000000) |
| 65 | 31.875 MiB (0x1fe0000) bytes not allocated at offset 32.125 MiB (0x2020000) |
| 66 | magic 0x514649fb |
| 67 | version 3 |
| 68 | backing_file_offset 0x0 |
| 69 | backing_file_size 0x0 |
| 70 | cluster_bits 16 |
| 71 | size 67108864 |
| 72 | crypt_method 0 |
| 73 | l1_size 1 |
| 74 | l1_table_offset 0x30000 |
| 75 | refcount_table_offset 0x10000 |
| 76 | refcount_table_clusters 1 |
| 77 | nb_snapshots 0 |
| 78 | snapshot_offset 0x0 |
| 79 | incompatible_features [] |
| 80 | compatible_features [0] |
| 81 | autoclear_features [] |
| 82 | refcount_order 4 |
| 83 | header_length 112 |
| 84 | |
| 85 | Header extension: |
| 86 | magic 0x6803f857 (Feature table) |
| 87 | length 384 |
| 88 | data <binary> |
| 89 | |
| 90 | magic 0x514649fb |
| 91 | version 2 |
| 92 | backing_file_offset 0x0 |
| 93 | backing_file_size 0x0 |
| 94 | cluster_bits 16 |
| 95 | size 67108864 |
| 96 | crypt_method 0 |
| 97 | l1_size 1 |
| 98 | l1_table_offset 0x30000 |
| 99 | refcount_table_offset 0x10000 |
| 100 | refcount_table_clusters 1 |
| 101 | nb_snapshots 0 |
| 102 | snapshot_offset 0x0 |
| 103 | incompatible_features [] |
| 104 | compatible_features [] |
| 105 | autoclear_features [] |
| 106 | refcount_order 4 |
| 107 | header_length 72 |
| 108 | |
| 109 | read 131072/131072 bytes at offset 0 |
| 110 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 111 | read 131072/131072 bytes at offset 33554432 |
| 112 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 113 | 64 MiB (0x4000000) bytes not allocated at offset 0 bytes (0x0) |
| 114 | No errors were found on the image. |
| 115 | |
| 116 | === Testing dirty version downgrade === |
| 117 | |
| 118 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 119 | wrote 131072/131072 bytes at offset 0 |
| 120 | 128 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 "$@" ) |
| 122 | magic 0x514649fb |
| 123 | version 3 |
| 124 | backing_file_offset 0x0 |
| 125 | backing_file_size 0x0 |
| 126 | cluster_bits 16 |
| 127 | size 67108864 |
| 128 | crypt_method 0 |
| 129 | l1_size 1 |
| 130 | l1_table_offset 0x30000 |
| 131 | refcount_table_offset 0x10000 |
| 132 | refcount_table_clusters 1 |
| 133 | nb_snapshots 0 |
| 134 | snapshot_offset 0x0 |
| 135 | incompatible_features [0] |
| 136 | compatible_features [0] |
| 137 | autoclear_features [] |
| 138 | refcount_order 4 |
| 139 | header_length 112 |
| 140 | |
| 141 | Header extension: |
| 142 | magic 0x6803f857 (Feature table) |
| 143 | length 384 |
| 144 | data <binary> |
| 145 | |
| 146 | ERROR cluster 5 refcount=0 reference=1 |
| 147 | ERROR cluster 6 refcount=0 reference=1 |
| 148 | Rebuilding refcount structure |
| 149 | Repairing cluster 1 refcount=1 reference=0 |
| 150 | Repairing cluster 2 refcount=1 reference=0 |
| 151 | magic 0x514649fb |
| 152 | version 2 |
| 153 | backing_file_offset 0x0 |
| 154 | backing_file_size 0x0 |
| 155 | cluster_bits 16 |
| 156 | size 67108864 |
| 157 | crypt_method 0 |
| 158 | l1_size 1 |
| 159 | l1_table_offset 0x30000 |
| 160 | refcount_table_offset 0x80000 |
| 161 | refcount_table_clusters 1 |
| 162 | nb_snapshots 0 |
| 163 | snapshot_offset 0x0 |
| 164 | incompatible_features [] |
| 165 | compatible_features [] |
| 166 | autoclear_features [] |
| 167 | refcount_order 4 |
| 168 | header_length 72 |
| 169 | |
| 170 | read 131072/131072 bytes at offset 0 |
| 171 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 172 | No errors were found on the image. |
| 173 | |
| 174 | === Testing version downgrade with unknown compat/autoclear flags === |
| 175 | |
| 176 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 177 | magic 0x514649fb |
| 178 | version 3 |
| 179 | backing_file_offset 0x0 |
| 180 | backing_file_size 0x0 |
| 181 | cluster_bits 16 |
| 182 | size 67108864 |
| 183 | crypt_method 0 |
| 184 | l1_size 1 |
| 185 | l1_table_offset 0x30000 |
| 186 | refcount_table_offset 0x10000 |
| 187 | refcount_table_clusters 1 |
| 188 | nb_snapshots 0 |
| 189 | snapshot_offset 0x0 |
| 190 | incompatible_features [] |
| 191 | compatible_features [42] |
| 192 | autoclear_features [42] |
| 193 | refcount_order 4 |
| 194 | header_length 112 |
| 195 | |
| 196 | Header extension: |
| 197 | magic 0x6803f857 (Feature table) |
| 198 | length 384 |
| 199 | data <binary> |
| 200 | |
| 201 | magic 0x514649fb |
| 202 | version 2 |
| 203 | backing_file_offset 0x0 |
| 204 | backing_file_size 0x0 |
| 205 | cluster_bits 16 |
| 206 | size 67108864 |
| 207 | crypt_method 0 |
| 208 | l1_size 1 |
| 209 | l1_table_offset 0x30000 |
| 210 | refcount_table_offset 0x10000 |
| 211 | refcount_table_clusters 1 |
| 212 | nb_snapshots 0 |
| 213 | snapshot_offset 0x0 |
| 214 | incompatible_features [] |
| 215 | compatible_features [] |
| 216 | autoclear_features [] |
| 217 | refcount_order 4 |
| 218 | header_length 72 |
| 219 | |
| 220 | No errors were found on the image. |
| 221 | |
| 222 | === Testing version upgrade and resize === |
| 223 | |
| 224 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 225 | wrote 65536/65536 bytes at offset 44040192 |
| 226 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 227 | magic 0x514649fb |
| 228 | version 2 |
| 229 | backing_file_offset 0x0 |
| 230 | backing_file_size 0x0 |
| 231 | cluster_bits 16 |
| 232 | size 67108864 |
| 233 | crypt_method 0 |
| 234 | l1_size 1 |
| 235 | l1_table_offset 0x30000 |
| 236 | refcount_table_offset 0x10000 |
| 237 | refcount_table_clusters 1 |
| 238 | nb_snapshots 0 |
| 239 | snapshot_offset 0x0 |
| 240 | incompatible_features [] |
| 241 | compatible_features [] |
| 242 | autoclear_features [] |
| 243 | refcount_order 4 |
| 244 | header_length 72 |
| 245 | |
| 246 | magic 0x514649fb |
| 247 | version 3 |
| 248 | backing_file_offset 0x0 |
| 249 | backing_file_size 0x0 |
| 250 | cluster_bits 16 |
| 251 | size 134217728 |
| 252 | crypt_method 0 |
| 253 | l1_size 1 |
| 254 | l1_table_offset 0x30000 |
| 255 | refcount_table_offset 0x10000 |
| 256 | refcount_table_clusters 1 |
| 257 | nb_snapshots 0 |
| 258 | snapshot_offset 0x0 |
| 259 | incompatible_features [] |
| 260 | compatible_features [0] |
| 261 | autoclear_features [] |
| 262 | refcount_order 4 |
| 263 | header_length 112 |
| 264 | |
| 265 | Header extension: |
| 266 | magic 0x6803f857 (Feature table) |
| 267 | length 384 |
| 268 | data <binary> |
| 269 | |
| 270 | read 65536/65536 bytes at offset 44040192 |
| 271 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 272 | No errors were found on the image. |
| 273 | |
| 274 | === Testing resize with snapshots === |
| 275 | |
| 276 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 |
| 277 | wrote 65536/65536 bytes at offset 25165824 |
| 278 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 279 | qemu-img: Can't resize a v2 image which has snapshots |
| 280 | version 2 |
| 281 | size 33554432 |
| 282 | nb_snapshots 1 |
| 283 | version 3 |
| 284 | size 134217728 |
| 285 | nb_snapshots 1 |
| 286 | Image resized. |
| 287 | version 3 |
| 288 | size 67108864 |
| 289 | nb_snapshots 2 |
| 290 | qemu-img: Internal snapshots prevent downgrade of image |
| 291 | version 3 |
| 292 | size 33554432 |
| 293 | nb_snapshots 2 |
| 294 | version 3 |
| 295 | size 134217728 |
| 296 | nb_snapshots 2 |
| 297 | version 2 |
| 298 | size 33554432 |
| 299 | nb_snapshots 1 |
| 300 | No errors were found on the image. |
| 301 | |
| 302 | === Testing dirty lazy_refcounts=off === |
| 303 | |
| 304 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 305 | wrote 131072/131072 bytes at offset 0 |
| 306 | 128 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 "$@" ) |
| 308 | magic 0x514649fb |
| 309 | version 3 |
| 310 | backing_file_offset 0x0 |
| 311 | backing_file_size 0x0 |
| 312 | cluster_bits 16 |
| 313 | size 67108864 |
| 314 | crypt_method 0 |
| 315 | l1_size 1 |
| 316 | l1_table_offset 0x30000 |
| 317 | refcount_table_offset 0x10000 |
| 318 | refcount_table_clusters 1 |
| 319 | nb_snapshots 0 |
| 320 | snapshot_offset 0x0 |
| 321 | incompatible_features [0] |
| 322 | compatible_features [0] |
| 323 | autoclear_features [] |
| 324 | refcount_order 4 |
| 325 | header_length 112 |
| 326 | |
| 327 | Header extension: |
| 328 | magic 0x6803f857 (Feature table) |
| 329 | length 384 |
| 330 | data <binary> |
| 331 | |
| 332 | ERROR cluster 5 refcount=0 reference=1 |
| 333 | ERROR cluster 6 refcount=0 reference=1 |
| 334 | Rebuilding refcount structure |
| 335 | Repairing cluster 1 refcount=1 reference=0 |
| 336 | Repairing cluster 2 refcount=1 reference=0 |
| 337 | magic 0x514649fb |
| 338 | version 3 |
| 339 | backing_file_offset 0x0 |
| 340 | backing_file_size 0x0 |
| 341 | cluster_bits 16 |
| 342 | size 67108864 |
| 343 | crypt_method 0 |
| 344 | l1_size 1 |
| 345 | l1_table_offset 0x30000 |
| 346 | refcount_table_offset 0x80000 |
| 347 | refcount_table_clusters 1 |
| 348 | nb_snapshots 0 |
| 349 | snapshot_offset 0x0 |
| 350 | incompatible_features [] |
| 351 | compatible_features [] |
| 352 | autoclear_features [] |
| 353 | refcount_order 4 |
| 354 | header_length 112 |
| 355 | |
| 356 | Header extension: |
| 357 | magic 0x6803f857 (Feature table) |
| 358 | length 384 |
| 359 | data <binary> |
| 360 | |
| 361 | read 131072/131072 bytes at offset 0 |
| 362 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 363 | No errors were found on the image. |
| 364 | |
| 365 | === Testing backing file === |
| 366 | |
| 367 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 368 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 |
| 369 | wrote 131072/131072 bytes at offset 0 |
| 370 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 371 | read 131072/131072 bytes at offset 0 |
| 372 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 373 | qemu-img: Cannot amend the backing file |
| 374 | You can use 'qemu-img rebase' instead. |
| 375 | read 131072/131072 bytes at offset 0 |
| 376 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 377 | No errors were found on the image. |
| 378 | |
| 379 | === Testing invalid configurations === |
| 380 | |
| 381 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 382 | qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) |
| 383 | qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) |
| 384 | qemu-img: Unknown compatibility level 0.42 |
| 385 | qemu-img: Invalid parameter 'foo' |
| 386 | qemu-img: Invalid parameter 'cluster_size' |
| 387 | This option is only supported for image creation |
| 388 | qemu-img: Invalid parameter 'encryption' |
| 389 | This option is only supported for image creation |
| 390 | qemu-img: Invalid parameter 'preallocation' |
| 391 | This option is only supported for image creation |
| 392 | |
| 393 | === Testing correct handling of unset value === |
| 394 | |
| 395 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 396 | Should work: |
| 397 | Should not work: |
| 398 | qemu-img: Invalid parameter 'cluster_size' |
| 399 | This option is only supported for image creation |
| 400 | |
| 401 | === Testing zero expansion on inactive clusters === |
| 402 | |
| 403 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 404 | wrote 131072/131072 bytes at offset 0 |
| 405 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 406 | wrote 131072/131072 bytes at offset 0 |
| 407 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 408 | No errors were found on the image. |
| 409 | read 131072/131072 bytes at offset 0 |
| 410 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 411 | No errors were found on the image. |
| 412 | read 131072/131072 bytes at offset 0 |
| 413 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 414 | |
| 415 | === Testing zero expansion on shared L2 table === |
| 416 | |
| 417 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 418 | wrote 131072/131072 bytes at offset 0 |
| 419 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 420 | No errors were found on the image. |
| 421 | read 131072/131072 bytes at offset 0 |
| 422 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 423 | No errors were found on the image. |
| 424 | read 131072/131072 bytes at offset 0 |
| 425 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 426 | |
| 427 | === Testing zero expansion on backed image === |
| 428 | |
| 429 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 |
| 430 | wrote 131072/131072 bytes at offset 0 |
| 431 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 432 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT |
| 433 | read 131072/131072 bytes at offset 0 |
| 434 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 435 | wrote 65536/65536 bytes at offset 0 |
| 436 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 437 | No errors were found on the image. |
| 438 | read 65536/65536 bytes at offset 0 |
| 439 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 440 | read 65536/65536 bytes at offset 65536 |
| 441 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 442 | |
| 443 | === Testing zero expansion on backed inactive clusters === |
| 444 | |
| 445 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 |
| 446 | wrote 131072/131072 bytes at offset 0 |
| 447 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 448 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT |
| 449 | wrote 65536/65536 bytes at offset 0 |
| 450 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 451 | wrote 131072/131072 bytes at offset 0 |
| 452 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 453 | No errors were found on the image. |
| 454 | read 131072/131072 bytes at offset 0 |
| 455 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 456 | No errors were found on the image. |
| 457 | read 65536/65536 bytes at offset 0 |
| 458 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 459 | read 65536/65536 bytes at offset 65536 |
| 460 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 461 | |
| 462 | === Testing zero expansion on backed image with shared L2 table === |
| 463 | |
| 464 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 |
| 465 | wrote 131072/131072 bytes at offset 0 |
| 466 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 467 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT |
| 468 | wrote 131072/131072 bytes at offset 0 |
| 469 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 470 | No errors were found on the image. |
| 471 | read 131072/131072 bytes at offset 0 |
| 472 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 473 | No errors were found on the image. |
| 474 | read 131072/131072 bytes at offset 0 |
| 475 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 476 | |
| 477 | === Testing preallocated zero expansion on full image === |
| 478 | |
| 479 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 480 | wrote 67108864/67108864 bytes at offset 0 |
| 481 | 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 482 | wrote 67108864/67108864 bytes at offset 0 |
| 483 | 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 484 | No errors were found on the image. |
| 485 | read 67108864/67108864 bytes at offset 0 |
| 486 | 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 487 | |
| 488 | === Testing progress report without snapshot === |
| 489 | |
| 490 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 |
| 491 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT |
| 492 | wrote 65536/65536 bytes at offset 0 |
| 493 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 494 | wrote 65536/65536 bytes at offset 1073741824 |
| 495 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 496 | wrote 65536/65536 bytes at offset 2147483648 |
| 497 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 498 | wrote 65536/65536 bytes at offset 3221225472 |
| 499 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 500 | (0.00/100%) (12.50/100%) (25.00/100%) (37.50/100%) (50.00/100%) (62.50/100%) (75.00/100%) (87.50/100%) (100.00/100%) (100.00/100%) |
| 501 | No errors were found on the image. |
| 502 | |
| 503 | === Testing progress report with snapshot === |
| 504 | |
| 505 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 |
| 506 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT |
| 507 | wrote 65536/65536 bytes at offset 0 |
| 508 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 509 | wrote 65536/65536 bytes at offset 1073741824 |
| 510 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 511 | wrote 65536/65536 bytes at offset 2147483648 |
| 512 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 513 | wrote 65536/65536 bytes at offset 3221225472 |
| 514 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 515 | (0.00/100%) (6.25/100%) (12.50/100%) (18.75/100%) (25.00/100%) (31.25/100%) (37.50/100%) (43.75/100%) (50.00/100%) (56.25/100%) (62.50/100%) (68.75/100%) (75.00/100%) (81.25/100%) (87.50/100%) (93.75/100%) (100.00/100%) (100.00/100%) |
| 516 | No errors were found on the image. |
| 517 | |
| 518 | === Testing version downgrade with external data file === |
| 519 | |
| 520 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data |
| 521 | qemu-img: Cannot downgrade an image with a data file |
| 522 | image: TEST_DIR/t.IMGFMT |
| 523 | file format: IMGFMT |
| 524 | virtual size: 64 MiB (67108864 bytes) |
| 525 | cluster_size: 65536 |
| 526 | Format specific information: |
| 527 | compat: 1.1 |
| 528 | compression type: COMPRESSION_TYPE |
| 529 | lazy refcounts: false |
| 530 | refcount bits: 16 |
| 531 | data file: TEST_DIR/t.IMGFMT.data |
| 532 | data file raw: false |
| 533 | corrupt: false |
| 534 | extended l2: false |
| 535 | No errors were found on the image. |
| 536 | |
| 537 | === Testing version downgrade with extended L2 entries === |
| 538 | |
| 539 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 540 | qemu-img: Cannot downgrade an image with incompatible features 0x10 set |
| 541 | |
| 542 | === Try changing the external data file === |
| 543 | |
| 544 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 545 | qemu-img: data-file can only be set for images that use an external data file |
| 546 | |
| 547 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data |
| 548 | qemu-io: can't open device TEST_DIR/t.IMGFMT: Could not open 'foo': No such file or directory |
| 549 | read 4096/4096 bytes at offset 0 |
| 550 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 551 | image: TEST_DIR/t.IMGFMT |
| 552 | file format: IMGFMT |
| 553 | virtual size: 64 MiB (67108864 bytes) |
| 554 | cluster_size: 65536 |
| 555 | Format specific information: |
| 556 | compat: 1.1 |
| 557 | compression type: COMPRESSION_TYPE |
| 558 | lazy refcounts: false |
| 559 | refcount bits: 16 |
| 560 | data file: foo |
| 561 | data file raw: false |
| 562 | corrupt: false |
| 563 | extended l2: false |
| 564 | |
| 565 | qemu-io: can't open device TEST_DIR/t.IMGFMT: 'data-file' is required for this image |
| 566 | read 4096/4096 bytes at offset 0 |
| 567 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 568 | image: TEST_DIR/t.IMGFMT |
| 569 | file format: IMGFMT |
| 570 | virtual size: 64 MiB (67108864 bytes) |
| 571 | cluster_size: 65536 |
| 572 | Format specific information: |
| 573 | compat: 1.1 |
| 574 | compression type: COMPRESSION_TYPE |
| 575 | lazy refcounts: false |
| 576 | refcount bits: 16 |
| 577 | data file raw: false |
| 578 | corrupt: false |
| 579 | extended l2: false |
| 580 | |
| 581 | === Clearing and setting data-file-raw === |
| 582 | |
| 583 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on |
| 584 | image: TEST_DIR/t.IMGFMT |
| 585 | file format: IMGFMT |
| 586 | virtual size: 64 MiB (67108864 bytes) |
| 587 | cluster_size: 65536 |
| 588 | Format specific information: |
| 589 | compat: 1.1 |
| 590 | compression type: COMPRESSION_TYPE |
| 591 | lazy refcounts: false |
| 592 | refcount bits: 16 |
| 593 | data file: TEST_DIR/t.IMGFMT.data |
| 594 | data file raw: true |
| 595 | corrupt: false |
| 596 | extended l2: false |
| 597 | No errors were found on the image. |
| 598 | image: TEST_DIR/t.IMGFMT |
| 599 | file format: IMGFMT |
| 600 | virtual size: 64 MiB (67108864 bytes) |
| 601 | cluster_size: 65536 |
| 602 | Format specific information: |
| 603 | compat: 1.1 |
| 604 | compression type: COMPRESSION_TYPE |
| 605 | lazy refcounts: false |
| 606 | refcount bits: 16 |
| 607 | data file: TEST_DIR/t.IMGFMT.data |
| 608 | data file raw: false |
| 609 | corrupt: false |
| 610 | extended l2: false |
| 611 | No errors were found on the image. |
| 612 | qemu-img: data-file-raw cannot be set on existing images |
| 613 | image: TEST_DIR/t.IMGFMT |
| 614 | file format: IMGFMT |
| 615 | virtual size: 64 MiB (67108864 bytes) |
| 616 | cluster_size: 65536 |
| 617 | Format specific information: |
| 618 | compat: 1.1 |
| 619 | compression type: COMPRESSION_TYPE |
| 620 | lazy refcounts: false |
| 621 | refcount bits: 16 |
| 622 | data file: TEST_DIR/t.IMGFMT.data |
| 623 | data file raw: false |
| 624 | corrupt: false |
| 625 | extended l2: false |
| 626 | No errors were found on the image. |
| 627 | *** done |