block/amend: refactor qcow2 amend options
[qemu/ar7.git] / tests / qemu-iotests / 274.out
blobd248a1e21b61ef7c6b165677da67284ef040ec42
1 == Commit tests ==
2 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
4 Formatting 'TEST_DIR/PID-mid', fmt=qcow2 cluster_size=65536 compression_type=zlib size=1048576 backing_file=TEST_DIR/PID-base lazy_refcounts=off refcount_bits=16
6 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 compression_type=zlib size=2097152 backing_file=TEST_DIR/PID-mid 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
28 === Checking map ===
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) ===
46 Image committed.
48 image: TEST_IMG
49 file format: IMGFMT
50 virtual size: 2 MiB (2097152 bytes)
51 cluster_size: 65536
52 backing file: TEST_DIR/PID-base
53 Format specific information:
54     compat: 1.1
55     compression type: zlib
56     lazy refcounts: false
57     refcount bits: 16
58     corrupt: false
60 read 1048576/1048576 bytes at offset 0
61 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
63 read 1048576/1048576 bytes at offset 1048576
64 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
66 === Testing HMP commit (top -> mid) ===
67 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
69 Formatting 'TEST_DIR/PID-mid', fmt=qcow2 cluster_size=65536 compression_type=zlib size=1048576 backing_file=TEST_DIR/PID-base lazy_refcounts=off refcount_bits=16
71 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 compression_type=zlib size=2097152 backing_file=TEST_DIR/PID-mid lazy_refcounts=off refcount_bits=16
73 wrote 2097152/2097152 bytes at offset 0
74 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
76 {"execute": "human-monitor-command", "arguments": {"command-line": "commit drive0"}}
77 {"return": ""}
78 image: TEST_IMG
79 file format: IMGFMT
80 virtual size: 2 MiB (2097152 bytes)
81 cluster_size: 65536
82 backing file: TEST_DIR/PID-base
83 Format specific information:
84     compat: 1.1
85     compression type: zlib
86     lazy refcounts: false
87     refcount bits: 16
88     corrupt: false
90 read 1048576/1048576 bytes at offset 0
91 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
93 read 1048576/1048576 bytes at offset 1048576
94 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
96 === Testing QMP active commit (top -> mid) ===
97 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 compression_type=zlib size=2097152 lazy_refcounts=off refcount_bits=16
99 Formatting 'TEST_DIR/PID-mid', fmt=qcow2 cluster_size=65536 compression_type=zlib size=1048576 backing_file=TEST_DIR/PID-base lazy_refcounts=off refcount_bits=16
101 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 compression_type=zlib size=2097152 backing_file=TEST_DIR/PID-mid lazy_refcounts=off refcount_bits=16
103 wrote 2097152/2097152 bytes at offset 0
104 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
106 {"execute": "block-commit", "arguments": {"auto-dismiss": false, "base-node": "mid", "device": "top", "job-id": "job0"}}
107 {"return": {}}
108 {"execute": "job-complete", "arguments": {"id": "job0"}}
109 {"return": {}}
110 {"data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
111 {"data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
112 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
113 {"return": {}}
114 image: TEST_IMG
115 file format: IMGFMT
116 virtual size: 2 MiB (2097152 bytes)
117 cluster_size: 65536
118 backing file: TEST_DIR/PID-base
119 Format specific information:
120     compat: 1.1
121     compression type: zlib
122     lazy refcounts: false
123     refcount bits: 16
124     corrupt: false
126 read 1048576/1048576 bytes at offset 0
127 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
129 read 1048576/1048576 bytes at offset 1048576
130 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
132 == Resize tests ==
133 === preallocation=off ===
134 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 compression_type=zlib size=6442450944 lazy_refcounts=off refcount_bits=16
136 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 compression_type=zlib size=1073741824 backing_file=TEST_DIR/PID-base lazy_refcounts=off refcount_bits=16
138 wrote 65536/65536 bytes at offset 5368709120
139 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
141 Image resized.
143 read 65536/65536 bytes at offset 5368709120
144 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
146 1 GiB (0x40000000) bytes not allocated at offset 0 bytes (0x0)
147 7 GiB (0x1c0000000) bytes     allocated at offset 1 GiB (0x40000000)
149 [{ "start": 0, "length": 1073741824, "depth": 1, "zero": true, "data": false},
150 { "start": 1073741824, "length": 7516192768, "depth": 0, "zero": true, "data": false}]
152 === preallocation=metadata ===
153 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 compression_type=zlib size=34359738368 lazy_refcounts=off refcount_bits=16
155 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 compression_type=zlib size=32212254720 backing_file=TEST_DIR/PID-base lazy_refcounts=off refcount_bits=16
157 wrote 65536/65536 bytes at offset 33285996544
158 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
160 Image resized.
162 read 65536/65536 bytes at offset 33285996544
163 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
165 30 GiB (0x780000000) bytes not allocated at offset 0 bytes (0x0)
166 3 GiB (0xc0000000) bytes     allocated at offset 30 GiB (0x780000000)
168 [{ "start": 0, "length": 32212254720, "depth": 1, "zero": true, "data": false},
169 { "start": 32212254720, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 327680},
170 { "start": 32749125632, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 537264128},
171 { "start": 33285996544, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 1074200576},
172 { "start": 33822867456, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 1611137024},
173 { "start": 34359738368, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 2148139008},
174 { "start": 34896609280, "length": 536870912, "depth": 0, "zero": true, "data": false, "offset": 2685075456}]
176 === preallocation=falloc ===
177 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 compression_type=zlib size=10485760 lazy_refcounts=off refcount_bits=16
179 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 compression_type=zlib size=5242880 backing_file=TEST_DIR/PID-base lazy_refcounts=off refcount_bits=16
181 wrote 65536/65536 bytes at offset 9437184
182 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
184 Image resized.
186 read 65536/65536 bytes at offset 9437184
187 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
189 5 MiB (0x500000) bytes not allocated at offset 0 bytes (0x0)
190 10 MiB (0xa00000) bytes     allocated at offset 5 MiB (0x500000)
192 [{ "start": 0, "length": 5242880, "depth": 1, "zero": true, "data": false},
193 { "start": 5242880, "length": 10485760, "depth": 0, "zero": false, "data": true, "offset": 327680}]
195 === preallocation=full ===
196 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 compression_type=zlib size=16777216 lazy_refcounts=off refcount_bits=16
198 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 compression_type=zlib size=8388608 backing_file=TEST_DIR/PID-base lazy_refcounts=off refcount_bits=16
200 wrote 65536/65536 bytes at offset 11534336
201 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
203 Image resized.
205 read 65536/65536 bytes at offset 11534336
206 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
208 8 MiB (0x800000) bytes not allocated at offset 0 bytes (0x0)
209 4 MiB (0x400000) bytes     allocated at offset 8 MiB (0x800000)
211 [{ "start": 0, "length": 8388608, "depth": 1, "zero": true, "data": false},
212 { "start": 8388608, "length": 4194304, "depth": 0, "zero": false, "data": true, "offset": 327680}]
214 === preallocation=off ===
215 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 compression_type=zlib size=393216 lazy_refcounts=off refcount_bits=16
217 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 compression_type=zlib size=259072 backing_file=TEST_DIR/PID-base lazy_refcounts=off refcount_bits=16
219 wrote 65536/65536 bytes at offset 259072
220 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
222 Image resized.
224 read 65536/65536 bytes at offset 259072
225 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
227 192 KiB (0x30000) bytes not allocated at offset 0 bytes (0x0)
228 320 KiB (0x50000) bytes     allocated at offset 192 KiB (0x30000)
230 [{ "start": 0, "length": 196608, "depth": 1, "zero": true, "data": false},
231 { "start": 196608, "length": 65536, "depth": 0, "zero": false, "data": true, "offset": 327680},
232 { "start": 262144, "length": 262144, "depth": 0, "zero": true, "data": false}]
234 === preallocation=off ===
235 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 compression_type=zlib size=409600 lazy_refcounts=off refcount_bits=16
237 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 compression_type=zlib size=262144 backing_file=TEST_DIR/PID-base lazy_refcounts=off refcount_bits=16
239 wrote 65536/65536 bytes at offset 344064
240 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
242 Image resized.
244 read 65536/65536 bytes at offset 344064
245 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
247 256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
248 256 KiB (0x40000) bytes     allocated at offset 256 KiB (0x40000)
250 [{ "start": 0, "length": 262144, "depth": 1, "zero": true, "data": false},
251 { "start": 262144, "length": 262144, "depth": 0, "zero": true, "data": false}]
253 === preallocation=off ===
254 Formatting 'TEST_DIR/PID-base', fmt=qcow2 cluster_size=65536 compression_type=zlib size=524288 lazy_refcounts=off refcount_bits=16
256 Formatting 'TEST_DIR/PID-top', fmt=qcow2 cluster_size=65536 compression_type=zlib size=262144 backing_file=TEST_DIR/PID-base lazy_refcounts=off refcount_bits=16
258 wrote 65536/65536 bytes at offset 446464
259 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
261 Image resized.
263 read 65536/65536 bytes at offset 446464
264 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
266 256 KiB (0x40000) bytes not allocated at offset 0 bytes (0x0)
267 244 KiB (0x3d000) bytes     allocated at offset 256 KiB (0x40000)
269 [{ "start": 0, "length": 262144, "depth": 1, "zero": true, "data": false},
270 { "start": 262144, "length": 249856, "depth": 0, "zero": true, "data": false}]