xref: /openbmc/qemu/tests/qemu-iotests/274.out (revision c1774bdb)
1== Commit tests ==
2wrote 2097152/2097152 bytes at offset 0
32 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
4
5=== Check visible data ===
6read 1048576/1048576 bytes at offset 0
71 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
8
9read 1048576/1048576 bytes at offset 1048576
101 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
11
12=== Checking allocation status ===
131048576/1048576 bytes allocated at offset 0 bytes
141048576/1048576 bytes allocated at offset 1 MiB
15
160/1048576 bytes allocated at offset 0 bytes
170/0 bytes allocated at offset 1 MiB
18
190/1048576 bytes allocated at offset 0 bytes
200/1048576 bytes allocated at offset 1 MiB
21
22=== Checking map ===
23[{ "start": 0, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": 327680}]
24
25Offset          Length          Mapped to       File
260               0x200000        0x50000         TEST_DIR/PID-base
27
28[{ "start": 0, "length": 1048576, "depth": 1, "present": true, "zero": false, "data": true, "compressed": false, "offset": 327680}]
29
30Offset          Length          Mapped to       File
310               0x100000        0x50000         TEST_DIR/PID-base
32
33[{ "start": 0, "length": 1048576, "depth": 2, "present": true, "zero": false, "data": true, "compressed": false, "offset": 327680},
34{ "start": 1048576, "length": 1048576, "depth": 0, "present": false, "zero": true, "data": false, "compressed": false}]
35
36Offset          Length          Mapped to       File
370               0x100000        0x50000         TEST_DIR/PID-base
38
39=== Testing qemu-img commit (top -> mid) ===
40Image committed.
41
42image: TEST_IMG
43file format: IMGFMT
44virtual size: 2 MiB (2097152 bytes)
45cluster_size: 65536
46backing file: TEST_DIR/PID-base
47backing file format: IMGFMT
48Format specific information:
49    compat: 1.1
50    compression type: COMPRESSION_TYPE
51    lazy refcounts: false
52    refcount bits: 16
53    corrupt: false
54    extended l2: false
55
56read 1048576/1048576 bytes at offset 0
571 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
58
59read 1048576/1048576 bytes at offset 1048576
601 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
61
62=== Testing HMP commit (top -> mid) ===
63wrote 2097152/2097152 bytes at offset 0
642 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
65
66{"execute": "human-monitor-command", "arguments": {"command-line": "commit drive0"}}
67{"return": ""}
68image: TEST_IMG
69file format: IMGFMT
70virtual size: 2 MiB (2097152 bytes)
71cluster_size: 65536
72backing file: TEST_DIR/PID-base
73backing file format: IMGFMT
74Format specific information:
75    compat: 1.1
76    compression type: COMPRESSION_TYPE
77    lazy refcounts: false
78    refcount bits: 16
79    corrupt: false
80    extended l2: false
81
82read 1048576/1048576 bytes at offset 0
831 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
84
85read 1048576/1048576 bytes at offset 1048576
861 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
87
88=== Testing QMP active commit (top -> mid) ===
89wrote 2097152/2097152 bytes at offset 0
902 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
91
92{"execute": "block-commit", "arguments": {"auto-dismiss": false, "base-node": "mid", "device": "top", "job-id": "job0"}}
93{"return": {}}
94{"execute": "job-complete", "arguments": {"id": "job0"}}
95{"return": {}}
96{"data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
97{"data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
98{"execute": "job-dismiss", "arguments": {"id": "job0"}}
99{"return": {}}
100image: TEST_IMG
101file format: IMGFMT
102virtual size: 2 MiB (2097152 bytes)
103cluster_size: 65536
104backing file: TEST_DIR/PID-base
105backing file format: IMGFMT
106Format specific information:
107    compat: 1.1
108    compression type: COMPRESSION_TYPE
109    lazy refcounts: false
110    refcount bits: 16
111    corrupt: false
112    extended l2: false
113
114read 1048576/1048576 bytes at offset 0
1151 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
116
117read 1048576/1048576 bytes at offset 1048576
1181 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
119
120=== Testing qemu-img commit (top -> base) ===
121wrote 2097152/2097152 bytes at offset 0
1222 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
123
124Image committed.
125
126image: TEST_IMG
127file format: IMGFMT
128virtual size: 2 MiB (2097152 bytes)
129cluster_size: 65536
130Format specific information:
131    compat: 1.1
132    compression type: COMPRESSION_TYPE
133    lazy refcounts: false
134    refcount bits: 16
135    corrupt: false
136    extended l2: false
137
138read 1048576/1048576 bytes at offset 0
1391 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
140
141read 1048576/1048576 bytes at offset 1048576
1421 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
143
144=== Testing QMP active commit (top -> base) ===
145wrote 2097152/2097152 bytes at offset 0
1462 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
147
148{"execute": "block-commit", "arguments": {"auto-dismiss": false, "base-node": "base", "device": "top", "job-id": "job0"}}
149{"return": {}}
150{"execute": "job-complete", "arguments": {"id": "job0"}}
151{"return": {}}
152{"data": {"device": "job0", "len": 1048576, "offset": 1048576, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
153{"data": {"device": "job0", "len": 1048576, "offset": 1048576, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
154{"execute": "job-dismiss", "arguments": {"id": "job0"}}
155{"return": {}}
156image: TEST_IMG
157file format: IMGFMT
158virtual size: 1 MiB (1048576 bytes)
159cluster_size: 65536
160backing file: TEST_DIR/PID-base
161backing file format: IMGFMT
162Format specific information:
163    compat: 1.1
164    compression type: COMPRESSION_TYPE
165    lazy refcounts: false
166    refcount bits: 16
167    corrupt: false
168    extended l2: false
169
170read 1048576/1048576 bytes at offset 0
1711 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
172
173read 1048576/1048576 bytes at offset 1048576
1741 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
175
176== Resize tests ==
177=== preallocation=off ===
178wrote 65536/65536 bytes at offset 5368709120
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 5368709120
18464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
185
1861 GiB (0x40000000) bytes not allocated at offset 0 bytes (0x0)
1877 GiB (0x1c0000000) bytes     allocated at offset 1 GiB (0x40000000)
188
189[{ "start": 0, "length": 1073741824, "depth": 1, "present": false, "zero": true, "data": false, "compressed": false},
190{ "start": 1073741824, "length": 7516192768, "depth": 0, "present": true, "zero": true, "data": false, "compressed": false}]
191
192=== preallocation=metadata ===
193wrote 65536/65536 bytes at offset 33285996544
19464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
195
196Image resized.
197
198read 65536/65536 bytes at offset 33285996544
19964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
200
20130 GiB (0x780000000) bytes not allocated at offset 0 bytes (0x0)
2023 GiB (0xc0000000) bytes     allocated at offset 30 GiB (0x780000000)
203
204[{ "start": 0, "length": 32212254720, "depth": 1, "present": false, "zero": true, "data": false, "compressed": false},
205{ "start": 32212254720, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "compressed": false, "offset": 327680},
206{ "start": 32749125632, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "compressed": false, "offset": 537264128},
207{ "start": 33285996544, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "compressed": false, "offset": 1074200576},
208{ "start": 33822867456, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "compressed": false, "offset": 1611137024},
209{ "start": 34359738368, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "compressed": false, "offset": 2148139008},
210{ "start": 34896609280, "length": 536870912, "depth": 0, "present": true, "zero": true, "data": false, "compressed": false, "offset": 2685075456}]
211
212=== preallocation=falloc ===
213wrote 65536/65536 bytes at offset 9437184
21464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
215
216Image resized.
217
218read 65536/65536 bytes at offset 9437184
21964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
220
2215 MiB (0x500000) bytes not allocated at offset 0 bytes (0x0)
22210 MiB (0xa00000) bytes     allocated at offset 5 MiB (0x500000)
223
224[{ "start": 0, "length": 5242880, "depth": 1, "present": false, "zero": true, "data": false, "compressed": false},
225{ "start": 5242880, "length": 10485760, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": 327680}]
226
227=== preallocation=full ===
228wrote 65536/65536 bytes at offset 11534336
22964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
230
231Image resized.
232
233read 65536/65536 bytes at offset 11534336
23464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
235
2368 MiB (0x800000) bytes not allocated at offset 0 bytes (0x0)
2374 MiB (0x400000) bytes     allocated at offset 8 MiB (0x800000)
238
239[{ "start": 0, "length": 8388608, "depth": 1, "present": false, "zero": true, "data": false, "compressed": false},
240{ "start": 8388608, "length": 4194304, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": 327680}]
241
242=== preallocation=off ===
243wrote 65536/65536 bytes at offset 259072
24464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
245
246Image resized.
247
248read 65536/65536 bytes at offset 259072
24964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
250
251192 KiB (0x30000) bytes not allocated at offset 0 bytes (0x0)
252320 KiB (0x50000) bytes     allocated at offset 192 KiB (0x30000)
253
254[{ "start": 0, "length": 196608, "depth": 1, "present": false, "zero": true, "data": false, "compressed": false},
255{ "start": 196608, "length": 65536, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": 327680},
256{ "start": 262144, "length": 262144, "depth": 0, "present": true, "zero": true, "data": false, "compressed": false}]
257
258=== preallocation=off ===
259wrote 65536/65536 bytes at offset 344064
26064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
261
262Image resized.
263
264read 65536/65536 bytes at offset 344064
26564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
266
267256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
268256 KiB (0x40000) bytes     allocated at offset 256 KiB (0x40000)
269
270[{ "start": 0, "length": 262144, "depth": 1, "present": false, "zero": true, "data": false, "compressed": false},
271{ "start": 262144, "length": 262144, "depth": 0, "present": true, "zero": true, "data": false, "compressed": false}]
272
273=== preallocation=off ===
274wrote 65536/65536 bytes at offset 446464
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 446464
28064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
281
282256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
283244 KiB (0x3d000) bytes     allocated at offset 256 KiB (0x40000)
284
285[{ "start": 0, "length": 262144, "depth": 1, "present": false, "zero": true, "data": false, "compressed": false},
286{ "start": 262144, "length": 249856, "depth": 0, "present": true, "zero": true, "data": false, "compressed": false}]
287
288