1 QA output created by 061
3 === Testing version downgrade with zero expansion ===
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)
10 backing_file_offset 0x0
16 l1_table_offset 0x30000
17 refcount_table_offset 0x10000
18 refcount_table_clusters 1
21 incompatible_features []
22 compatible_features [0]
28 magic 0x6803f857 (Feature table)
34 backing_file_offset 0x0
40 l1_table_offset 0x30000
41 refcount_table_offset 0x10000
42 refcount_table_clusters 1
45 incompatible_features []
46 compatible_features []
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.
55 === Testing version downgrade with zero expansion and 4K cache entries ===
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)
68 backing_file_offset 0x0
74 l1_table_offset 0x30000
75 refcount_table_offset 0x10000
76 refcount_table_clusters 1
79 incompatible_features []
80 compatible_features [0]
86 magic 0x6803f857 (Feature table)
92 backing_file_offset 0x0
98 l1_table_offset 0x30000
99 refcount_table_offset 0x10000
100 refcount_table_clusters 1
103 incompatible_features []
104 compatible_features []
105 autoclear_features []
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.
116 === Testing dirty version downgrade ===
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 "$@" )
124 backing_file_offset 0x0
125 backing_file_size 0x0
130 l1_table_offset 0x30000
131 refcount_table_offset 0x10000
132 refcount_table_clusters 1
135 incompatible_features [0]
136 compatible_features [0]
137 autoclear_features []
142 magic 0x6803f857 (Feature table)
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
153 backing_file_offset 0x0
154 backing_file_size 0x0
159 l1_table_offset 0x30000
160 refcount_table_offset 0x80000
161 refcount_table_clusters 1
164 incompatible_features []
165 compatible_features []
166 autoclear_features []
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.
174 === Testing version downgrade with unknown compat/autoclear flags ===
176 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
179 backing_file_offset 0x0
180 backing_file_size 0x0
185 l1_table_offset 0x30000
186 refcount_table_offset 0x10000
187 refcount_table_clusters 1
190 incompatible_features []
191 compatible_features [42]
192 autoclear_features [42]
197 magic 0x6803f857 (Feature table)
203 backing_file_offset 0x0
204 backing_file_size 0x0
209 l1_table_offset 0x30000
210 refcount_table_offset 0x10000
211 refcount_table_clusters 1
214 incompatible_features []
215 compatible_features []
216 autoclear_features []
220 No errors were found on the image.
222 === Testing version upgrade and resize ===
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)
229 backing_file_offset 0x0
230 backing_file_size 0x0
235 l1_table_offset 0x30000
236 refcount_table_offset 0x10000
237 refcount_table_clusters 1
240 incompatible_features []
241 compatible_features []
242 autoclear_features []
248 backing_file_offset 0x0
249 backing_file_size 0x0
254 l1_table_offset 0x30000
255 refcount_table_offset 0x10000
256 refcount_table_clusters 1
259 incompatible_features []
260 compatible_features [0]
261 autoclear_features []
266 magic 0x6803f857 (Feature table)
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.
274 === Testing resize with snapshots ===
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
290 qemu-img: Internal snapshots prevent downgrade of image
300 No errors were found on the image.
302 === Testing dirty lazy_refcounts=off ===
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 "$@" )
310 backing_file_offset 0x0
311 backing_file_size 0x0
316 l1_table_offset 0x30000
317 refcount_table_offset 0x10000
318 refcount_table_clusters 1
321 incompatible_features [0]
322 compatible_features [0]
323 autoclear_features []
328 magic 0x6803f857 (Feature table)
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
339 backing_file_offset 0x0
340 backing_file_size 0x0
345 l1_table_offset 0x30000
346 refcount_table_offset 0x80000
347 refcount_table_clusters 1
350 incompatible_features []
351 compatible_features []
352 autoclear_features []
357 magic 0x6803f857 (Feature table)
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.
365 === Testing backing file ===
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.
379 === Testing invalid configurations ===
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
393 === Testing correct handling of unset value ===
395 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
398 qemu-img: Invalid parameter 'cluster_size'
399 This option is only supported for image creation
401 === Testing zero expansion on inactive clusters ===
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)
415 === Testing zero expansion on shared L2 table ===
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)
427 === Testing zero expansion on backed image ===
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)
443 === Testing zero expansion on backed inactive clusters ===
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)
462 === Testing zero expansion on backed image with shared L2 table ===
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)
477 === Testing preallocated zero expansion on full image ===
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)
488 === Testing progress report without snapshot ===
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%)
\r (12.50/100%)
\r (25.00/100%)
\r (37.50/100%)
\r (50.00/100%)
\r (62.50/100%)
\r (75.00/100%)
\r (87.50/100%)
\r (100.00/100%)
\r (100.00/100%)
501 No errors were found on the image.
503 === Testing progress report with snapshot ===
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%)
\r (6.25/100%)
\r (12.50/100%)
\r (18.75/100%)
\r (25.00/100%)
\r (31.25/100%)
\r (37.50/100%)
\r (43.75/100%)
\r (50.00/100%)
\r (56.25/100%)
\r (62.50/100%)
\r (68.75/100%)
\r (75.00/100%)
\r (81.25/100%)
\r (87.50/100%)
\r (93.75/100%)
\r (100.00/100%)
\r (100.00/100%)
516 No errors were found on the image.
518 === Testing version downgrade with external data file ===
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
524 virtual size: 64 MiB (67108864 bytes)
526 Format specific information:
528 compression type: zlib
529 lazy refcounts: false
531 data file: TEST_DIR/t.IMGFMT.data
535 No errors were found on the image.
537 === Testing version downgrade with extended L2 entries ===
539 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
540 qemu-img: Cannot downgrade an image with incompatible features 0x10 set
542 === Try changing the external data file ===
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
547 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
548 qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Could not open 'foo': No such file or directory
549 image: TEST_DIR/t.IMGFMT
551 virtual size: 64 MiB (67108864 bytes)
553 Format specific information:
555 compression type: zlib
556 lazy refcounts: false
563 qemu-img: Could not open 'TEST_DIR/t.IMGFMT': 'data-file' is required for this image
564 image: TEST_DIR/t.IMGFMT
566 virtual size: 64 MiB (67108864 bytes)
568 Format specific information:
570 compression type: zlib
571 lazy refcounts: false
577 === Clearing and setting data-file-raw ===
579 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on
580 image: TEST_DIR/t.IMGFMT
582 virtual size: 64 MiB (67108864 bytes)
584 Format specific information:
586 compression type: zlib
587 lazy refcounts: false
589 data file: TEST_DIR/t.IMGFMT.data
593 No errors were found on the image.
594 image: TEST_DIR/t.IMGFMT
596 virtual size: 64 MiB (67108864 bytes)
598 Format specific information:
600 compression type: zlib
601 lazy refcounts: false
603 data file: TEST_DIR/t.IMGFMT.data
607 No errors were found on the image.
608 qemu-img: data-file-raw cannot be set on existing images
609 image: TEST_DIR/t.IMGFMT
611 virtual size: 64 MiB (67108864 bytes)
613 Format specific information:
615 compression type: zlib
616 lazy refcounts: false
618 data file: TEST_DIR/t.IMGFMT.data
622 No errors were found on the image.