]> git.proxmox.com Git - mirror_qemu.git/blob - tests/qemu-iotests/274.out
qemu-img: Make unallocated part of backing chain obvious in map
[mirror_qemu.git] / tests / qemu-iotests / 274.out
1 == Commit tests ==
2 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
3
4 Formatting 'TEST_DIR/PID-mid', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1048576 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
5
6 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 backing_file=TEST_DIR/PID-mid backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
7
8 wrote 2097152/2097152 bytes at offset 0
9 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
10
11 === Check visible data ===
12 read 1048576/1048576 bytes at offset 0
13 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
14
15 read 1048576/1048576 bytes at offset 1048576
16 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
17
18 === Checking allocation status ===
19 1048576/1048576 bytes allocated at offset 0 bytes
20 1048576/1048576 bytes allocated at offset 1 MiB
21
22 0/1048576 bytes allocated at offset 0 bytes
23 0/0 bytes allocated at offset 1 MiB
24
25 0/1048576 bytes allocated at offset 0 bytes
26 0/1048576 bytes allocated at offset 1 MiB
27
28 === Checking map ===
29 [{ "start": 0, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "offset": 327680}]
30
31 Offset Length Mapped to File
32 0 0x200000 0x50000 TEST_DIR/PID-base
33
34 [{ "start": 0, "length": 1048576, "depth": 1, "present": true, "zero": false, "data": true, "offset": 327680}]
35
36 Offset Length Mapped to File
37 0 0x100000 0x50000 TEST_DIR/PID-base
38
39 [{ "start": 0, "length": 1048576, "depth": 2, "present": true, "zero": false, "data": true, "offset": 327680},
40 { "start": 1048576, "length": 1048576, "depth": 0, "present": false, "zero": true, "data": false}]
41
42 Offset Length Mapped to File
43 0 0x100000 0x50000 TEST_DIR/PID-base
44
45 === Testing qemu-img commit (top -> mid) ===
46 Image committed.
47
48 image: TEST_IMG
49 file format: IMGFMT
50 virtual size: 2 MiB (2097152 bytes)
51 cluster_size: 65536
52 backing file: TEST_DIR/PID-base
53 backing file format: IMGFMT
54 Format specific information:
55 compat: 1.1
56 compression type: zlib
57 lazy refcounts: false
58 refcount bits: 16
59 corrupt: false
60 extended l2: false
61
62 read 1048576/1048576 bytes at offset 0
63 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
64
65 read 1048576/1048576 bytes at offset 1048576
66 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
67
68 === Testing HMP commit (top -> mid) ===
69 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
70
71 Formatting 'TEST_DIR/PID-mid', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1048576 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
72
73 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 backing_file=TEST_DIR/PID-mid backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
74
75 wrote 2097152/2097152 bytes at offset 0
76 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
77
78 {"execute": "human-monitor-command", "arguments": {"command-line": "commit drive0"}}
79 {"return": ""}
80 image: TEST_IMG
81 file format: IMGFMT
82 virtual size: 2 MiB (2097152 bytes)
83 cluster_size: 65536
84 backing file: TEST_DIR/PID-base
85 backing file format: IMGFMT
86 Format specific information:
87 compat: 1.1
88 compression type: zlib
89 lazy refcounts: false
90 refcount bits: 16
91 corrupt: false
92 extended l2: false
93
94 read 1048576/1048576 bytes at offset 0
95 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
96
97 read 1048576/1048576 bytes at offset 1048576
98 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
99
100 === Testing QMP active commit (top -> mid) ===
101 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
102
103 Formatting 'TEST_DIR/PID-mid', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1048576 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
104
105 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 backing_file=TEST_DIR/PID-mid backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
106
107 wrote 2097152/2097152 bytes at offset 0
108 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
109
110 {"execute": "block-commit", "arguments": {"auto-dismiss": false, "base-node": "mid", "device": "top", "job-id": "job0"}}
111 {"return": {}}
112 {"execute": "job-complete", "arguments": {"id": "job0"}}
113 {"return": {}}
114 {"data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
115 {"data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
116 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
117 {"return": {}}
118 image: TEST_IMG
119 file format: IMGFMT
120 virtual size: 2 MiB (2097152 bytes)
121 cluster_size: 65536
122 backing file: TEST_DIR/PID-base
123 backing file format: IMGFMT
124 Format specific information:
125 compat: 1.1
126 compression type: zlib
127 lazy refcounts: false
128 refcount bits: 16
129 corrupt: false
130 extended l2: false
131
132 read 1048576/1048576 bytes at offset 0
133 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
134
135 read 1048576/1048576 bytes at offset 1048576
136 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
137
138 === Testing qemu-img commit (top -> base) ===
139 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
140
141 Formatting 'TEST_DIR/PID-mid', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1048576 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
142
143 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 backing_file=TEST_DIR/PID-mid backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
144
145 wrote 2097152/2097152 bytes at offset 0
146 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
147
148 Image committed.
149
150 image: TEST_IMG
151 file format: IMGFMT
152 virtual size: 2 MiB (2097152 bytes)
153 cluster_size: 65536
154 Format specific information:
155 compat: 1.1
156 compression type: zlib
157 lazy refcounts: false
158 refcount bits: 16
159 corrupt: false
160 extended l2: false
161
162 read 1048576/1048576 bytes at offset 0
163 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
164
165 read 1048576/1048576 bytes at offset 1048576
166 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
167
168 === Testing QMP active commit (top -> base) ===
169 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
170
171 Formatting 'TEST_DIR/PID-mid', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1048576 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
172
173 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 backing_file=TEST_DIR/PID-mid backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
174
175 wrote 2097152/2097152 bytes at offset 0
176 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
177
178 {"execute": "block-commit", "arguments": {"auto-dismiss": false, "base-node": "base", "device": "top", "job-id": "job0"}}
179 {"return": {}}
180 {"execute": "job-complete", "arguments": {"id": "job0"}}
181 {"return": {}}
182 {"data": {"device": "job0", "len": 1048576, "offset": 1048576, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
183 {"data": {"device": "job0", "len": 1048576, "offset": 1048576, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
184 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
185 {"return": {}}
186 image: TEST_IMG
187 file format: IMGFMT
188 virtual size: 1 MiB (1048576 bytes)
189 cluster_size: 65536
190 backing file: TEST_DIR/PID-base
191 backing file format: IMGFMT
192 Format specific information:
193 compat: 1.1
194 compression type: zlib
195 lazy refcounts: false
196 refcount bits: 16
197 corrupt: false
198 extended l2: false
199
200 read 1048576/1048576 bytes at offset 0
201 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
202
203 read 1048576/1048576 bytes at offset 1048576
204 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
205
206 == Resize tests ==
207 === preallocation=off ===
208 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=6442450944 lazy_refcounts=off refcount_bits=16
209
210 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1073741824 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
211
212 wrote 65536/65536 bytes at offset 5368709120
213 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
214
215 Image resized.
216
217 read 65536/65536 bytes at offset 5368709120
218 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
219
220 1 GiB (0x40000000) bytes not allocated at offset 0 bytes (0x0)
221 7 GiB (0x1c0000000) bytes allocated at offset 1 GiB (0x40000000)
222
223 [{ "start": 0, "length": 1073741824, "depth": 1, "present": false, "zero": true, "data": false},
224 { "start": 1073741824, "length": 7516192768, "depth": 0, "present": true, "zero": true, "data": false}]
225
226 === preallocation=metadata ===
227 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=34359738368 lazy_refcounts=off refcount_bits=16
228
229 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=32212254720 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
230
231 wrote 65536/65536 bytes at offset 33285996544
232 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
233
234 Image resized.
235
236 read 65536/65536 bytes at offset 33285996544
237 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
238
239 30 GiB (0x780000000) bytes not allocated at offset 0 bytes (0x0)
240 3 GiB (0xc0000000) bytes allocated at offset 30 GiB (0x780000000)
241
242 [{ "start": 0, "length": 32212254720, "depth": 1, "present": false, "zero": true, "data": false},
243 { "start": 32212254720, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "offset": 327680},
244 { "start": 32749125632, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "offset": 537264128},
245 { "start": 33285996544, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "offset": 1074200576},
246 { "start": 33822867456, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "offset": 1611137024},
247 { "start": 34359738368, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "offset": 2148139008},
248 { "start": 34896609280, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "offset": 2685075456}]
249
250 === preallocation=falloc ===
251 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=10485760 lazy_refcounts=off refcount_bits=16
252
253 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=5242880 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
254
255 wrote 65536/65536 bytes at offset 9437184
256 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
257
258 Image resized.
259
260 read 65536/65536 bytes at offset 9437184
261 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
262
263 5 MiB (0x500000) bytes not allocated at offset 0 bytes (0x0)
264 10 MiB (0xa00000) bytes allocated at offset 5 MiB (0x500000)
265
266 [{ "start": 0, "length": 5242880, "depth": 1, "present": false, "zero": true, "data": false},
267 { "start": 5242880, "length": 10485760, "depth": 0, "present": true, "zero": false, "data": true, "offset": 327680}]
268
269 === preallocation=full ===
270 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=16777216 lazy_refcounts=off refcount_bits=16
271
272 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=8388608 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
273
274 wrote 65536/65536 bytes at offset 11534336
275 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
276
277 Image resized.
278
279 read 65536/65536 bytes at offset 11534336
280 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
281
282 8 MiB (0x800000) bytes not allocated at offset 0 bytes (0x0)
283 4 MiB (0x400000) bytes allocated at offset 8 MiB (0x800000)
284
285 [{ "start": 0, "length": 8388608, "depth": 1, "present": false, "zero": true, "data": false},
286 { "start": 8388608, "length": 4194304, "depth": 0, "present": true, "zero": false, "data": true, "offset": 327680}]
287
288 === preallocation=off ===
289 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=393216 lazy_refcounts=off refcount_bits=16
290
291 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=259072 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
292
293 wrote 65536/65536 bytes at offset 259072
294 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
295
296 Image resized.
297
298 read 65536/65536 bytes at offset 259072
299 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
300
301 192 KiB (0x30000) bytes not allocated at offset 0 bytes (0x0)
302 320 KiB (0x50000) bytes allocated at offset 192 KiB (0x30000)
303
304 [{ "start": 0, "length": 196608, "depth": 1, "present": false, "zero": true, "data": false},
305 { "start": 196608, "length": 65536, "depth": 0, "present": true, "zero": false, "data": true, "offset": 327680},
306 { "start": 262144, "length": 262144, "depth": 0, "present": true, "zero": true, "data": false}]
307
308 === preallocation=off ===
309 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=409600 lazy_refcounts=off refcount_bits=16
310
311 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=262144 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
312
313 wrote 65536/65536 bytes at offset 344064
314 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
315
316 Image resized.
317
318 read 65536/65536 bytes at offset 344064
319 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
320
321 256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
322 256 KiB (0x40000) bytes allocated at offset 256 KiB (0x40000)
323
324 [{ "start": 0, "length": 262144, "depth": 1, "present": false, "zero": true, "data": false},
325 { "start": 262144, "length": 262144, "depth": 0, "present": true, "zero": true, "data": false}]
326
327 === preallocation=off ===
328 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=524288 lazy_refcounts=off refcount_bits=16
329
330 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=262144 backing_file=TEST_DIR/PID-base backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
331
332 wrote 65536/65536 bytes at offset 446464
333 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
334
335 Image resized.
336
337 read 65536/65536 bytes at offset 446464
338 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
339
340 256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
341 244 KiB (0x3d000) bytes allocated at offset 256 KiB (0x40000)
342
343 [{ "start": 0, "length": 262144, "depth": 1, "present": false, "zero": true, "data": false},
344 { "start": 262144, "length": 249856, "depth": 0, "present": true, "zero": true, "data": false}]
345