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: Invalid parameter 'cluster_size'
385 This option is only supported for image creation
386 qemu-img: Invalid parameter 'encryption'
387 This option is only supported for image creation
388 qemu-img: Invalid parameter 'preallocation'
389 This option is only supported for image creation
391 === Testing correct handling of unset value ===
393 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
396 qemu-img: Invalid parameter 'cluster_size'
397 This option is only supported for image creation
399 === Testing zero expansion on inactive clusters ===
401 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
402 wrote 131072/131072 bytes at offset 0
403 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
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 No errors were found on the image.
407 read 131072/131072 bytes at offset 0
408 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
409 No errors were found on the image.
410 read 131072/131072 bytes at offset 0
411 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
413 === Testing zero expansion on shared L2 table ===
415 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
416 wrote 131072/131072 bytes at offset 0
417 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
418 No errors were found on the image.
419 read 131072/131072 bytes at offset 0
420 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
421 No errors were found on the image.
422 read 131072/131072 bytes at offset 0
423 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
425 === Testing zero expansion on backed image ===
427 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
428 wrote 131072/131072 bytes at offset 0
429 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
430 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base
431 read 131072/131072 bytes at offset 0
432 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
433 wrote 65536/65536 bytes at offset 0
434 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
435 No errors were found on the image.
436 read 65536/65536 bytes at offset 0
437 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
438 read 65536/65536 bytes at offset 65536
439 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
441 === Testing zero expansion on backed inactive clusters ===
443 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
444 wrote 131072/131072 bytes at offset 0
445 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
446 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base
447 wrote 65536/65536 bytes at offset 0
448 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
449 wrote 131072/131072 bytes at offset 0
450 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
451 No errors were found on the image.
452 read 131072/131072 bytes at offset 0
453 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
454 No errors were found on the image.
455 read 65536/65536 bytes at offset 0
456 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
457 read 65536/65536 bytes at offset 65536
458 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
460 === Testing zero expansion on backed image with shared L2 table ===
462 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
463 wrote 131072/131072 bytes at offset 0
464 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
465 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base
466 wrote 131072/131072 bytes at offset 0
467 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
468 No errors were found on the image.
469 read 131072/131072 bytes at offset 0
470 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
471 No errors were found on the image.
472 read 131072/131072 bytes at offset 0
473 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
475 === Testing preallocated zero expansion on full image ===
477 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
478 wrote 67108864/67108864 bytes at offset 0
479 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
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 No errors were found on the image.
483 read 67108864/67108864 bytes at offset 0
484 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
486 === Testing progress report without snapshot ===
488 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296
489 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base
490 wrote 65536/65536 bytes at offset 0
491 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
492 wrote 65536/65536 bytes at offset 1073741824
493 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
494 wrote 65536/65536 bytes at offset 2147483648
495 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
496 wrote 65536/65536 bytes at offset 3221225472
497 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
498 (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%)
499 No errors were found on the image.
501 === Testing progress report with snapshot ===
503 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296
504 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base
505 wrote 65536/65536 bytes at offset 0
506 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
507 wrote 65536/65536 bytes at offset 1073741824
508 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
509 wrote 65536/65536 bytes at offset 2147483648
510 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
511 wrote 65536/65536 bytes at offset 3221225472
512 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
513 (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%)
514 No errors were found on the image.
516 === Testing version downgrade with external data file ===
518 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
519 qemu-img: Cannot downgrade an image with a data file
520 image: TEST_DIR/t.IMGFMT
522 virtual size: 64 MiB (67108864 bytes)
524 Format specific information:
526 compression type: zlib
527 lazy refcounts: false
529 data file: TEST_DIR/t.IMGFMT.data
532 No errors were found on the image.
534 === Try changing the external data file ===
536 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
537 qemu-img: data-file can only be set for images that use an external data file
539 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
540 qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Could not open 'foo': No such file or directory
541 image: TEST_DIR/t.IMGFMT
543 virtual size: 64 MiB (67108864 bytes)
545 Format specific information:
547 compression type: zlib
548 lazy refcounts: false
554 qemu-img: Could not open 'TEST_DIR/t.IMGFMT': 'data-file' is required for this image
555 image: TEST_DIR/t.IMGFMT
557 virtual size: 64 MiB (67108864 bytes)
559 Format specific information:
561 compression type: zlib
562 lazy refcounts: false
567 === Clearing and setting data-file-raw ===
569 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on
570 image: TEST_DIR/t.IMGFMT
572 virtual size: 64 MiB (67108864 bytes)
574 Format specific information:
576 compression type: zlib
577 lazy refcounts: false
579 data file: TEST_DIR/t.IMGFMT.data
582 No errors were found on the image.
583 image: TEST_DIR/t.IMGFMT
585 virtual size: 64 MiB (67108864 bytes)
587 Format specific information:
589 compression type: zlib
590 lazy refcounts: false
592 data file: TEST_DIR/t.IMGFMT.data
595 No errors were found on the image.
596 qemu-img: data-file-raw cannot be set on existing images
597 image: TEST_DIR/t.IMGFMT
599 virtual size: 64 MiB (67108864 bytes)
601 Format specific information:
603 compression type: zlib
604 lazy refcounts: false
606 data file: TEST_DIR/t.IMGFMT.data
609 No errors were found on the image.