]>
Commit | Line | Data |
---|---|---|
a8110c3d HR |
1 | QA output created by 061 |
2 | ||
3 | === Testing version downgrade with zero expansion === | |
4 | ||
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 | |
26 | ||
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 | |
45 | ||
46 | Header extension: | |
47 | magic 0x6803f857 | |
48 | length 144 | |
49 | data <binary> | |
50 | ||
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 | ||
55 | === Testing dirty version downgrade === | |
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 | 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 | |
78 | ||
79 | Repairing cluster 5 refcount=0 reference=1 | |
80 | Repairing cluster 6 refcount=0 reference=1 | |
81 | magic 0x514649fb | |
82 | version 2 | |
83 | backing_file_offset 0x0 | |
84 | backing_file_size 0x0 | |
85 | cluster_bits 16 | |
86 | size 67108864 | |
87 | crypt_method 0 | |
88 | l1_size 1 | |
89 | l1_table_offset 0x30000 | |
90 | refcount_table_offset 0x10000 | |
91 | refcount_table_clusters 1 | |
92 | nb_snapshots 0 | |
93 | snapshot_offset 0x0 | |
94 | incompatible_features 0x0 | |
95 | compatible_features 0x0 | |
96 | autoclear_features 0x0 | |
97 | refcount_order 4 | |
98 | header_length 72 | |
99 | ||
100 | Header extension: | |
101 | magic 0x6803f857 | |
102 | length 144 | |
103 | data <binary> | |
104 | ||
105 | read 131072/131072 bytes at offset 0 | |
106 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
107 | No errors were found on the image. | |
108 | ||
109 | === Testing version downgrade with unknown compat/autoclear flags === | |
110 | ||
111 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
112 | magic 0x514649fb | |
113 | version 3 | |
114 | backing_file_offset 0x0 | |
115 | backing_file_size 0x0 | |
116 | cluster_bits 16 | |
117 | size 67108864 | |
118 | crypt_method 0 | |
119 | l1_size 1 | |
120 | l1_table_offset 0x30000 | |
121 | refcount_table_offset 0x10000 | |
122 | refcount_table_clusters 1 | |
123 | nb_snapshots 0 | |
124 | snapshot_offset 0x0 | |
125 | incompatible_features 0x0 | |
126 | compatible_features 0x40000000000 | |
127 | autoclear_features 0x40000000000 | |
128 | refcount_order 4 | |
129 | header_length 104 | |
130 | ||
131 | magic 0x514649fb | |
132 | version 2 | |
133 | backing_file_offset 0x0 | |
134 | backing_file_size 0x0 | |
135 | cluster_bits 16 | |
136 | size 67108864 | |
137 | crypt_method 0 | |
138 | l1_size 1 | |
139 | l1_table_offset 0x30000 | |
140 | refcount_table_offset 0x10000 | |
141 | refcount_table_clusters 1 | |
142 | nb_snapshots 0 | |
143 | snapshot_offset 0x0 | |
144 | incompatible_features 0x0 | |
145 | compatible_features 0x0 | |
146 | autoclear_features 0x0 | |
147 | refcount_order 4 | |
148 | header_length 72 | |
149 | ||
150 | Header extension: | |
151 | magic 0x6803f857 | |
152 | length 144 | |
153 | data <binary> | |
154 | ||
155 | No errors were found on the image. | |
156 | ||
157 | === Testing version upgrade and resize === | |
158 | ||
159 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
160 | wrote 65536/65536 bytes at offset 44040192 | |
161 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
162 | magic 0x514649fb | |
163 | version 2 | |
164 | backing_file_offset 0x0 | |
165 | backing_file_size 0x0 | |
166 | cluster_bits 16 | |
167 | size 67108864 | |
168 | crypt_method 0 | |
169 | l1_size 1 | |
170 | l1_table_offset 0x30000 | |
171 | refcount_table_offset 0x10000 | |
172 | refcount_table_clusters 1 | |
173 | nb_snapshots 0 | |
174 | snapshot_offset 0x0 | |
175 | incompatible_features 0x0 | |
176 | compatible_features 0x0 | |
177 | autoclear_features 0x0 | |
178 | refcount_order 4 | |
179 | header_length 72 | |
180 | ||
181 | magic 0x514649fb | |
182 | version 3 | |
183 | backing_file_offset 0x0 | |
184 | backing_file_size 0x0 | |
185 | cluster_bits 16 | |
186 | size 134217728 | |
187 | crypt_method 0 | |
188 | l1_size 1 | |
189 | l1_table_offset 0x30000 | |
190 | refcount_table_offset 0x10000 | |
191 | refcount_table_clusters 1 | |
192 | nb_snapshots 0 | |
193 | snapshot_offset 0x0 | |
194 | incompatible_features 0x0 | |
195 | compatible_features 0x1 | |
196 | autoclear_features 0x0 | |
197 | refcount_order 4 | |
198 | header_length 104 | |
199 | ||
200 | Header extension: | |
201 | magic 0x6803f857 | |
202 | length 144 | |
203 | data <binary> | |
204 | ||
205 | read 65536/65536 bytes at offset 44040192 | |
206 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
207 | No errors were found on the image. | |
208 | ||
209 | === Testing dirty lazy_refcounts=off === | |
210 | ||
211 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
212 | wrote 131072/131072 bytes at offset 0 | |
213 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
214 | magic 0x514649fb | |
215 | version 3 | |
216 | backing_file_offset 0x0 | |
217 | backing_file_size 0x0 | |
218 | cluster_bits 16 | |
219 | size 67108864 | |
220 | crypt_method 0 | |
221 | l1_size 1 | |
222 | l1_table_offset 0x30000 | |
223 | refcount_table_offset 0x10000 | |
224 | refcount_table_clusters 1 | |
225 | nb_snapshots 0 | |
226 | snapshot_offset 0x0 | |
227 | incompatible_features 0x1 | |
228 | compatible_features 0x1 | |
229 | autoclear_features 0x0 | |
230 | refcount_order 4 | |
231 | header_length 104 | |
232 | ||
233 | Repairing cluster 5 refcount=0 reference=1 | |
234 | Repairing cluster 6 refcount=0 reference=1 | |
235 | magic 0x514649fb | |
236 | version 3 | |
237 | backing_file_offset 0x0 | |
238 | backing_file_size 0x0 | |
239 | cluster_bits 16 | |
240 | size 67108864 | |
241 | crypt_method 0 | |
242 | l1_size 1 | |
243 | l1_table_offset 0x30000 | |
244 | refcount_table_offset 0x10000 | |
245 | refcount_table_clusters 1 | |
246 | nb_snapshots 0 | |
247 | snapshot_offset 0x0 | |
248 | incompatible_features 0x0 | |
249 | compatible_features 0x0 | |
250 | autoclear_features 0x0 | |
251 | refcount_order 4 | |
252 | header_length 104 | |
253 | ||
254 | Header extension: | |
255 | magic 0x6803f857 | |
256 | length 144 | |
257 | data <binary> | |
258 | ||
259 | read 131072/131072 bytes at offset 0 | |
260 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
261 | No errors were found on the image. | |
262 | ||
263 | === Testing backing file === | |
264 | ||
265 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
266 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 | |
267 | wrote 131072/131072 bytes at offset 0 | |
268 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
269 | read 131072/131072 bytes at offset 0 | |
270 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
271 | read 131072/131072 bytes at offset 0 | |
272 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
273 | No errors were found on the image. | |
274 | ||
275 | === Testing invalid configurations === | |
276 | ||
277 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
278 | Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) | |
279 | qemu-img: Error while amending options: Invalid argument | |
280 | Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) | |
281 | qemu-img: Error while amending options: Invalid argument | |
282 | Unknown compatibility level 0.42. | |
283 | qemu-img: Error while amending options: Invalid argument | |
284 | Unknown option 'foo' | |
285 | qemu-img: Invalid options for file format 'qcow2' | |
286 | Changing the cluster size is not supported. | |
287 | qemu-img: Error while amending options: Operation not supported | |
288 | Changing the encryption flag is not supported. | |
289 | qemu-img: Error while amending options: Operation not supported | |
290 | Cannot change preallocation mode. | |
291 | qemu-img: Error while amending options: Operation not supported | |
292 | ||
293 | === Testing correct handling of unset value === | |
294 | ||
295 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
296 | Should work: | |
297 | Should not work: | |
298 | Changing the cluster size is not supported. | |
299 | qemu-img: Error while amending options: Operation not supported | |
300 | ||
301 | === Testing zero expansion on inactive clusters === | |
302 | ||
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) | |
314 | ||
d982919d HR |
315 | === Testing zero expansion on shared L2 table === |
316 | ||
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) | |
326 | ||
a8110c3d HR |
327 | === Testing zero expansion on backed image === |
328 | ||
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) | |
342 | ||
343 | === Testing zero expansion on backed inactive clusters === | |
344 | ||
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) | |
d982919d HR |
361 | |
362 | === Testing zero expansion on backed image with shared L2 table === | |
363 | ||
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) | |
fd9e03e6 HR |
376 | |
377 | === Testing preallocated zero expansion on full image === | |
378 | ||
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) | |
a8110c3d | 387 | *** done |