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: warning: Deprecated use of amend to alter the backing file; use qemu-img rebase instead
374 read 131072/131072 bytes at offset 0
375 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
376 No errors were found on the image.
378 === Testing invalid configurations ===
380 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
381 qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater)
382 qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater)
383 qemu-img: Unknown compatibility level 0.42
384 qemu-img: Invalid parameter 'foo'
385 qemu-img: Invalid parameter 'cluster_size'
386 This option is only supported for image creation
387 qemu-img: Invalid parameter 'encryption'
388 This option is only supported for image creation
389 qemu-img: Invalid parameter 'preallocation'
390 This option is only supported for image creation
392 === Testing correct handling of unset value ===
394 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
397 qemu-img: Invalid parameter 'cluster_size'
398 This option is only supported for image creation
400 === Testing zero expansion on inactive clusters ===
402 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
403 wrote 131072/131072 bytes at offset 0
404 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
405 wrote 131072/131072 bytes at offset 0
406 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
407 No errors were found on the image.
408 read 131072/131072 bytes at offset 0
409 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
410 No errors were found on the image.
411 read 131072/131072 bytes at offset 0
412 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
414 === Testing zero expansion on shared L2 table ===
416 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
417 wrote 131072/131072 bytes at offset 0
418 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
419 No errors were found on the image.
420 read 131072/131072 bytes at offset 0
421 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
422 No errors were found on the image.
423 read 131072/131072 bytes at offset 0
424 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
426 === Testing zero expansion on backed image ===
428 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
429 wrote 131072/131072 bytes at offset 0
430 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
431 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
432 read 131072/131072 bytes at offset 0
433 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
434 wrote 65536/65536 bytes at offset 0
435 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
436 No errors were found on the image.
437 read 65536/65536 bytes at offset 0
438 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
439 read 65536/65536 bytes at offset 65536
440 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
442 === Testing zero expansion on backed inactive clusters ===
444 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
445 wrote 131072/131072 bytes at offset 0
446 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
447 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
448 wrote 65536/65536 bytes at offset 0
449 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
450 wrote 131072/131072 bytes at offset 0
451 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
452 No errors were found on the image.
453 read 131072/131072 bytes at offset 0
454 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
455 No errors were found on the image.
456 read 65536/65536 bytes at offset 0
457 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
458 read 65536/65536 bytes at offset 65536
459 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
461 === Testing zero expansion on backed image with shared L2 table ===
463 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
464 wrote 131072/131072 bytes at offset 0
465 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
466 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
467 wrote 131072/131072 bytes at offset 0
468 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
469 No errors were found on the image.
470 read 131072/131072 bytes at offset 0
471 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
472 No errors were found on the image.
473 read 131072/131072 bytes at offset 0
474 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
476 === Testing preallocated zero expansion on full image ===
478 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
479 wrote 67108864/67108864 bytes at offset 0
480 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
481 wrote 67108864/67108864 bytes at offset 0
482 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
483 No errors were found on the image.
484 read 67108864/67108864 bytes at offset 0
485 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
487 === Testing progress report without snapshot ===
489 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296
490 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
491 wrote 65536/65536 bytes at offset 0
492 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
493 wrote 65536/65536 bytes at offset 1073741824
494 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
495 wrote 65536/65536 bytes at offset 2147483648
496 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
497 wrote 65536/65536 bytes at offset 3221225472
498 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
499 (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%)
500 No errors were found on the image.
502 === Testing progress report with snapshot ===
504 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296
505 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
506 wrote 65536/65536 bytes at offset 0
507 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
508 wrote 65536/65536 bytes at offset 1073741824
509 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
510 wrote 65536/65536 bytes at offset 2147483648
511 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
512 wrote 65536/65536 bytes at offset 3221225472
513 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
514 (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%)
515 No errors were found on the image.
517 === Testing version downgrade with external data file ===
519 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
520 qemu-img: Cannot downgrade an image with a data file
521 image: TEST_DIR/t.IMGFMT
523 virtual size: 64 MiB (67108864 bytes)
525 Format specific information:
527 compression type: zlib
528 lazy refcounts: false
530 data file: TEST_DIR/t.IMGFMT.data
534 No errors were found on the image.
536 === Testing version downgrade with extended L2 entries ===
538 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
539 qemu-img: Cannot downgrade an image with incompatible features 0x10 set
541 === Try changing the external data file ===
543 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
544 qemu-img: data-file can only be set for images that use an external data file
546 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
547 qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Could not open 'foo': No such file or directory
548 image: TEST_DIR/t.IMGFMT
550 virtual size: 64 MiB (67108864 bytes)
552 Format specific information:
554 compression type: zlib
555 lazy refcounts: false
562 qemu-img: Could not open 'TEST_DIR/t.IMGFMT': 'data-file' is required for this image
563 image: TEST_DIR/t.IMGFMT
565 virtual size: 64 MiB (67108864 bytes)
567 Format specific information:
569 compression type: zlib
570 lazy refcounts: false
576 === Clearing and setting data-file-raw ===
578 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on
579 image: TEST_DIR/t.IMGFMT
581 virtual size: 64 MiB (67108864 bytes)
583 Format specific information:
585 compression type: zlib
586 lazy refcounts: false
588 data file: TEST_DIR/t.IMGFMT.data
592 No errors were found on the image.
593 image: TEST_DIR/t.IMGFMT
595 virtual size: 64 MiB (67108864 bytes)
597 Format specific information:
599 compression type: zlib
600 lazy refcounts: false
602 data file: TEST_DIR/t.IMGFMT.data
606 No errors were found on the image.
607 qemu-img: data-file-raw cannot be set on existing images
608 image: TEST_DIR/t.IMGFMT
610 virtual size: 64 MiB (67108864 bytes)
612 Format specific information:
614 compression type: zlib
615 lazy refcounts: false
617 data file: TEST_DIR/t.IMGFMT.data
621 No errors were found on the image.