xref: /openbmc/qemu/tests/qemu-iotests/274.out (revision 284d697c)
1== Commit tests ==
2Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
3
4Formatting '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
6Formatting '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
8wrote 2097152/2097152 bytes at offset 0
92 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
10
11=== Check visible data ===
12read 1048576/1048576 bytes at offset 0
131 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
14
15read 1048576/1048576 bytes at offset 1048576
161 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
17
18=== Checking allocation status ===
191048576/1048576 bytes allocated at offset 0 bytes
201048576/1048576 bytes allocated at offset 1 MiB
21
220/1048576 bytes allocated at offset 0 bytes
230/0 bytes allocated at offset 1 MiB
24
250/1048576 bytes allocated at offset 0 bytes
260/1048576 bytes allocated at offset 1 MiB
27
28=== Checking map ===
29[{ "start": 0, "length": 2097152, "depth": 0, "zero": false, "data": true, "offset": 327680}]
30
31Offset          Length          Mapped to       File
320               0x200000        0x50000         TEST_DIR/PID-base
33
34[{ "start": 0, "length": 1048576, "depth": 1, "zero": false, "data": true, "offset": 327680}]
35
36Offset          Length          Mapped to       File
370               0x100000        0x50000         TEST_DIR/PID-base
38
39[{ "start": 0, "length": 1048576, "depth": 2, "zero": false, "data": true, "offset": 327680},
40{ "start": 1048576, "length": 1048576, "depth": 0, "zero": true, "data": false}]
41
42Offset          Length          Mapped to       File
430               0x100000        0x50000         TEST_DIR/PID-base
44
45=== Testing qemu-img commit (top -> mid) ===
46Image committed.
47
48image: TEST_IMG
49file format: IMGFMT
50virtual size: 2 MiB (2097152 bytes)
51cluster_size: 65536
52backing file: TEST_DIR/PID-base
53backing file format: IMGFMT
54Format 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
62read 1048576/1048576 bytes at offset 0
631 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
64
65read 1048576/1048576 bytes at offset 1048576
661 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
67
68=== Testing HMP commit (top -> mid) ===
69Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
70
71Formatting '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
73Formatting '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
75wrote 2097152/2097152 bytes at offset 0
762 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": ""}
80image: TEST_IMG
81file format: IMGFMT
82virtual size: 2 MiB (2097152 bytes)
83cluster_size: 65536
84backing file: TEST_DIR/PID-base
85backing file format: IMGFMT
86Format 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
94read 1048576/1048576 bytes at offset 0
951 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
96
97read 1048576/1048576 bytes at offset 1048576
981 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
99
100=== Testing QMP active commit (top -> mid) ===
101Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
102
103Formatting '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
105Formatting '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
107wrote 2097152/2097152 bytes at offset 0
1082 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": {}}
118image: TEST_IMG
119file format: IMGFMT
120virtual size: 2 MiB (2097152 bytes)
121cluster_size: 65536
122backing file: TEST_DIR/PID-base
123backing file format: IMGFMT
124Format 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
132read 1048576/1048576 bytes at offset 0
1331 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
134
135read 1048576/1048576 bytes at offset 1048576
1361 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
137
138=== Testing qemu-img commit (top -> base) ===
139Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
140
141Formatting '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
143Formatting '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
145wrote 2097152/2097152 bytes at offset 0
1462 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
147
148Image committed.
149
150image: TEST_IMG
151file format: IMGFMT
152virtual size: 2 MiB (2097152 bytes)
153cluster_size: 65536
154Format 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
162read 1048576/1048576 bytes at offset 0
1631 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
164
165read 1048576/1048576 bytes at offset 1048576
1661 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
167
168=== Testing QMP active commit (top -> base) ===
169Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
170
171Formatting '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
173Formatting '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
175wrote 2097152/2097152 bytes at offset 0
1762 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": {}}
186image: TEST_IMG
187file format: IMGFMT
188virtual size: 1 MiB (1048576 bytes)
189cluster_size: 65536
190backing file: TEST_DIR/PID-base
191backing file format: IMGFMT
192Format 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
200read 1048576/1048576 bytes at offset 0
2011 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
202
203read 1048576/1048576 bytes at offset 1048576
2041 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
205
206== Resize tests ==
207=== preallocation=off ===
208Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=6442450944 lazy_refcounts=off refcount_bits=16
209
210Formatting '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
212wrote 65536/65536 bytes at offset 5368709120
21364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
214
215Image resized.
216
217read 65536/65536 bytes at offset 5368709120
21864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
219
2201 GiB (0x40000000) bytes not allocated at offset 0 bytes (0x0)
2217 GiB (0x1c0000000) bytes     allocated at offset 1 GiB (0x40000000)
222
223[{ "start": 0, "length": 1073741824, "depth": 1, "zero": true, "data": false},
224{ "start": 1073741824, "length": 7516192768, "depth": 0, "zero": true, "data": false}]
225
226=== preallocation=metadata ===
227Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=34359738368 lazy_refcounts=off refcount_bits=16
228
229Formatting '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
231wrote 65536/65536 bytes at offset 33285996544
23264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
233
234Image resized.
235
236read 65536/65536 bytes at offset 33285996544
23764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
238
23930 GiB (0x780000000) bytes not allocated at offset 0 bytes (0x0)
2403 GiB (0xc0000000) bytes     allocated at offset 30 GiB (0x780000000)
241
242[{ "start": 0, "length": 32212254720, "depth": 1, "zero": true, "data": false},
243{ "start": 32212254720, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 327680},
244{ "start": 32749125632, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 537264128},
245{ "start": 33285996544, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 1074200576},
246{ "start": 33822867456, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 1611137024},
247{ "start": 34359738368, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 2148139008},
248{ "start": 34896609280, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 2685075456}]
249
250=== preallocation=falloc ===
251Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=10485760 lazy_refcounts=off refcount_bits=16
252
253Formatting '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
255wrote 65536/65536 bytes at offset 9437184
25664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
257
258Image resized.
259
260read 65536/65536 bytes at offset 9437184
26164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
262
2635 MiB (0x500000) bytes not allocated at offset 0 bytes (0x0)
26410 MiB (0xa00000) bytes     allocated at offset 5 MiB (0x500000)
265
266[{ "start": 0, "length": 5242880, "depth": 1, "zero": true, "data": false},
267{ "start": 5242880, "length": 10485760, "depth": 0, "zero": false, "data": true, "offset": 327680}]
268
269=== preallocation=full ===
270Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=16777216 lazy_refcounts=off refcount_bits=16
271
272Formatting '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
274wrote 65536/65536 bytes at offset 11534336
27564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
276
277Image resized.
278
279read 65536/65536 bytes at offset 11534336
28064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
281
2828 MiB (0x800000) bytes not allocated at offset 0 bytes (0x0)
2834 MiB (0x400000) bytes     allocated at offset 8 MiB (0x800000)
284
285[{ "start": 0, "length": 8388608, "depth": 1, "zero": true, "data": false},
286{ "start": 8388608, "length": 4194304, "depth": 0, "zero": false, "data": true, "offset": 327680}]
287
288=== preallocation=off ===
289Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=393216 lazy_refcounts=off refcount_bits=16
290
291Formatting '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
293wrote 65536/65536 bytes at offset 259072
29464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
295
296Image resized.
297
298read 65536/65536 bytes at offset 259072
29964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
300
301192 KiB (0x30000) bytes not allocated at offset 0 bytes (0x0)
302320 KiB (0x50000) bytes     allocated at offset 192 KiB (0x30000)
303
304[{ "start": 0, "length": 196608, "depth": 1, "zero": true, "data": false},
305{ "start": 196608, "length": 65536, "depth": 0, "zero": false, "data": true, "offset": 327680},
306{ "start": 262144, "length": 262144, "depth": 0, "zero": true, "data": false}]
307
308=== preallocation=off ===
309Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=409600 lazy_refcounts=off refcount_bits=16
310
311Formatting '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
313wrote 65536/65536 bytes at offset 344064
31464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
315
316Image resized.
317
318read 65536/65536 bytes at offset 344064
31964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
320
321256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
322256 KiB (0x40000) bytes     allocated at offset 256 KiB (0x40000)
323
324[{ "start": 0, "length": 262144, "depth": 1, "zero": true, "data": false},
325{ "start": 262144, "length": 262144, "depth": 0, "zero": true, "data": false}]
326
327=== preallocation=off ===
328Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=524288 lazy_refcounts=off refcount_bits=16
329
330Formatting '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
332wrote 65536/65536 bytes at offset 446464
33364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
334
335Image resized.
336
337read 65536/65536 bytes at offset 446464
33864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
339
340256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
341244 KiB (0x3d000) bytes     allocated at offset 256 KiB (0x40000)
342
343[{ "start": 0, "length": 262144, "depth": 1, "zero": true, "data": false},
344{ "start": 262144, "length": 249856, "depth": 0, "zero": true, "data": false}]
345
346