xref: /openbmc/qemu/tests/qemu-iotests/274.out (revision a976ed3f)
1== Commit tests ==
2Formatting 'TEST_DIR/PID-base', fmt=qcow2 size=2097152 cluster_size=65536 lazy_refcounts=off refcount_bits=16
3
4Formatting 'TEST_DIR/PID-mid', fmt=qcow2 size=1048576 backing_file=TEST_DIR/PID-base cluster_size=65536 lazy_refcounts=off refcount_bits=16
5
6Formatting 'TEST_DIR/PID-top', fmt=qcow2 size=2097152 backing_file=TEST_DIR/PID-mid cluster_size=65536 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
53Format specific information:
54    compat: 1.1
55    lazy refcounts: false
56    refcount bits: 16
57    corrupt: false
58
59read 1048576/1048576 bytes at offset 0
601 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
61
62read 1048576/1048576 bytes at offset 1048576
631 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
64
65=== Testing HMP commit (top -> mid) ===
66Formatting 'TEST_DIR/PID-base', fmt=qcow2 size=2097152 cluster_size=65536 lazy_refcounts=off refcount_bits=16
67
68Formatting 'TEST_DIR/PID-mid', fmt=qcow2 size=1048576 backing_file=TEST_DIR/PID-base cluster_size=65536 lazy_refcounts=off refcount_bits=16
69
70Formatting 'TEST_DIR/PID-top', fmt=qcow2 size=2097152 backing_file=TEST_DIR/PID-mid cluster_size=65536 lazy_refcounts=off refcount_bits=16
71
72wrote 2097152/2097152 bytes at offset 0
732 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
74
75{"execute": "human-monitor-command", "arguments": {"command-line": "commit drive0"}}
76{"return": ""}
77image: TEST_IMG
78file format: IMGFMT
79virtual size: 2 MiB (2097152 bytes)
80cluster_size: 65536
81backing file: TEST_DIR/PID-base
82Format specific information:
83    compat: 1.1
84    lazy refcounts: false
85    refcount bits: 16
86    corrupt: false
87
88read 1048576/1048576 bytes at offset 0
891 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
90
91read 1048576/1048576 bytes at offset 1048576
921 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
93
94=== Testing QMP active commit (top -> mid) ===
95Formatting 'TEST_DIR/PID-base', fmt=qcow2 size=2097152 cluster_size=65536 lazy_refcounts=off refcount_bits=16
96
97Formatting 'TEST_DIR/PID-mid', fmt=qcow2 size=1048576 backing_file=TEST_DIR/PID-base cluster_size=65536 lazy_refcounts=off refcount_bits=16
98
99Formatting 'TEST_DIR/PID-top', fmt=qcow2 size=2097152 backing_file=TEST_DIR/PID-mid cluster_size=65536 lazy_refcounts=off refcount_bits=16
100
101wrote 2097152/2097152 bytes at offset 0
1022 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
103
104{"execute": "block-commit", "arguments": {"auto-dismiss": false, "base-node": "mid", "device": "top", "job-id": "job0"}}
105{"return": {}}
106{"execute": "job-complete", "arguments": {"id": "job0"}}
107{"return": {}}
108{"data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
109{"data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
110{"execute": "job-dismiss", "arguments": {"id": "job0"}}
111{"return": {}}
112image: TEST_IMG
113file format: IMGFMT
114virtual size: 2 MiB (2097152 bytes)
115cluster_size: 65536
116backing file: TEST_DIR/PID-base
117Format specific information:
118    compat: 1.1
119    lazy refcounts: false
120    refcount bits: 16
121    corrupt: false
122
123read 1048576/1048576 bytes at offset 0
1241 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
125
126read 1048576/1048576 bytes at offset 1048576
1271 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
128
129== Resize tests ==
130=== preallocation=off ===
131Formatting 'TEST_DIR/PID-base', fmt=qcow2 size=6442450944 cluster_size=65536 lazy_refcounts=off refcount_bits=16
132
133Formatting 'TEST_DIR/PID-top', fmt=qcow2 size=1073741824 backing_file=TEST_DIR/PID-base cluster_size=65536 lazy_refcounts=off refcount_bits=16
134
135wrote 65536/65536 bytes at offset 5368709120
13664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
137
138Image resized.
139
140read 65536/65536 bytes at offset 5368709120
14164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
142
1431 GiB (0x40000000) bytes not allocated at offset 0 bytes (0x0)
1447 GiB (0x1c0000000) bytes     allocated at offset 1 GiB (0x40000000)
145
146[{ "start": 0, "length": 1073741824, "depth": 1, "zero": true, "data": false},
147{ "start": 1073741824, "length": 7516192768, "depth": 0, "zero": true, "data": false}]
148
149=== preallocation=metadata ===
150Formatting 'TEST_DIR/PID-base', fmt=qcow2 size=34359738368 cluster_size=65536 lazy_refcounts=off refcount_bits=16
151
152Formatting 'TEST_DIR/PID-top', fmt=qcow2 size=32212254720 backing_file=TEST_DIR/PID-base cluster_size=65536 lazy_refcounts=off refcount_bits=16
153
154wrote 65536/65536 bytes at offset 33285996544
15564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
156
157Image resized.
158
159read 65536/65536 bytes at offset 33285996544
16064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
161
16230 GiB (0x780000000) bytes not allocated at offset 0 bytes (0x0)
1633 GiB (0xc0000000) bytes     allocated at offset 30 GiB (0x780000000)
164
165[{ "start": 0, "length": 32212254720, "depth": 1, "zero": true, "data": false},
166{ "start": 32212254720, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 327680},
167{ "start": 32749125632, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 537264128},
168{ "start": 33285996544, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 1074200576},
169{ "start": 33822867456, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 1611137024},
170{ "start": 34359738368, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 2148139008},
171{ "start": 34896609280, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 2685075456}]
172
173=== preallocation=falloc ===
174Formatting 'TEST_DIR/PID-base', fmt=qcow2 size=10485760 cluster_size=65536 lazy_refcounts=off refcount_bits=16
175
176Formatting 'TEST_DIR/PID-top', fmt=qcow2 size=5242880 backing_file=TEST_DIR/PID-base cluster_size=65536 lazy_refcounts=off refcount_bits=16
177
178wrote 65536/65536 bytes at offset 9437184
17964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
180
181Image resized.
182
183read 65536/65536 bytes at offset 9437184
18464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
185
1865 MiB (0x500000) bytes not allocated at offset 0 bytes (0x0)
18710 MiB (0xa00000) bytes     allocated at offset 5 MiB (0x500000)
188
189[{ "start": 0, "length": 5242880, "depth": 1, "zero": true, "data": false},
190{ "start": 5242880, "length": 10485760, "depth": 0, "zero": false, "data": true, "offset": 327680}]
191
192=== preallocation=full ===
193Formatting 'TEST_DIR/PID-base', fmt=qcow2 size=16777216 cluster_size=65536 lazy_refcounts=off refcount_bits=16
194
195Formatting 'TEST_DIR/PID-top', fmt=qcow2 size=8388608 backing_file=TEST_DIR/PID-base cluster_size=65536 lazy_refcounts=off refcount_bits=16
196
197wrote 65536/65536 bytes at offset 11534336
19864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
199
200Image resized.
201
202read 65536/65536 bytes at offset 11534336
20364 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
204
2058 MiB (0x800000) bytes not allocated at offset 0 bytes (0x0)
2064 MiB (0x400000) bytes     allocated at offset 8 MiB (0x800000)
207
208[{ "start": 0, "length": 8388608, "depth": 1, "zero": true, "data": false},
209{ "start": 8388608, "length": 4194304, "depth": 0, "zero": false, "data": true, "offset": 327680}]
210
211=== preallocation=off ===
212Formatting 'TEST_DIR/PID-base', fmt=qcow2 size=393216 cluster_size=65536 lazy_refcounts=off refcount_bits=16
213
214Formatting 'TEST_DIR/PID-top', fmt=qcow2 size=259072 backing_file=TEST_DIR/PID-base cluster_size=65536 lazy_refcounts=off refcount_bits=16
215
216wrote 65536/65536 bytes at offset 259072
21764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
218
219Image resized.
220
221read 65536/65536 bytes at offset 259072
22264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
223
224192 KiB (0x30000) bytes not allocated at offset 0 bytes (0x0)
225320 KiB (0x50000) bytes     allocated at offset 192 KiB (0x30000)
226
227[{ "start": 0, "length": 196608, "depth": 1, "zero": true, "data": false},
228{ "start": 196608, "length": 65536, "depth": 0, "zero": false, "data": true, "offset": 327680},
229{ "start": 262144, "length": 262144, "depth": 0, "zero": true, "data": false}]
230
231=== preallocation=off ===
232Formatting 'TEST_DIR/PID-base', fmt=qcow2 size=409600 cluster_size=65536 lazy_refcounts=off refcount_bits=16
233
234Formatting 'TEST_DIR/PID-top', fmt=qcow2 size=262144 backing_file=TEST_DIR/PID-base cluster_size=65536 lazy_refcounts=off refcount_bits=16
235
236wrote 65536/65536 bytes at offset 344064
23764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
238
239Image resized.
240
241read 65536/65536 bytes at offset 344064
24264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
243
244256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
245256 KiB (0x40000) bytes     allocated at offset 256 KiB (0x40000)
246
247[{ "start": 0, "length": 262144, "depth": 1, "zero": true, "data": false},
248{ "start": 262144, "length": 262144, "depth": 0, "zero": true, "data": false}]
249
250=== preallocation=off ===
251Formatting 'TEST_DIR/PID-base', fmt=qcow2 size=524288 cluster_size=65536 lazy_refcounts=off refcount_bits=16
252
253Formatting 'TEST_DIR/PID-top', fmt=qcow2 size=262144 backing_file=TEST_DIR/PID-base cluster_size=65536 lazy_refcounts=off refcount_bits=16
254
255wrote 65536/65536 bytes at offset 446464
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 446464
26164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
262
263256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
264244 KiB (0x3d000) bytes     allocated at offset 256 KiB (0x40000)
265
266[{ "start": 0, "length": 262144, "depth": 1, "zero": true, "data": false},
267{ "start": 262144, "length": 249856, "depth": 0, "zero": true, "data": false}]
268
269