xref: /qemu/tests/qemu-iotests/274.out (revision 1a1e889f3576f60f29ccb71a70f53907ad95a6a7)
1 == Commit tests ==
2 wrote 2097152/2097152 bytes at offset 0
3 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
4 
5 === Check visible data ===
6 read 1048576/1048576 bytes at offset 0
7 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
8 
9 read 1048576/1048576 bytes at offset 1048576
10 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
11 
12 === Checking allocation status ===
13 1048576/1048576 bytes allocated at offset 0 bytes
14 1048576/1048576 bytes allocated at offset 1 MiB
15 
16 0/1048576 bytes allocated at offset 0 bytes
17 0/0 bytes allocated at offset 1 MiB
18 
19 0/1048576 bytes allocated at offset 0 bytes
20 0/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 
25 Offset          Length          Mapped to       File
26 0               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 
30 Offset          Length          Mapped to       File
31 0               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 
36 Offset          Length          Mapped to       File
37 0               0x100000        0x50000         TEST_DIR/PID-base
38 
39 === Testing qemu-img commit (top -> mid) ===
40 Image committed.
41 
42 image: TEST_IMG
43 file format: IMGFMT
44 virtual size: 2 MiB (2097152 bytes)
45 cluster_size: 65536
46 backing file: TEST_DIR/PID-base
47 backing file format: IMGFMT
48 Format 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 
56 read 1048576/1048576 bytes at offset 0
57 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
58 
59 read 1048576/1048576 bytes at offset 1048576
60 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
61 
62 === Testing HMP commit (top -> mid) ===
63 wrote 2097152/2097152 bytes at offset 0
64 2 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": ""}
68 image: TEST_IMG
69 file format: IMGFMT
70 virtual size: 2 MiB (2097152 bytes)
71 cluster_size: 65536
72 backing file: TEST_DIR/PID-base
73 backing file format: IMGFMT
74 Format 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 
82 read 1048576/1048576 bytes at offset 0
83 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
84 
85 read 1048576/1048576 bytes at offset 1048576
86 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
87 
88 === Testing QMP active commit (top -> mid) ===
89 wrote 2097152/2097152 bytes at offset 0
90 2 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": {}}
100 image: TEST_IMG
101 file format: IMGFMT
102 virtual size: 2 MiB (2097152 bytes)
103 cluster_size: 65536
104 backing file: TEST_DIR/PID-base
105 backing file format: IMGFMT
106 Format 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 
114 read 1048576/1048576 bytes at offset 0
115 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
116 
117 read 1048576/1048576 bytes at offset 1048576
118 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
119 
120 === Testing qemu-img commit (top -> base) ===
121 wrote 2097152/2097152 bytes at offset 0
122 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
123 
124 Image committed.
125 
126 image: TEST_IMG
127 file format: IMGFMT
128 virtual size: 2 MiB (2097152 bytes)
129 cluster_size: 65536
130 Format 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 
138 read 1048576/1048576 bytes at offset 0
139 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
140 
141 read 1048576/1048576 bytes at offset 1048576
142 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
143 
144 === Testing QMP active commit (top -> base) ===
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 {"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": {}}
156 image: TEST_IMG
157 file format: IMGFMT
158 virtual size: 1 MiB (1048576 bytes)
159 cluster_size: 65536
160 backing file: TEST_DIR/PID-base
161 backing file format: IMGFMT
162 Format 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 
170 read 1048576/1048576 bytes at offset 0
171 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
172 
173 read 1048576/1048576 bytes at offset 1048576
174 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
175 
176 == Resize tests ==
177 === preallocation=off ===
178 wrote 65536/65536 bytes at offset 5368709120
179 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
180 
181 Image resized.
182 
183 read 65536/65536 bytes at offset 5368709120
184 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
185 
186 1 GiB (0x40000000) bytes not allocated at offset 0 bytes (0x0)
187 7 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 ===
193 wrote 65536/65536 bytes at offset 33285996544
194 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
195 
196 Image resized.
197 
198 read 65536/65536 bytes at offset 33285996544
199 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
200 
201 30 GiB (0x780000000) bytes not allocated at offset 0 bytes (0x0)
202 3 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 ===
213 wrote 65536/65536 bytes at offset 9437184
214 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
215 
216 Image resized.
217 
218 read 65536/65536 bytes at offset 9437184
219 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
220 
221 5 MiB (0x500000) bytes not allocated at offset 0 bytes (0x0)
222 10 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 ===
228 wrote 65536/65536 bytes at offset 11534336
229 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
230 
231 Image resized.
232 
233 read 65536/65536 bytes at offset 11534336
234 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
235 
236 8 MiB (0x800000) bytes not allocated at offset 0 bytes (0x0)
237 4 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 ===
243 wrote 65536/65536 bytes at offset 259072
244 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
245 
246 Image resized.
247 
248 read 65536/65536 bytes at offset 259072
249 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
250 
251 192 KiB (0x30000) bytes not allocated at offset 0 bytes (0x0)
252 320 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 ===
259 wrote 65536/65536 bytes at offset 344064
260 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
261 
262 Image resized.
263 
264 read 65536/65536 bytes at offset 344064
265 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
266 
267 256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
268 256 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 ===
274 wrote 65536/65536 bytes at offset 446464
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 446464
280 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
281 
282 256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
283 244 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