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