xref: /openbmc/qemu/tests/qemu-iotests/271.out (revision aa09b3d5)
1QA output created by 271
2
3### Standard write tests (backing file: yes) ###
4
5Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=1048576
6Formatting 'TEST_DIR/t.IMGFMT.base', fmt=raw size=1048576
7Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
8write -q -P PATTERN 0 1k
9L2 entry #0: 0x8000000000050000 0000000000000001
10write -q -P PATTERN 3k 512
11L2 entry #0: 0x8000000000050000 0000000000000003
12write -q -P PATTERN 5k 1k
13L2 entry #0: 0x8000000000050000 0000000000000007
14write -q -P PATTERN 6k 2k
15L2 entry #0: 0x8000000000050000 000000000000000f
16write -q -P PATTERN 8k 6k
17L2 entry #0: 0x8000000000050000 000000000000007f
18write -q -P PATTERN 15k 4k
19L2 entry #0: 0x8000000000050000 00000000000003ff
20write -q -P PATTERN 32k 1k
21L2 entry #0: 0x8000000000050000 00000000000103ff
22write -q -P PATTERN 63k 4k
23L2 entry #0: 0x8000000000050000 00000000800103ff
24L2 entry #1: 0x8000000000060000 0000000000000003
25write -q -z 2k 2k
26L2 entry #0: 0x8000000000050000 00000002800103fd
27write -q -z 0 64k
28L2 entry #0: 0x8000000000050000 ffffffff00000000
29write -q -P PATTERN 0 64k
30L2 entry #0: 0x8000000000050000 00000000ffffffff
31write -q -z -u 0 32k
32L2 entry #0: 0x8000000000050000 0000ffffffff0000
33write -q -z -u 0 64k
34L2 entry #0: 0x0000000000000000 ffffffff00000000
35write -q -P PATTERN 3k 512
36L2 entry #0: 0x8000000000050000 fffffffd00000002
37write -q -P PATTERN 0 64k
38L2 entry #0: 0x8000000000050000 00000000ffffffff
39discard -q 0 64k
40L2 entry #0: 0x0000000000000000 ffffffff00000000
41write -q -c -P PATTERN 0 64k
42L2 entry #0: 0x4000000000050000 0000000000000000
43write -q -P PATTERN 3k 512
44L2 entry #0: 0x8000000000070000 00000000ffffffff
45
46### Standard write tests (backing file: no) ###
47
48Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=1048576
49Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
50write -q -P PATTERN 0 1k
51L2 entry #0: 0x8000000000050000 0000000000000001
52write -q -P PATTERN 3k 512
53L2 entry #0: 0x8000000000050000 0000000000000003
54write -q -P PATTERN 5k 1k
55L2 entry #0: 0x8000000000050000 0000000000000007
56write -q -P PATTERN 6k 2k
57L2 entry #0: 0x8000000000050000 000000000000000f
58write -q -P PATTERN 8k 6k
59L2 entry #0: 0x8000000000050000 000000000000007f
60write -q -P PATTERN 15k 4k
61L2 entry #0: 0x8000000000050000 00000000000003ff
62write -q -P PATTERN 32k 1k
63L2 entry #0: 0x8000000000050000 00000000000103ff
64write -q -P PATTERN 63k 4k
65L2 entry #0: 0x8000000000050000 00000000800103ff
66L2 entry #1: 0x8000000000060000 0000000000000003
67write -q -z 2k 2k
68L2 entry #0: 0x8000000000050000 00000002800103fd
69write -q -z 0 64k
70L2 entry #0: 0x8000000000050000 ffffffff00000000
71write -q -P PATTERN 0 64k
72L2 entry #0: 0x8000000000050000 00000000ffffffff
73write -q -z -u 0 32k
74L2 entry #0: 0x8000000000050000 0000ffffffff0000
75write -q -z -u 0 64k
76L2 entry #0: 0x0000000000000000 ffffffff00000000
77write -q -P PATTERN 3k 512
78L2 entry #0: 0x8000000000050000 fffffffd00000002
79write -q -P PATTERN 0 64k
80L2 entry #0: 0x8000000000050000 00000000ffffffff
81discard -q 0 64k
82L2 entry #0: 0x0000000000000000 ffffffff00000000
83write -q -c -P PATTERN 0 64k
84L2 entry #0: 0x4000000000050000 0000000000000000
85write -q -P PATTERN 3k 512
86L2 entry #0: 0x8000000000070000 00000000ffffffff
87
88### Overwriting several clusters without COW ###
89
90Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=1048576
91Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
92write -q -P PATTERN 24k 40k
93L2 entry #0: 0x8000000000050000 00000000fffff000
94write -q -P PATTERN 90k 2k
95L2 entry #1: 0x8000000000060000 0000000000002000
96write -q -P PATTERN 156k 2k
97L2 entry #2: 0x8000000000070000 0000000000004000
98write -q -z 156k 2k
99L2 entry #2: 0x8000000000070000 0000400000000000
100write -q -P PATTERN 192k 34k
101L2 entry #3: 0x8000000000080000 000000000001ffff
102write -q -P PATTERN 24k 192k
103L2 entry #0: 0x8000000000050000 00000000fffff000
104L2 entry #1: 0x8000000000060000 00000000ffffffff
105L2 entry #2: 0x8000000000070000 00000000ffffffff
106L2 entry #3: 0x8000000000080000 000000000001ffff
107
108### Writing zeroes 1: unallocated clusters (backing file: yes) ###
109
110Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=2132992
111Formatting 'TEST_DIR/t.IMGFMT.base', fmt=raw size=2132992
112Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2132992 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
113write -q -z 0 192k
114L2 entry #0: 0x0000000000000000 ffffffff00000000
115L2 entry #1: 0x0000000000000000 ffffffff00000000
116L2 entry #2: 0x0000000000000000 ffffffff00000000
117write -q -z 224k 128k
118L2 entry #3: 0x0000000000000000 ffff000000000000
119L2 entry #4: 0x0000000000000000 ffffffff00000000
120L2 entry #5: 0x0000000000000000 0000ffff00000000
121write -q -z 415k 128k
122L2 entry #6: 0x8000000000050000 ffff000000008000
123L2 entry #7: 0x0000000000000000 ffffffff00000000
124L2 entry #8: 0x8000000000060000 00007fff00008000
125
126### Writing zeroes 2: allocated clusters (backing file: yes) ###
127
128write -q -P PATTERN 576k 576k
129L2 entry #9: 0x8000000000070000 00000000ffffffff
130L2 entry #10: 0x8000000000080000 00000000ffffffff
131L2 entry #11: 0x8000000000090000 00000000ffffffff
132L2 entry #12: 0x80000000000a0000 00000000ffffffff
133L2 entry #13: 0x80000000000b0000 00000000ffffffff
134L2 entry #14: 0x80000000000c0000 00000000ffffffff
135L2 entry #15: 0x80000000000d0000 00000000ffffffff
136L2 entry #16: 0x80000000000e0000 00000000ffffffff
137L2 entry #17: 0x80000000000f0000 00000000ffffffff
138write -q -z 576k 192k
139L2 entry #9: 0x8000000000070000 ffffffff00000000
140L2 entry #10: 0x8000000000080000 ffffffff00000000
141L2 entry #11: 0x8000000000090000 ffffffff00000000
142write -q -z 800k 128k
143L2 entry #12: 0x80000000000a0000 ffff00000000ffff
144L2 entry #13: 0x80000000000b0000 ffffffff00000000
145L2 entry #14: 0x80000000000c0000 0000ffffffff0000
146write -q -z 991k 128k
147L2 entry #15: 0x80000000000d0000 ffff00000000ffff
148L2 entry #16: 0x80000000000e0000 ffffffff00000000
149L2 entry #17: 0x80000000000f0000 00007fffffff8000
150
151### Writing zeroes 3: compressed clusters (backing file: yes) ###
152
153write -q -c -P PATTERN 1152k 64k
154L2 entry #18: 0x4000000000100000 0000000000000000
155write -q -c -P PATTERN 1216k 64k
156L2 entry #19: 0x4000000000110000 0000000000000000
157write -q -c -P PATTERN 1280k 64k
158L2 entry #20: 0x4000000000120000 0000000000000000
159write -q -c -P PATTERN 1344k 64k
160L2 entry #21: 0x4000000000130000 0000000000000000
161write -q -c -P PATTERN 1408k 64k
162L2 entry #22: 0x4000000000140000 0000000000000000
163write -q -c -P PATTERN 1472k 64k
164L2 entry #23: 0x4000000000150000 0000000000000000
165write -q -c -P PATTERN 1536k 64k
166L2 entry #24: 0x4000000000160000 0000000000000000
167write -q -c -P PATTERN 1600k 64k
168L2 entry #25: 0x4000000000170000 0000000000000000
169write -q -c -P PATTERN 1664k 64k
170L2 entry #26: 0x4000000000180000 0000000000000000
171write -q -c -P PATTERN 1728k 64k
172L2 entry #27: 0x4000000000190000 0000000000000000
173write -q -c -P PATTERN 1792k 64k
174L2 entry #28: 0x40000000001a0000 0000000000000000
175write -q -z 1152k 192k
176L2 entry #18: 0x0000000000000000 ffffffff00000000
177L2 entry #19: 0x0000000000000000 ffffffff00000000
178L2 entry #20: 0x0000000000000000 ffffffff00000000
179write -q -z 1376k 128k
180L2 entry #21: 0x8000000000100000 00000000ffffffff
181L2 entry #22: 0x8000000000110000 00000000ffffffff
182L2 entry #23: 0x8000000000120000 00000000ffffffff
183write -q -z 1567k 129k
184L2 entry #24: 0x8000000000130000 00000000ffffffff
185L2 entry #25: 0x8000000000140000 00000000ffffffff
186L2 entry #26: 0x8000000000150000 00000000ffffffff
187write -q -z 1759k 128k
188L2 entry #27: 0x8000000000160000 ffff00000000ffff
189L2 entry #28: 0x0000000000000000 ffffffff00000000
190L2 entry #29: 0x8000000000170000 00007fff00008000
191
192### Writing zeroes 4: other tests (backing file: yes) ###
193
194write -q -z 1951k 8k
195L2 entry #30: 0x8000000000180000 0007000000088000
196write -q -z 2048k 35k
197L2 entry #32: 0x0000000000000000 0003ffff00000000
198
199### Writing zeroes 1: unallocated clusters (backing file: no) ###
200
201Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=2132992
202Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2132992
203write -q -z 0 192k
204L2 entry #0: 0x0000000000000000 ffffffff00000000
205L2 entry #1: 0x0000000000000000 ffffffff00000000
206L2 entry #2: 0x0000000000000000 ffffffff00000000
207write -q -z 224k 128k
208L2 entry #3: 0x0000000000000000 ffff000000000000
209L2 entry #4: 0x0000000000000000 ffffffff00000000
210L2 entry #5: 0x0000000000000000 0000ffff00000000
211write -q -z 415k 128k
212L2 entry #6: 0x0000000000000000 ffff800000000000
213L2 entry #7: 0x0000000000000000 ffffffff00000000
214L2 entry #8: 0x0000000000000000 0000ffff00000000
215
216### Writing zeroes 2: allocated clusters (backing file: no) ###
217
218write -q -P PATTERN 576k 576k
219L2 entry #9: 0x8000000000050000 00000000ffffffff
220L2 entry #10: 0x8000000000060000 00000000ffffffff
221L2 entry #11: 0x8000000000070000 00000000ffffffff
222L2 entry #12: 0x8000000000080000 00000000ffffffff
223L2 entry #13: 0x8000000000090000 00000000ffffffff
224L2 entry #14: 0x80000000000a0000 00000000ffffffff
225L2 entry #15: 0x80000000000b0000 00000000ffffffff
226L2 entry #16: 0x80000000000c0000 00000000ffffffff
227L2 entry #17: 0x80000000000d0000 00000000ffffffff
228write -q -z 576k 192k
229L2 entry #9: 0x8000000000050000 ffffffff00000000
230L2 entry #10: 0x8000000000060000 ffffffff00000000
231L2 entry #11: 0x8000000000070000 ffffffff00000000
232write -q -z 800k 128k
233L2 entry #12: 0x8000000000080000 ffff00000000ffff
234L2 entry #13: 0x8000000000090000 ffffffff00000000
235L2 entry #14: 0x80000000000a0000 0000ffffffff0000
236write -q -z 991k 128k
237L2 entry #15: 0x80000000000b0000 ffff00000000ffff
238L2 entry #16: 0x80000000000c0000 ffffffff00000000
239L2 entry #17: 0x80000000000d0000 00007fffffff8000
240
241### Writing zeroes 3: compressed clusters (backing file: no) ###
242
243write -q -c -P PATTERN 1152k 64k
244L2 entry #18: 0x40000000000e0000 0000000000000000
245write -q -c -P PATTERN 1216k 64k
246L2 entry #19: 0x40000000000f0000 0000000000000000
247write -q -c -P PATTERN 1280k 64k
248L2 entry #20: 0x4000000000100000 0000000000000000
249write -q -c -P PATTERN 1344k 64k
250L2 entry #21: 0x4000000000110000 0000000000000000
251write -q -c -P PATTERN 1408k 64k
252L2 entry #22: 0x4000000000120000 0000000000000000
253write -q -c -P PATTERN 1472k 64k
254L2 entry #23: 0x4000000000130000 0000000000000000
255write -q -c -P PATTERN 1536k 64k
256L2 entry #24: 0x4000000000140000 0000000000000000
257write -q -c -P PATTERN 1600k 64k
258L2 entry #25: 0x4000000000150000 0000000000000000
259write -q -c -P PATTERN 1664k 64k
260L2 entry #26: 0x4000000000160000 0000000000000000
261write -q -c -P PATTERN 1728k 64k
262L2 entry #27: 0x4000000000170000 0000000000000000
263write -q -c -P PATTERN 1792k 64k
264L2 entry #28: 0x4000000000180000 0000000000000000
265write -q -z 1152k 192k
266L2 entry #18: 0x0000000000000000 ffffffff00000000
267L2 entry #19: 0x0000000000000000 ffffffff00000000
268L2 entry #20: 0x0000000000000000 ffffffff00000000
269write -q -z 1376k 128k
270L2 entry #21: 0x80000000000e0000 00000000ffffffff
271L2 entry #22: 0x80000000000f0000 00000000ffffffff
272L2 entry #23: 0x8000000000100000 00000000ffffffff
273write -q -z 1567k 129k
274L2 entry #24: 0x8000000000110000 00000000ffffffff
275L2 entry #25: 0x8000000000120000 00000000ffffffff
276L2 entry #26: 0x8000000000130000 00000000ffffffff
277write -q -z 1759k 128k
278L2 entry #27: 0x8000000000140000 ffff00000000ffff
279L2 entry #28: 0x0000000000000000 ffffffff00000000
280L2 entry #29: 0x0000000000000000 0000ffff00000000
281
282### Writing zeroes 4: other tests (backing file: no) ###
283
284write -q -z 1951k 8k
285L2 entry #30: 0x0000000000000000 000f800000000000
286write -q -z 2048k 35k
287L2 entry #32: 0x0000000000000000 0003ffff00000000
288
289### Zero + unmap 1: allocated clusters (backing file: yes) ###
290
291Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=2132992
292Formatting 'TEST_DIR/t.IMGFMT.base', fmt=raw size=2132992
293Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2132992 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
294write -q -P PATTERN 576k 576k
295L2 entry #9: 0x8000000000050000 00000000ffffffff
296L2 entry #10: 0x8000000000060000 00000000ffffffff
297L2 entry #11: 0x8000000000070000 00000000ffffffff
298L2 entry #12: 0x8000000000080000 00000000ffffffff
299L2 entry #13: 0x8000000000090000 00000000ffffffff
300L2 entry #14: 0x80000000000a0000 00000000ffffffff
301L2 entry #15: 0x80000000000b0000 00000000ffffffff
302L2 entry #16: 0x80000000000c0000 00000000ffffffff
303L2 entry #17: 0x80000000000d0000 00000000ffffffff
304write -q -z -u 576k 192k
305L2 entry #9: 0x0000000000000000 ffffffff00000000
306L2 entry #10: 0x0000000000000000 ffffffff00000000
307L2 entry #11: 0x0000000000000000 ffffffff00000000
308write -q -z -u 800k 128k
309L2 entry #12: 0x8000000000080000 ffff00000000ffff
310L2 entry #13: 0x0000000000000000 ffffffff00000000
311L2 entry #14: 0x80000000000a0000 0000ffffffff0000
312write -q -z -u 991k 128k
313L2 entry #15: 0x80000000000b0000 ffff00000000ffff
314L2 entry #16: 0x0000000000000000 ffffffff00000000
315L2 entry #17: 0x80000000000d0000 00007fffffff8000
316
317### Zero + unmap 2: compressed clusters (backing file: yes) ###
318
319write -q -c -P PATTERN 1152k 64k
320L2 entry #18: 0x4000000000050000 0000000000000000
321write -q -c -P PATTERN 1216k 64k
322L2 entry #19: 0x4000000000060000 0000000000000000
323write -q -c -P PATTERN 1280k 64k
324L2 entry #20: 0x4000000000070000 0000000000000000
325write -q -c -P PATTERN 1344k 64k
326L2 entry #21: 0x4000000000090000 0000000000000000
327write -q -c -P PATTERN 1408k 64k
328L2 entry #22: 0x40000000000c0000 0000000000000000
329write -q -c -P PATTERN 1472k 64k
330L2 entry #23: 0x40000000000e0000 0000000000000000
331write -q -c -P PATTERN 1536k 64k
332L2 entry #24: 0x40000000000f0000 0000000000000000
333write -q -c -P PATTERN 1600k 64k
334L2 entry #25: 0x4000000000100000 0000000000000000
335write -q -c -P PATTERN 1664k 64k
336L2 entry #26: 0x4000000000110000 0000000000000000
337write -q -c -P PATTERN 1728k 64k
338L2 entry #27: 0x4000000000120000 0000000000000000
339write -q -c -P PATTERN 1792k 64k
340L2 entry #28: 0x4000000000130000 0000000000000000
341write -q -z -u 1152k 192k
342L2 entry #18: 0x0000000000000000 ffffffff00000000
343L2 entry #19: 0x0000000000000000 ffffffff00000000
344L2 entry #20: 0x0000000000000000 ffffffff00000000
345write -q -z -u 1376k 128k
346L2 entry #21: 0x8000000000050000 00000000ffffffff
347L2 entry #22: 0x8000000000060000 00000000ffffffff
348L2 entry #23: 0x8000000000070000 00000000ffffffff
349write -q -z -u 1567k 129k
350L2 entry #24: 0x8000000000090000 00000000ffffffff
351L2 entry #25: 0x80000000000e0000 00000000ffffffff
352L2 entry #26: 0x80000000000f0000 00000000ffffffff
353write -q -z -u 1759k 128k
354L2 entry #27: 0x80000000000c0000 ffff00000000ffff
355L2 entry #28: 0x0000000000000000 ffffffff00000000
356L2 entry #29: 0x8000000000100000 00007fff00008000
357
358### Zero + unmap 1: allocated clusters (backing file: no) ###
359
360Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=2132992
361Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2132992
362write -q -P PATTERN 576k 576k
363L2 entry #9: 0x8000000000050000 00000000ffffffff
364L2 entry #10: 0x8000000000060000 00000000ffffffff
365L2 entry #11: 0x8000000000070000 00000000ffffffff
366L2 entry #12: 0x8000000000080000 00000000ffffffff
367L2 entry #13: 0x8000000000090000 00000000ffffffff
368L2 entry #14: 0x80000000000a0000 00000000ffffffff
369L2 entry #15: 0x80000000000b0000 00000000ffffffff
370L2 entry #16: 0x80000000000c0000 00000000ffffffff
371L2 entry #17: 0x80000000000d0000 00000000ffffffff
372write -q -z -u 576k 192k
373L2 entry #9: 0x0000000000000000 ffffffff00000000
374L2 entry #10: 0x0000000000000000 ffffffff00000000
375L2 entry #11: 0x0000000000000000 ffffffff00000000
376write -q -z -u 800k 128k
377L2 entry #12: 0x8000000000080000 ffff00000000ffff
378L2 entry #13: 0x0000000000000000 ffffffff00000000
379L2 entry #14: 0x80000000000a0000 0000ffffffff0000
380write -q -z -u 991k 128k
381L2 entry #15: 0x80000000000b0000 ffff00000000ffff
382L2 entry #16: 0x0000000000000000 ffffffff00000000
383L2 entry #17: 0x80000000000d0000 00007fffffff8000
384
385### Zero + unmap 2: compressed clusters (backing file: no) ###
386
387write -q -c -P PATTERN 1152k 64k
388L2 entry #18: 0x4000000000050000 0000000000000000
389write -q -c -P PATTERN 1216k 64k
390L2 entry #19: 0x4000000000060000 0000000000000000
391write -q -c -P PATTERN 1280k 64k
392L2 entry #20: 0x4000000000070000 0000000000000000
393write -q -c -P PATTERN 1344k 64k
394L2 entry #21: 0x4000000000090000 0000000000000000
395write -q -c -P PATTERN 1408k 64k
396L2 entry #22: 0x40000000000c0000 0000000000000000
397write -q -c -P PATTERN 1472k 64k
398L2 entry #23: 0x40000000000e0000 0000000000000000
399write -q -c -P PATTERN 1536k 64k
400L2 entry #24: 0x40000000000f0000 0000000000000000
401write -q -c -P PATTERN 1600k 64k
402L2 entry #25: 0x4000000000100000 0000000000000000
403write -q -c -P PATTERN 1664k 64k
404L2 entry #26: 0x4000000000110000 0000000000000000
405write -q -c -P PATTERN 1728k 64k
406L2 entry #27: 0x4000000000120000 0000000000000000
407write -q -c -P PATTERN 1792k 64k
408L2 entry #28: 0x4000000000130000 0000000000000000
409write -q -z -u 1152k 192k
410L2 entry #18: 0x0000000000000000 ffffffff00000000
411L2 entry #19: 0x0000000000000000 ffffffff00000000
412L2 entry #20: 0x0000000000000000 ffffffff00000000
413write -q -z -u 1376k 128k
414L2 entry #21: 0x8000000000050000 00000000ffffffff
415L2 entry #22: 0x8000000000060000 00000000ffffffff
416L2 entry #23: 0x8000000000070000 00000000ffffffff
417write -q -z -u 1567k 129k
418L2 entry #24: 0x8000000000090000 00000000ffffffff
419L2 entry #25: 0x80000000000e0000 00000000ffffffff
420L2 entry #26: 0x80000000000f0000 00000000ffffffff
421write -q -z -u 1759k 128k
422L2 entry #27: 0x80000000000c0000 ffff00000000ffff
423L2 entry #28: 0x0000000000000000 ffffffff00000000
424L2 entry #29: 0x0000000000000000 0000ffff00000000
425
426### Discarding clusters with non-zero bitmaps (backing file: yes) ###
427
428Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
429L2 entry #0: 0x0000000000000000 ffffffff00000000
430L2 entry #1: 0x0000000000000000 ffffffff00000000
431Image resized.
432Image resized.
433L2 entry #0: 0x0000000000000000 ffffffff00000000
434L2 entry #1: 0x0000000000000000 ffffffff00000000
435
436### Discarding clusters with non-zero bitmaps (backing file: no) ###
437
438Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
439L2 entry #0: 0x0000000000000000 ffffffff00000000
440L2 entry #1: 0x0000000000000000 ffffffff00000000
441Image resized.
442Image resized.
443L2 entry #0: 0x0000000000000000 0000ffff00000000
444L2 entry #1: 0x0000000000000000 0000000000000000
445
446### Corrupted L2 entries - read test (allocated) ###
447
448# 'cluster is zero' bit set on the standard cluster descriptor
449
450Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
451L2 entry #0: 0x8000000000050001 0000000000000001
452L2 entry #0: 0x8000000000050001 0000000000000001
453
454# Both 'subcluster is zero' and 'subcluster is allocated' bits set
455
456Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
457L2 entry #1: 0x8000000000060000 00000001ffffffff
458qcow2: Marking image as corrupt: Invalid cluster entry found  (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
459read failed: Input/output error
460
461### Corrupted L2 entries - read test (unallocated) ###
462
463# 'cluster is zero' bit set on the standard cluster descriptor
464
465Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
466L2 entry #0: 0x0000000000000001 0000000000000000
467L2 entry #0: 0x0000000000000001 0000000000000000
468
469# 'subcluster is allocated' bit set
470
471Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
472L2 entry #0: 0x0000000000000000 0000000000000001
473qcow2: Marking image as corrupt: Invalid cluster entry found  (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
474read failed: Input/output error
475
476# Both 'subcluster is zero' and 'subcluster is allocated' bits set
477
478Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
479L2 entry #1: 0x0000000000000000 0000000100000001
480qcow2: Marking image as corrupt: Invalid cluster entry found  (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
481read failed: Input/output error
482
483### Compressed cluster with subcluster bitmap != 0 - read test ###
484
485Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
486L2 entry #0: 0x4000000000050000 0000000180000000
487read 65536/65536 bytes at offset 0
48864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
489L2 entry #0: 0x4000000000050000 0000000180000000
490
491### Corrupted L2 entries - write test (allocated) ###
492
493# 'cluster is zero' bit set on the standard cluster descriptor
494
495Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
496L2 entry #0: 0x8000000000050001 0000000000000001
497L2 entry #0: 0x8000000000050001 0000000000000001
498
499# Both 'subcluster is zero' and 'subcluster is allocated' bits set
500
501Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
502L2 entry #1: 0x8000000000060000 00000001ffffffff
503qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
504write failed: Input/output error
505
506### Corrupted L2 entries - write test (unallocated) ###
507
508# 'cluster is zero' bit set on the standard cluster descriptor
509
510Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
511L2 entry #0: 0x0000000000000001 0000000000000000
512L2 entry #0: 0x8000000000060000 0000000000000001
513
514# 'subcluster is allocated' bit set
515
516Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
517L2 entry #0: 0x0000000000000000 0000000000000001
518qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
519write failed: Input/output error
520
521# Both 'subcluster is zero' and 'subcluster is allocated' bits set
522
523Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
524L2 entry #1: 0x0000000000000000 0000000100000001
525qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
526write failed: Input/output error
527
528### Compressed cluster with subcluster bitmap != 0 - write test ###
529
530Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
531L2 entry #0: 0x4000000000050000 0000000180000000
532wrote 65536/65536 bytes at offset 0
53364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
534L2 entry #0: 0x8000000000060000 00000000ffffffff
535
536### Detect and repair unaligned clusters ###
537
538Formatting 'TEST_DIR/t.IMGFMT.base', fmt=raw size=131072
539# Corrupted L2 entry, allocated subcluster #
540Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
541ERROR offset=50200: Data cluster is not properly aligned; L2 entry corrupted.
542ERROR cluster 6 refcount=0 reference=1
543Rebuilding refcount structure
544ERROR offset=50200: Data cluster is not properly aligned; L2 entry corrupted.
545Repairing cluster 1 refcount=1 reference=0
546Repairing cluster 2 refcount=1 reference=0
547ERROR offset=50200: Data cluster is not properly aligned; L2 entry corrupted.
548The following inconsistencies were found and repaired:
549
550    0 leaked clusters
551    1 corruptions
552
553Double checking the fixed image now...
554
5551 errors were found on the image.
556Data may be corrupted, or further writes to the image may corrupt it.
557qcow2: Marking image as corrupt: Cluster allocation offset 0x50200 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
558read failed: Input/output error
559# Corrupted L2 entry, no allocated subclusters #
560Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
561Repairing offset=50200: Preallocated cluster is not properly aligned; L2 entry corrupted.
562Leaked cluster 5 refcount=1 reference=0
563Repairing cluster 5 refcount=1 reference=0
564The following inconsistencies were found and repaired:
565
566    1 leaked clusters
567    1 corruptions
568
569Double checking the fixed image now...
570No errors were found on the image.
571
572### Image creation options ###
573
574# cluster_size < 16k
575Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
576qemu-img: TEST_DIR/t.IMGFMT: Extended L2 entries are only supported with cluster sizes of at least 16384 bytes
577# backing file and preallocation=metadata
578Formatting 'TEST_DIR/t.IMGFMT.base', fmt=raw size=1048576
579Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=524288 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw preallocation=metadata
580Image resized.
581read 524288/524288 bytes at offset 0
582512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
583read 524288/524288 bytes at offset 524288
584512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
585Offset          Length          Mapped to       File
5860               0x80000         0               TEST_DIR/t.qcow2.base
587# backing file and preallocation=falloc
588Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=524288 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw preallocation=falloc
589Image resized.
590read 524288/524288 bytes at offset 0
591512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
592read 524288/524288 bytes at offset 524288
593512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
594Offset          Length          Mapped to       File
5950               0x80000         0               TEST_DIR/t.qcow2.base
596# backing file and preallocation=full
597Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=524288 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw preallocation=full
598Image resized.
599read 524288/524288 bytes at offset 0
600512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
601read 524288/524288 bytes at offset 524288
602512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
603Offset          Length          Mapped to       File
6040               0x80000         0               TEST_DIR/t.qcow2.base
605
606### Image resizing with preallocation and backing files ###
607
608# resize --preallocation=metadata
609Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
610Image resized.
611read 515072/515072 bytes at offset 0
612503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
613read 522240/522240 bytes at offset 515072
614510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
615# resize --preallocation=falloc
616Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
617Image resized.
618read 515072/515072 bytes at offset 0
619503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
620read 522240/522240 bytes at offset 515072
621510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
622# resize --preallocation=full
623Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
624Image resized.
625read 515072/515072 bytes at offset 0
626503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
627read 522240/522240 bytes at offset 515072
628510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
629
630### Image resizing with preallocation without backing files ###
631
632# resize --preallocation=metadata
633Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072
634wrote 515072/515072 bytes at offset 0
635503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
636Image resized.
637read 515072/515072 bytes at offset 0
638503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
639read 522240/522240 bytes at offset 515072
640510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
641# resize --preallocation=falloc
642Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072
643wrote 515072/515072 bytes at offset 0
644503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
645Image resized.
646read 515072/515072 bytes at offset 0
647503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
648read 522240/522240 bytes at offset 515072
649510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
650# resize --preallocation=full
651Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072
652wrote 515072/515072 bytes at offset 0
653503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
654Image resized.
655read 515072/515072 bytes at offset 0
656503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
657read 522240/522240 bytes at offset 515072
658510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
659
660### qemu-img measure ###
661
662# 512MB, extended_l2=off
663required size: 327680
664fully allocated size: 537198592
665# 512MB, extended_l2=on
666required size: 393216
667fully allocated size: 537264128
668# 16K clusters, 64GB, extended_l2=off
669required size: 42008576
670fully allocated size: 68761485312
671# 16K clusters, 64GB, extended_l2=on
672required size: 75579392
673fully allocated size: 68795056128
674# 8k clusters
675qemu-img: Extended L2 entries are only supported with cluster sizes of at least 16384 bytes
676# 1024 TB
677required size: 309285027840
678fully allocated size: 1126209191870464
679# 1025 TB
680qemu-img: The image size is too large (try using a larger cluster size)
681
682### qemu-img amend ###
683
684Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
685qemu-img: Invalid parameter 'extended_l2'
686This option is only supported for image creation
687Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
688qemu-img: Invalid parameter 'extended_l2'
689This option is only supported for image creation
690
691### Test copy-on-write on an image with snapshots ###
692
693Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
694L2 entry #0: 0x8000000000050000 0000008000042000
695L2 entry #1: 0x8000000000060000 0000008000042000
696L2 entry #2: 0x8000000000070000 0000008000042000
697L2 entry #3: 0x8000000000080000 0000008000042000
698L2 entry #4: 0x8000000000090000 0000008000042000
699L2 entry #5: 0x80000000000a0000 0000008000042000
700L2 entry #6: 0x80000000000b0000 0000008000042000
701L2 entry #7: 0x80000000000c0000 0000008000042000
702L2 entry #8: 0x80000000000d0000 0000008000042000
703L2 entry #9: 0x80000000000e0000 0000008000042000
704L2 entry #0: 0x8000000000120000 000000800007e000
705L2 entry #1: 0x8000000000130000 000000800007fc00
706L2 entry #2: 0x8000000000140000 00000080001fe000
707L2 entry #3: 0x8000000000150000 000000800007e000
708L2 entry #4: 0x8000000000160000 000000000007ff80
709L2 entry #5: 0x8000000000170000 000000000007ffff
710L2 entry #6: 0x00000000000b0000 0001808000042000
711L2 entry #7: 0x00000000000c0000 0000208000040000
712L2 entry #8: 0x8000000000180000 000000800007e000
713L2 entry #9: 0x00000000000e0000 000000c000042000
714
715### Test concurrent requests ###
716
717Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
718blkdebug: Suspended request 'A'
719blkdebug: Resuming request 'A'
720wrote 2048/2048 bytes at offset 30720
7212 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
722wrote 2048/2048 bytes at offset OFFSET
7232 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
724wrote 2048/2048 bytes at offset OFFSET
7252 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
726*** done
727