qcow2: Write feature table only for v3 images
[qemu/ar7.git] / tests / qemu-iotests / 061.out
blobd604682da906c036c0b1c738c2cf454dda7627b9
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)
8 magic                     0x514649fb
9 version                   3
10 backing_file_offset       0x0
11 backing_file_size         0x0
12 cluster_bits              16
13 size                      67108864
14 crypt_method              0
15 l1_size                   1
16 l1_table_offset           0x30000
17 refcount_table_offset     0x10000
18 refcount_table_clusters   1
19 nb_snapshots              0
20 snapshot_offset           0x0
21 incompatible_features     0x0
22 compatible_features       0x1
23 autoclear_features        0x0
24 refcount_order            4
25 header_length             104
27 magic                     0x514649fb
28 version                   2
29 backing_file_offset       0x0
30 backing_file_size         0x0
31 cluster_bits              16
32 size                      67108864
33 crypt_method              0
34 l1_size                   1
35 l1_table_offset           0x30000
36 refcount_table_offset     0x10000
37 refcount_table_clusters   1
38 nb_snapshots              0
39 snapshot_offset           0x0
40 incompatible_features     0x0
41 compatible_features       0x0
42 autoclear_features        0x0
43 refcount_order            4
44 header_length             72
46 read 131072/131072 bytes at offset 0
47 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
48 No errors were found on the image.
50 === Testing dirty version downgrade ===
52 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
53 wrote 131072/131072 bytes at offset 0
54 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
55 ./common.config: Killed                  ( if [ "${VALGRIND_QEMU}" == "y" ]; then
56     exec valgrind --log-file="${VALGRIND_LOGFILE}" --error-exitcode=99 "$QEMU_IO_PROG" $QEMU_IO_OPTIONS "$@";
57 else
58     exec "$QEMU_IO_PROG" $QEMU_IO_OPTIONS "$@";
59 fi )
60 magic                     0x514649fb
61 version                   3
62 backing_file_offset       0x0
63 backing_file_size         0x0
64 cluster_bits              16
65 size                      67108864
66 crypt_method              0
67 l1_size                   1
68 l1_table_offset           0x30000
69 refcount_table_offset     0x10000
70 refcount_table_clusters   1
71 nb_snapshots              0
72 snapshot_offset           0x0
73 incompatible_features     0x1
74 compatible_features       0x1
75 autoclear_features        0x0
76 refcount_order            4
77 header_length             104
79 ERROR cluster 5 refcount=0 reference=1
80 ERROR cluster 6 refcount=0 reference=1
81 Rebuilding refcount structure
82 Repairing cluster 1 refcount=1 reference=0
83 Repairing cluster 2 refcount=1 reference=0
84 magic                     0x514649fb
85 version                   2
86 backing_file_offset       0x0
87 backing_file_size         0x0
88 cluster_bits              16
89 size                      67108864
90 crypt_method              0
91 l1_size                   1
92 l1_table_offset           0x30000
93 refcount_table_offset     0x80000
94 refcount_table_clusters   1
95 nb_snapshots              0
96 snapshot_offset           0x0
97 incompatible_features     0x0
98 compatible_features       0x0
99 autoclear_features        0x0
100 refcount_order            4
101 header_length             72
103 read 131072/131072 bytes at offset 0
104 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
105 No errors were found on the image.
107 === Testing version downgrade with unknown compat/autoclear flags ===
109 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
110 magic                     0x514649fb
111 version                   3
112 backing_file_offset       0x0
113 backing_file_size         0x0
114 cluster_bits              16
115 size                      67108864
116 crypt_method              0
117 l1_size                   1
118 l1_table_offset           0x30000
119 refcount_table_offset     0x10000
120 refcount_table_clusters   1
121 nb_snapshots              0
122 snapshot_offset           0x0
123 incompatible_features     0x0
124 compatible_features       0x40000000000
125 autoclear_features        0x40000000000
126 refcount_order            4
127 header_length             104
129 magic                     0x514649fb
130 version                   2
131 backing_file_offset       0x0
132 backing_file_size         0x0
133 cluster_bits              16
134 size                      67108864
135 crypt_method              0
136 l1_size                   1
137 l1_table_offset           0x30000
138 refcount_table_offset     0x10000
139 refcount_table_clusters   1
140 nb_snapshots              0
141 snapshot_offset           0x0
142 incompatible_features     0x0
143 compatible_features       0x0
144 autoclear_features        0x0
145 refcount_order            4
146 header_length             72
148 No errors were found on the image.
150 === Testing version upgrade and resize ===
152 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
153 wrote 65536/65536 bytes at offset 44040192
154 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
155 magic                     0x514649fb
156 version                   2
157 backing_file_offset       0x0
158 backing_file_size         0x0
159 cluster_bits              16
160 size                      67108864
161 crypt_method              0
162 l1_size                   1
163 l1_table_offset           0x30000
164 refcount_table_offset     0x10000
165 refcount_table_clusters   1
166 nb_snapshots              0
167 snapshot_offset           0x0
168 incompatible_features     0x0
169 compatible_features       0x0
170 autoclear_features        0x0
171 refcount_order            4
172 header_length             72
174 magic                     0x514649fb
175 version                   3
176 backing_file_offset       0x0
177 backing_file_size         0x0
178 cluster_bits              16
179 size                      134217728
180 crypt_method              0
181 l1_size                   1
182 l1_table_offset           0x30000
183 refcount_table_offset     0x10000
184 refcount_table_clusters   1
185 nb_snapshots              0
186 snapshot_offset           0x0
187 incompatible_features     0x0
188 compatible_features       0x1
189 autoclear_features        0x0
190 refcount_order            4
191 header_length             104
193 Header extension:
194 magic                     0x6803f857
195 length                    144
196 data                      <binary>
198 read 65536/65536 bytes at offset 44040192
199 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
200 No errors were found on the image.
202 === Testing dirty lazy_refcounts=off ===
204 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
205 wrote 131072/131072 bytes at offset 0
206 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
207 ./common.config: Killed                  ( if [ "${VALGRIND_QEMU}" == "y" ]; then
208     exec valgrind --log-file="${VALGRIND_LOGFILE}" --error-exitcode=99 "$QEMU_IO_PROG" $QEMU_IO_OPTIONS "$@";
209 else
210     exec "$QEMU_IO_PROG" $QEMU_IO_OPTIONS "$@";
211 fi )
212 magic                     0x514649fb
213 version                   3
214 backing_file_offset       0x0
215 backing_file_size         0x0
216 cluster_bits              16
217 size                      67108864
218 crypt_method              0
219 l1_size                   1
220 l1_table_offset           0x30000
221 refcount_table_offset     0x10000
222 refcount_table_clusters   1
223 nb_snapshots              0
224 snapshot_offset           0x0
225 incompatible_features     0x1
226 compatible_features       0x1
227 autoclear_features        0x0
228 refcount_order            4
229 header_length             104
231 ERROR cluster 5 refcount=0 reference=1
232 ERROR cluster 6 refcount=0 reference=1
233 Rebuilding refcount structure
234 Repairing cluster 1 refcount=1 reference=0
235 Repairing cluster 2 refcount=1 reference=0
236 magic                     0x514649fb
237 version                   3
238 backing_file_offset       0x0
239 backing_file_size         0x0
240 cluster_bits              16
241 size                      67108864
242 crypt_method              0
243 l1_size                   1
244 l1_table_offset           0x30000
245 refcount_table_offset     0x80000
246 refcount_table_clusters   1
247 nb_snapshots              0
248 snapshot_offset           0x0
249 incompatible_features     0x0
250 compatible_features       0x0
251 autoclear_features        0x0
252 refcount_order            4
253 header_length             104
255 Header extension:
256 magic                     0x6803f857
257 length                    144
258 data                      <binary>
260 read 131072/131072 bytes at offset 0
261 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
262 No errors were found on the image.
264 === Testing backing file ===
266 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
267 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
268 wrote 131072/131072 bytes at offset 0
269 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
270 read 131072/131072 bytes at offset 0
271 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
272 read 131072/131072 bytes at offset 0
273 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
274 No errors were found on the image.
276 === Testing invalid configurations ===
278 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
279 qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater)
280 qemu-img: Error while amending options: Invalid argument
281 qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater)
282 qemu-img: Error while amending options: Invalid argument
283 qemu-img: Unknown compatibility level 0.42
284 qemu-img: Error while amending options: Invalid argument
285 qemu-img: Invalid parameter 'foo'
286 qemu-img: Changing the cluster size is not supported
287 qemu-img: Error while amending options: Operation not supported
288 qemu-img: Changing the encryption flag is not supported
289 qemu-img: Error while amending options: Operation not supported
290 qemu-img: Cannot change preallocation mode
291 qemu-img: Error while amending options: Operation not supported
293 === Testing correct handling of unset value ===
295 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
296 Should work:
297 Should not work:
298 qemu-img: Changing the cluster size is not supported
299 qemu-img: Error while amending options: Operation not supported
301 === Testing zero expansion on inactive clusters ===
303 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
304 wrote 131072/131072 bytes at offset 0
305 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
306 wrote 131072/131072 bytes at offset 0
307 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
308 No errors were found on the image.
309 read 131072/131072 bytes at offset 0
310 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
311 No errors were found on the image.
312 read 131072/131072 bytes at offset 0
313 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
315 === Testing zero expansion on shared L2 table ===
317 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
318 wrote 131072/131072 bytes at offset 0
319 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
320 No errors were found on the image.
321 read 131072/131072 bytes at offset 0
322 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
323 No errors were found on the image.
324 read 131072/131072 bytes at offset 0
325 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
327 === Testing zero expansion on backed image ===
329 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
330 wrote 131072/131072 bytes at offset 0
331 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
332 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base
333 read 131072/131072 bytes at offset 0
334 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
335 wrote 65536/65536 bytes at offset 0
336 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
337 No errors were found on the image.
338 read 65536/65536 bytes at offset 0
339 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
340 read 65536/65536 bytes at offset 65536
341 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
343 === Testing zero expansion on backed inactive clusters ===
345 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
346 wrote 131072/131072 bytes at offset 0
347 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
348 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base
349 wrote 65536/65536 bytes at offset 0
350 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
351 wrote 131072/131072 bytes at offset 0
352 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
353 No errors were found on the image.
354 read 131072/131072 bytes at offset 0
355 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
356 No errors were found on the image.
357 read 65536/65536 bytes at offset 0
358 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
359 read 65536/65536 bytes at offset 65536
360 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
362 === Testing zero expansion on backed image with shared L2 table ===
364 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
365 wrote 131072/131072 bytes at offset 0
366 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
367 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base
368 wrote 131072/131072 bytes at offset 0
369 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
370 No errors were found on the image.
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 No errors were found on the image.
374 read 131072/131072 bytes at offset 0
375 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
377 === Testing preallocated zero expansion on full image ===
379 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
380 wrote 67108864/67108864 bytes at offset 0
381 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
382 wrote 67108864/67108864 bytes at offset 0
383 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
384 No errors were found on the image.
385 read 67108864/67108864 bytes at offset 0
386 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
388 === Testing progress report without snapshot ===
390 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296
391 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base
392 wrote 65536/65536 bytes at offset 0
393 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
394 wrote 65536/65536 bytes at offset 1073741824
395 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
396 wrote 65536/65536 bytes at offset 2147483648
397 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
398 wrote 65536/65536 bytes at offset 3221225472
399 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
400     (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%)
401 No errors were found on the image.
403 === Testing progress report with snapshot ===
405 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296
406 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base
407 wrote 65536/65536 bytes at offset 0
408 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
409 wrote 65536/65536 bytes at offset 1073741824
410 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
411 wrote 65536/65536 bytes at offset 2147483648
412 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
413 wrote 65536/65536 bytes at offset 3221225472
414 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
415     (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%)
416 No errors were found on the image.
417 *** done