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
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
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
8 wrote 2097152/2097152 bytes at offset 0
9 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
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)
15 read 1048576/1048576 bytes at offset 1048576
16 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
18 === Checking allocation status ===
19 1048576/1048576 bytes allocated at offset 0 bytes
20 1048576/1048576 bytes allocated at offset 1 MiB
22 0/1048576 bytes allocated at offset 0 bytes
23 0/0 bytes allocated at offset 1 MiB
25 0/1048576 bytes allocated at offset 0 bytes
26 0/1048576 bytes allocated at offset 1 MiB
29 [{ "start": 0, "length": 2097152, "depth": 0, "zero": false, "data": true, "offset": 327680}]
31 Offset Length Mapped to File
32 0 0x200000 0x50000 TEST_DIR/PID-base
34 [{ "start": 0, "length": 1048576, "depth": 1, "zero": false, "data": true, "offset": 327680}]
36 Offset Length Mapped to File
37 0 0x100000 0x50000 TEST_DIR/PID-base
39 [{ "start": 0, "length": 1048576, "depth": 2, "zero": false, "data": true, "offset": 327680},
40 { "start": 1048576, "length": 1048576, "depth": 0, "zero": true, "data": false}]
42 Offset Length Mapped to File
43 0 0x100000 0x50000 TEST_DIR/PID-base
45 === Testing qemu-img commit (top -> mid) ===
50 virtual size: 2 MiB (2097152 bytes)
52 backing file: TEST_DIR/PID-base
53 backing file format: IMGFMT
54 Format specific information:
56 compression type: zlib
62 read 1048576/1048576 bytes at offset 0
63 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
65 read 1048576/1048576 bytes at offset 1048576
66 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
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
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
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
75 wrote 2097152/2097152 bytes at offset 0
76 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
78 {"execute": "human-monitor-command", "arguments": {"command-line": "commit drive0"}}
82 virtual size: 2 MiB (2097152 bytes)
84 backing file: TEST_DIR/PID-base
85 backing file format: IMGFMT
86 Format specific information:
88 compression type: zlib
94 read 1048576/1048576 bytes at offset 0
95 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
97 read 1048576/1048576 bytes at offset 1048576
98 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
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
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
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
107 wrote 2097152/2097152 bytes at offset 0
108 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
110 {"execute": "block-commit", "arguments": {"auto-dismiss": false, "base-node": "mid", "device": "top", "job-id": "job0"}}
112 {"execute": "job-complete", "arguments": {"id": "job0"}}
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"}}
120 virtual size: 2 MiB (2097152 bytes)
122 backing file: TEST_DIR/PID-base
123 backing file format: IMGFMT
124 Format specific information:
126 compression type: zlib
127 lazy refcounts: false
132 read 1048576/1048576 bytes at offset 0
133 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
135 read 1048576/1048576 bytes at offset 1048576
136 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
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
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
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
145 wrote 2097152/2097152 bytes at offset 0
146 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
152 virtual size: 2 MiB (2097152 bytes)
154 Format specific information:
156 compression type: zlib
157 lazy refcounts: false
162 read 1048576/1048576 bytes at offset 0
163 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
165 read 1048576/1048576 bytes at offset 1048576
166 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
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
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
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
175 wrote 2097152/2097152 bytes at offset 0
176 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
178 {"execute": "block-commit", "arguments": {"auto-dismiss": false, "base-node": "base", "device": "top", "job-id": "job0"}}
180 {"execute": "job-complete", "arguments": {"id": "job0"}}
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"}}
188 virtual size: 1 MiB (1048576 bytes)
190 backing file: TEST_DIR/PID-base
191 backing file format: IMGFMT
192 Format specific information:
194 compression type: zlib
195 lazy refcounts: false
200 read 1048576/1048576 bytes at offset 0
201 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
203 read 1048576/1048576 bytes at offset 1048576
204 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
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
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
212 wrote 65536/65536 bytes at offset 5368709120
213 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
217 read 65536/65536 bytes at offset 5368709120
218 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
220 1 GiB (0x40000000) bytes not allocated at offset 0 bytes (0x0)
221 7 GiB (0x1c0000000) bytes allocated at offset 1 GiB (0x40000000)
223 [{ "start": 0, "length": 1073741824, "depth": 1, "zero": true, "data": false},
224 { "start": 1073741824, "length": 7516192768, "depth": 0, "zero": true, "data": false}]
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
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
231 wrote 65536/65536 bytes at offset 33285996544
232 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
236 read 65536/65536 bytes at offset 33285996544
237 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
239 30 GiB (0x780000000) bytes not allocated at offset 0 bytes (0x0)
240 3 GiB (0xc0000000) bytes allocated at offset 30 GiB (0x780000000)
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}]
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
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
255 wrote 65536/65536 bytes at offset 9437184
256 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
260 read 65536/65536 bytes at offset 9437184
261 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
263 5 MiB (0x500000) bytes not allocated at offset 0 bytes (0x0)
264 10 MiB (0xa00000) bytes allocated at offset 5 MiB (0x500000)
266 [{ "start": 0, "length": 5242880, "depth": 1, "zero": true, "data": false},
267 { "start": 5242880, "length": 10485760, "depth": 0, "zero": false, "data": true, "offset": 327680}]
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
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
274 wrote 65536/65536 bytes at offset 11534336
275 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
279 read 65536/65536 bytes at offset 11534336
280 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
282 8 MiB (0x800000) bytes not allocated at offset 0 bytes (0x0)
283 4 MiB (0x400000) bytes allocated at offset 8 MiB (0x800000)
285 [{ "start": 0, "length": 8388608, "depth": 1, "zero": true, "data": false},
286 { "start": 8388608, "length": 4194304, "depth": 0, "zero": false, "data": true, "offset": 327680}]
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
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
293 wrote 65536/65536 bytes at offset 259072
294 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
298 read 65536/65536 bytes at offset 259072
299 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
301 192 KiB (0x30000) bytes not allocated at offset 0 bytes (0x0)
302 320 KiB (0x50000) bytes allocated at offset 192 KiB (0x30000)
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}]
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
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
313 wrote 65536/65536 bytes at offset 344064
314 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
318 read 65536/65536 bytes at offset 344064
319 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
321 256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
322 256 KiB (0x40000) bytes allocated at offset 256 KiB (0x40000)
324 [{ "start": 0, "length": 262144, "depth": 1, "zero": true, "data": false},
325 { "start": 262144, "length": 262144, "depth": 0, "zero": true, "data": false}]
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
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
332 wrote 65536/65536 bytes at offset 446464
333 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
337 read 65536/65536 bytes at offset 446464
338 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
340 256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
341 244 KiB (0x3d000) bytes allocated at offset 256 KiB (0x40000)
343 [{ "start": 0, "length": 262144, "depth": 1, "zero": true, "data": false},
344 { "start": 262144, "length": 249856, "depth": 0, "zero": true, "data": false}]