]>
Commit | Line | Data |
---|---|---|
a8110c3d HR |
1 | QA output created by 061 |
2 | ||
3 | === Testing version downgrade with zero expansion === | |
4 | ||
7486458c | 5 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
a8110c3d HR |
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 | |
26 | ||
b527c9b3 KW |
27 | Header extension: |
28 | magic 0x6803f857 | |
93c24936 | 29 | length 192 |
b527c9b3 KW |
30 | data <binary> |
31 | ||
a8110c3d HR |
32 | magic 0x514649fb |
33 | version 2 | |
34 | backing_file_offset 0x0 | |
35 | backing_file_size 0x0 | |
36 | cluster_bits 16 | |
37 | size 67108864 | |
38 | crypt_method 0 | |
39 | l1_size 1 | |
40 | l1_table_offset 0x30000 | |
41 | refcount_table_offset 0x10000 | |
42 | refcount_table_clusters 1 | |
43 | nb_snapshots 0 | |
44 | snapshot_offset 0x0 | |
45 | incompatible_features 0x0 | |
46 | compatible_features 0x0 | |
47 | autoclear_features 0x0 | |
48 | refcount_order 4 | |
49 | header_length 72 | |
50 | ||
a8110c3d HR |
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. | |
54 | ||
2ecec911 AG |
55 | === Testing version downgrade with zero expansion and 4K cache entries === |
56 | ||
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) | |
66 | magic 0x514649fb | |
67 | version 3 | |
68 | backing_file_offset 0x0 | |
69 | backing_file_size 0x0 | |
70 | cluster_bits 16 | |
71 | size 67108864 | |
72 | crypt_method 0 | |
73 | l1_size 1 | |
74 | l1_table_offset 0x30000 | |
75 | refcount_table_offset 0x10000 | |
76 | refcount_table_clusters 1 | |
77 | nb_snapshots 0 | |
78 | snapshot_offset 0x0 | |
79 | incompatible_features 0x0 | |
80 | compatible_features 0x1 | |
81 | autoclear_features 0x0 | |
82 | refcount_order 4 | |
83 | header_length 104 | |
84 | ||
85 | Header extension: | |
86 | magic 0x6803f857 | |
93c24936 | 87 | length 192 |
2ecec911 AG |
88 | data <binary> |
89 | ||
90 | magic 0x514649fb | |
91 | version 2 | |
92 | backing_file_offset 0x0 | |
93 | backing_file_size 0x0 | |
94 | cluster_bits 16 | |
95 | size 67108864 | |
96 | crypt_method 0 | |
97 | l1_size 1 | |
98 | l1_table_offset 0x30000 | |
99 | refcount_table_offset 0x10000 | |
100 | refcount_table_clusters 1 | |
101 | nb_snapshots 0 | |
102 | snapshot_offset 0x0 | |
103 | incompatible_features 0x0 | |
104 | compatible_features 0x0 | |
105 | autoclear_features 0x0 | |
106 | refcount_order 4 | |
107 | header_length 72 | |
108 | ||
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. | |
115 | ||
a8110c3d HR |
116 | === Testing dirty version downgrade === |
117 | ||
7486458c | 118 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
a8110c3d HR |
119 | wrote 131072/131072 bytes at offset 0 |
120 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
036d8cbf | 121 | ./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) |
a8110c3d HR |
122 | magic 0x514649fb |
123 | version 3 | |
124 | backing_file_offset 0x0 | |
125 | backing_file_size 0x0 | |
126 | cluster_bits 16 | |
127 | size 67108864 | |
128 | crypt_method 0 | |
129 | l1_size 1 | |
130 | l1_table_offset 0x30000 | |
131 | refcount_table_offset 0x10000 | |
132 | refcount_table_clusters 1 | |
133 | nb_snapshots 0 | |
134 | snapshot_offset 0x0 | |
135 | incompatible_features 0x1 | |
136 | compatible_features 0x1 | |
137 | autoclear_features 0x0 | |
138 | refcount_order 4 | |
139 | header_length 104 | |
140 | ||
b527c9b3 KW |
141 | Header extension: |
142 | magic 0x6803f857 | |
93c24936 | 143 | length 192 |
b527c9b3 KW |
144 | data <binary> |
145 | ||
d26e6ec0 HR |
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 | |
a8110c3d HR |
151 | magic 0x514649fb |
152 | version 2 | |
153 | backing_file_offset 0x0 | |
154 | backing_file_size 0x0 | |
155 | cluster_bits 16 | |
156 | size 67108864 | |
157 | crypt_method 0 | |
158 | l1_size 1 | |
159 | l1_table_offset 0x30000 | |
d26e6ec0 | 160 | refcount_table_offset 0x80000 |
a8110c3d HR |
161 | refcount_table_clusters 1 |
162 | nb_snapshots 0 | |
163 | snapshot_offset 0x0 | |
164 | incompatible_features 0x0 | |
165 | compatible_features 0x0 | |
166 | autoclear_features 0x0 | |
167 | refcount_order 4 | |
168 | header_length 72 | |
169 | ||
a8110c3d HR |
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. | |
173 | ||
174 | === Testing version downgrade with unknown compat/autoclear flags === | |
175 | ||
7486458c | 176 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
a8110c3d HR |
177 | magic 0x514649fb |
178 | version 3 | |
179 | backing_file_offset 0x0 | |
180 | backing_file_size 0x0 | |
181 | cluster_bits 16 | |
182 | size 67108864 | |
183 | crypt_method 0 | |
184 | l1_size 1 | |
185 | l1_table_offset 0x30000 | |
186 | refcount_table_offset 0x10000 | |
187 | refcount_table_clusters 1 | |
188 | nb_snapshots 0 | |
189 | snapshot_offset 0x0 | |
190 | incompatible_features 0x0 | |
191 | compatible_features 0x40000000000 | |
192 | autoclear_features 0x40000000000 | |
193 | refcount_order 4 | |
194 | header_length 104 | |
195 | ||
b527c9b3 KW |
196 | Header extension: |
197 | magic 0x6803f857 | |
93c24936 | 198 | length 192 |
b527c9b3 KW |
199 | data <binary> |
200 | ||
a8110c3d HR |
201 | magic 0x514649fb |
202 | version 2 | |
203 | backing_file_offset 0x0 | |
204 | backing_file_size 0x0 | |
205 | cluster_bits 16 | |
206 | size 67108864 | |
207 | crypt_method 0 | |
208 | l1_size 1 | |
209 | l1_table_offset 0x30000 | |
210 | refcount_table_offset 0x10000 | |
211 | refcount_table_clusters 1 | |
212 | nb_snapshots 0 | |
213 | snapshot_offset 0x0 | |
214 | incompatible_features 0x0 | |
215 | compatible_features 0x0 | |
216 | autoclear_features 0x0 | |
217 | refcount_order 4 | |
218 | header_length 72 | |
219 | ||
a8110c3d HR |
220 | No errors were found on the image. |
221 | ||
222 | === Testing version upgrade and resize === | |
223 | ||
7486458c | 224 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
a8110c3d HR |
225 | wrote 65536/65536 bytes at offset 44040192 |
226 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
227 | magic 0x514649fb | |
228 | version 2 | |
229 | backing_file_offset 0x0 | |
230 | backing_file_size 0x0 | |
231 | cluster_bits 16 | |
232 | size 67108864 | |
233 | crypt_method 0 | |
234 | l1_size 1 | |
235 | l1_table_offset 0x30000 | |
236 | refcount_table_offset 0x10000 | |
237 | refcount_table_clusters 1 | |
238 | nb_snapshots 0 | |
239 | snapshot_offset 0x0 | |
240 | incompatible_features 0x0 | |
241 | compatible_features 0x0 | |
242 | autoclear_features 0x0 | |
243 | refcount_order 4 | |
244 | header_length 72 | |
245 | ||
246 | magic 0x514649fb | |
247 | version 3 | |
248 | backing_file_offset 0x0 | |
249 | backing_file_size 0x0 | |
250 | cluster_bits 16 | |
251 | size 134217728 | |
252 | crypt_method 0 | |
253 | l1_size 1 | |
254 | l1_table_offset 0x30000 | |
255 | refcount_table_offset 0x10000 | |
256 | refcount_table_clusters 1 | |
257 | nb_snapshots 0 | |
258 | snapshot_offset 0x0 | |
259 | incompatible_features 0x0 | |
260 | compatible_features 0x1 | |
261 | autoclear_features 0x0 | |
262 | refcount_order 4 | |
263 | header_length 104 | |
264 | ||
265 | Header extension: | |
266 | magic 0x6803f857 | |
93c24936 | 267 | length 192 |
a8110c3d HR |
268 | data <binary> |
269 | ||
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. | |
273 | ||
274 | === Testing dirty lazy_refcounts=off === | |
275 | ||
7486458c | 276 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
a8110c3d HR |
277 | wrote 131072/131072 bytes at offset 0 |
278 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
036d8cbf | 279 | ./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) |
a8110c3d HR |
280 | magic 0x514649fb |
281 | version 3 | |
282 | backing_file_offset 0x0 | |
283 | backing_file_size 0x0 | |
284 | cluster_bits 16 | |
285 | size 67108864 | |
286 | crypt_method 0 | |
287 | l1_size 1 | |
288 | l1_table_offset 0x30000 | |
289 | refcount_table_offset 0x10000 | |
290 | refcount_table_clusters 1 | |
291 | nb_snapshots 0 | |
292 | snapshot_offset 0x0 | |
293 | incompatible_features 0x1 | |
294 | compatible_features 0x1 | |
295 | autoclear_features 0x0 | |
296 | refcount_order 4 | |
297 | header_length 104 | |
298 | ||
b527c9b3 KW |
299 | Header extension: |
300 | magic 0x6803f857 | |
93c24936 | 301 | length 192 |
b527c9b3 KW |
302 | data <binary> |
303 | ||
d26e6ec0 HR |
304 | ERROR cluster 5 refcount=0 reference=1 |
305 | ERROR cluster 6 refcount=0 reference=1 | |
306 | Rebuilding refcount structure | |
307 | Repairing cluster 1 refcount=1 reference=0 | |
308 | Repairing cluster 2 refcount=1 reference=0 | |
a8110c3d HR |
309 | magic 0x514649fb |
310 | version 3 | |
311 | backing_file_offset 0x0 | |
312 | backing_file_size 0x0 | |
313 | cluster_bits 16 | |
314 | size 67108864 | |
315 | crypt_method 0 | |
316 | l1_size 1 | |
317 | l1_table_offset 0x30000 | |
d26e6ec0 | 318 | refcount_table_offset 0x80000 |
a8110c3d HR |
319 | refcount_table_clusters 1 |
320 | nb_snapshots 0 | |
321 | snapshot_offset 0x0 | |
322 | incompatible_features 0x0 | |
323 | compatible_features 0x0 | |
324 | autoclear_features 0x0 | |
325 | refcount_order 4 | |
326 | header_length 104 | |
327 | ||
328 | Header extension: | |
329 | magic 0x6803f857 | |
93c24936 | 330 | length 192 |
a8110c3d HR |
331 | data <binary> |
332 | ||
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 | No errors were found on the image. | |
336 | ||
337 | === Testing backing file === | |
338 | ||
7486458c FZ |
339 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
340 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 | |
a8110c3d HR |
341 | wrote 131072/131072 bytes at offset 0 |
342 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
343 | read 131072/131072 bytes at offset 0 | |
344 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
345 | read 131072/131072 bytes at offset 0 | |
346 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
347 | No errors were found on the image. | |
348 | ||
349 | === Testing invalid configurations === | |
350 | ||
7486458c | 351 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
29d72431 | 352 | qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) |
29d72431 | 353 | qemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) |
29d72431 | 354 | qemu-img: Unknown compatibility level 0.42 |
83d0521a | 355 | qemu-img: Invalid parameter 'foo' |
29d72431 | 356 | qemu-img: Changing the cluster size is not supported |
29d72431 | 357 | qemu-img: Changing the encryption flag is not supported |
29d72431 | 358 | qemu-img: Cannot change preallocation mode |
a8110c3d HR |
359 | |
360 | === Testing correct handling of unset value === | |
361 | ||
7486458c | 362 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
a8110c3d HR |
363 | Should work: |
364 | Should not work: | |
29d72431 | 365 | qemu-img: Changing the cluster size is not supported |
a8110c3d HR |
366 | |
367 | === Testing zero expansion on inactive clusters === | |
368 | ||
7486458c | 369 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
a8110c3d HR |
370 | wrote 131072/131072 bytes at offset 0 |
371 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
372 | wrote 131072/131072 bytes at offset 0 | |
373 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
374 | No errors were found on the image. | |
375 | read 131072/131072 bytes at offset 0 | |
376 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
377 | No errors were found on the image. | |
378 | read 131072/131072 bytes at offset 0 | |
379 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
380 | ||
d982919d HR |
381 | === Testing zero expansion on shared L2 table === |
382 | ||
7486458c | 383 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
d982919d HR |
384 | wrote 131072/131072 bytes at offset 0 |
385 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
386 | No errors were found on the image. | |
387 | read 131072/131072 bytes at offset 0 | |
388 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
389 | No errors were found on the image. | |
390 | read 131072/131072 bytes at offset 0 | |
391 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
392 | ||
a8110c3d HR |
393 | === Testing zero expansion on backed image === |
394 | ||
7486458c | 395 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 |
a8110c3d HR |
396 | wrote 131072/131072 bytes at offset 0 |
397 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
fe646693 | 398 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base |
a8110c3d HR |
399 | read 131072/131072 bytes at offset 0 |
400 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
401 | wrote 65536/65536 bytes at offset 0 | |
402 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
403 | No errors were found on the image. | |
404 | read 65536/65536 bytes at offset 0 | |
405 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
406 | read 65536/65536 bytes at offset 65536 | |
407 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
408 | ||
409 | === Testing zero expansion on backed inactive clusters === | |
410 | ||
7486458c | 411 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 |
a8110c3d HR |
412 | wrote 131072/131072 bytes at offset 0 |
413 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
fe646693 | 414 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base |
a8110c3d HR |
415 | wrote 65536/65536 bytes at offset 0 |
416 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
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 65536/65536 bytes at offset 0 | |
424 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
425 | read 65536/65536 bytes at offset 65536 | |
426 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
d982919d HR |
427 | |
428 | === Testing zero expansion on backed image with shared L2 table === | |
429 | ||
7486458c | 430 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 |
d982919d HR |
431 | wrote 131072/131072 bytes at offset 0 |
432 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
fe646693 | 433 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base |
d982919d HR |
434 | wrote 131072/131072 bytes at offset 0 |
435 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
436 | No errors were found on the image. | |
437 | read 131072/131072 bytes at offset 0 | |
438 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
439 | No errors were found on the image. | |
440 | read 131072/131072 bytes at offset 0 | |
441 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
fd9e03e6 HR |
442 | |
443 | === Testing preallocated zero expansion on full image === | |
444 | ||
7486458c | 445 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
fd9e03e6 HR |
446 | wrote 67108864/67108864 bytes at offset 0 |
447 | 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
448 | wrote 67108864/67108864 bytes at offset 0 | |
449 | 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
450 | No errors were found on the image. | |
451 | read 67108864/67108864 bytes at offset 0 | |
452 | 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
78fa6582 HR |
453 | |
454 | === Testing progress report without snapshot === | |
455 | ||
7486458c | 456 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 |
fe646693 | 457 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base |
78fa6582 HR |
458 | wrote 65536/65536 bytes at offset 0 |
459 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
460 | wrote 65536/65536 bytes at offset 1073741824 | |
461 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
462 | wrote 65536/65536 bytes at offset 2147483648 | |
463 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
464 | wrote 65536/65536 bytes at offset 3221225472 | |
465 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
466 | (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%) | |
467 | No errors were found on the image. | |
468 | ||
469 | === Testing progress report with snapshot === | |
470 | ||
7486458c | 471 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 |
fe646693 | 472 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base |
78fa6582 HR |
473 | wrote 65536/65536 bytes at offset 0 |
474 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
475 | wrote 65536/65536 bytes at offset 1073741824 | |
476 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
477 | wrote 65536/65536 bytes at offset 2147483648 | |
478 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
479 | wrote 65536/65536 bytes at offset 3221225472 | |
480 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
481 | (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%) | |
482 | No errors were found on the image. | |
ac40260d KW |
483 | |
484 | === Testing version downgrade with external data file === | |
485 | ||
486 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data | |
487 | qemu-img: Cannot downgrade an image with a data file | |
488 | image: TEST_DIR/t.IMGFMT | |
489 | file format: IMGFMT | |
de38b500 | 490 | virtual size: 64 MiB (67108864 bytes) |
ac40260d KW |
491 | cluster_size: 65536 |
492 | Format specific information: | |
493 | compat: 1.1 | |
494 | lazy refcounts: false | |
495 | refcount bits: 16 | |
496 | data file: TEST_DIR/t.IMGFMT.data | |
497 | data file raw: false | |
498 | corrupt: false | |
499 | No errors were found on the image. | |
500 | ||
501 | === Try changing the external data file === | |
502 | ||
503 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
504 | qemu-img: data-file can only be set for images that use an external data file | |
505 | ||
506 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data | |
507 | qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Could not open 'foo': No such file or directory | |
508 | image: TEST_DIR/t.IMGFMT | |
509 | file format: IMGFMT | |
de38b500 | 510 | virtual size: 64 MiB (67108864 bytes) |
ac40260d KW |
511 | cluster_size: 65536 |
512 | Format specific information: | |
513 | compat: 1.1 | |
514 | lazy refcounts: false | |
515 | refcount bits: 16 | |
516 | data file: foo | |
517 | data file raw: false | |
518 | corrupt: false | |
519 | ||
520 | qemu-img: Could not open 'TEST_DIR/t.IMGFMT': 'data-file' is required for this image | |
521 | image: TEST_DIR/t.IMGFMT | |
522 | file format: IMGFMT | |
de38b500 | 523 | virtual size: 64 MiB (67108864 bytes) |
ac40260d KW |
524 | cluster_size: 65536 |
525 | Format specific information: | |
526 | compat: 1.1 | |
527 | lazy refcounts: false | |
528 | refcount bits: 16 | |
529 | data file raw: false | |
530 | corrupt: false | |
531 | ||
532 | === Clearing and setting data-file-raw === | |
533 | ||
534 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on | |
535 | image: TEST_DIR/t.IMGFMT | |
536 | file format: IMGFMT | |
de38b500 | 537 | virtual size: 64 MiB (67108864 bytes) |
ac40260d KW |
538 | cluster_size: 65536 |
539 | Format specific information: | |
540 | compat: 1.1 | |
541 | lazy refcounts: false | |
542 | refcount bits: 16 | |
543 | data file: TEST_DIR/t.IMGFMT.data | |
544 | data file raw: true | |
545 | corrupt: false | |
546 | No errors were found on the image. | |
547 | image: TEST_DIR/t.IMGFMT | |
548 | file format: IMGFMT | |
de38b500 | 549 | virtual size: 64 MiB (67108864 bytes) |
ac40260d KW |
550 | cluster_size: 65536 |
551 | Format specific information: | |
552 | compat: 1.1 | |
553 | lazy refcounts: false | |
554 | refcount bits: 16 | |
555 | data file: TEST_DIR/t.IMGFMT.data | |
556 | data file raw: false | |
557 | corrupt: false | |
558 | No errors were found on the image. | |
559 | qemu-img: data-file-raw cannot be set on existing images | |
560 | image: TEST_DIR/t.IMGFMT | |
561 | file format: IMGFMT | |
de38b500 | 562 | virtual size: 64 MiB (67108864 bytes) |
ac40260d KW |
563 | cluster_size: 65536 |
564 | Format specific information: | |
565 | compat: 1.1 | |
566 | lazy refcounts: false | |
567 | refcount bits: 16 | |
568 | data file: TEST_DIR/t.IMGFMT.data | |
569 | data file raw: false | |
570 | corrupt: false | |
571 | No errors were found on the image. | |
a8110c3d | 572 | *** done |