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 read 131072/131072 bytes at offset 0
374 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
375 No errors were found on the image.
377 === Testing invalid configurations ===
379 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
380 qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater)
381 qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater)
382 qemu-img: Unknown compatibility level 0.42
383 qemu-img: Invalid parameter 'foo'
384 qemu-img: Changing the cluster size is not supported
385 qemu-img: Changing the encryption flag is not supported
386 qemu-img: Cannot change preallocation mode
388 === Testing correct handling of unset value ===
390 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
393 qemu-img: Changing the cluster size is not supported
395 === Testing zero expansion on inactive clusters ===
397 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
398 wrote 131072/131072 bytes at offset 0
399 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
400 wrote 131072/131072 bytes at offset 0
401 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
402 No errors were found on the image.
403 read 131072/131072 bytes at offset 0
404 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
405 No errors were found on the image.
406 read 131072/131072 bytes at offset 0
407 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
409 === Testing zero expansion on shared L2 table ===
411 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
412 wrote 131072/131072 bytes at offset 0
413 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
414 No errors were found on the image.
415 read 131072/131072 bytes at offset 0
416 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
417 No errors were found on the image.
418 read 131072/131072 bytes at offset 0
419 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
421 === Testing zero expansion on backed image ===
423 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
424 wrote 131072/131072 bytes at offset 0
425 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
426 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base
427 read 131072/131072 bytes at offset 0
428 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
429 wrote 65536/65536 bytes at offset 0
430 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
431 No errors were found on the image.
432 read 65536/65536 bytes at offset 0
433 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
434 read 65536/65536 bytes at offset 65536
435 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
437 === Testing zero expansion on backed inactive clusters ===
439 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
440 wrote 131072/131072 bytes at offset 0
441 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
442 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base
443 wrote 65536/65536 bytes at offset 0
444 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
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 No errors were found on the image.
448 read 131072/131072 bytes at offset 0
449 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
450 No errors were found on the image.
451 read 65536/65536 bytes at offset 0
452 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
453 read 65536/65536 bytes at offset 65536
454 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
456 === Testing zero expansion on backed image with shared L2 table ===
458 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
459 wrote 131072/131072 bytes at offset 0
460 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
461 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base
462 wrote 131072/131072 bytes at offset 0
463 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
464 No errors were found on the image.
465 read 131072/131072 bytes at offset 0
466 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
467 No errors were found on the image.
468 read 131072/131072 bytes at offset 0
469 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
471 === Testing preallocated zero expansion on full image ===
473 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
474 wrote 67108864/67108864 bytes at offset 0
475 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
476 wrote 67108864/67108864 bytes at offset 0
477 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
478 No errors were found on the image.
479 read 67108864/67108864 bytes at offset 0
480 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
482 === Testing progress report without snapshot ===
484 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296
485 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base
486 wrote 65536/65536 bytes at offset 0
487 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
488 wrote 65536/65536 bytes at offset 1073741824
489 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
490 wrote 65536/65536 bytes at offset 2147483648
491 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
492 wrote 65536/65536 bytes at offset 3221225472
493 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
494 (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%)
495 No errors were found on the image.
497 === Testing progress report with snapshot ===
499 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296
500 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base
501 wrote 65536/65536 bytes at offset 0
502 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
503 wrote 65536/65536 bytes at offset 1073741824
504 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
505 wrote 65536/65536 bytes at offset 2147483648
506 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
507 wrote 65536/65536 bytes at offset 3221225472
508 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
509 (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%)
510 No errors were found on the image.
512 === Testing version downgrade with external data file ===
514 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
515 qemu-img: Cannot downgrade an image with a data file
516 image: TEST_DIR/t.IMGFMT
518 virtual size: 64 MiB (67108864 bytes)
520 Format specific information:
522 compression type: zlib
523 lazy refcounts: false
525 data file: TEST_DIR/t.IMGFMT.data
528 No errors were found on the image.
530 === Try changing the external data file ===
532 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
533 qemu-img: data-file can only be set for images that use an external data file
535 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
536 qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Could not open 'foo': No such file or directory
537 image: TEST_DIR/t.IMGFMT
539 virtual size: 64 MiB (67108864 bytes)
541 Format specific information:
543 compression type: zlib
544 lazy refcounts: false
550 qemu-img: Could not open 'TEST_DIR/t.IMGFMT': 'data-file' is required for this image
551 image: TEST_DIR/t.IMGFMT
553 virtual size: 64 MiB (67108864 bytes)
555 Format specific information:
557 compression type: zlib
558 lazy refcounts: false
563 === Clearing and setting data-file-raw ===
565 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on
566 image: TEST_DIR/t.IMGFMT
568 virtual size: 64 MiB (67108864 bytes)
570 Format specific information:
572 compression type: zlib
573 lazy refcounts: false
575 data file: TEST_DIR/t.IMGFMT.data
578 No errors were found on the image.
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
591 No errors were found on the image.
592 qemu-img: data-file-raw cannot be set on existing images
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
605 No errors were found on the image.