kvm: remove hard dependency on pci
[qemu.git] / tests / qemu-iotests / 051.out
blob4d3b1ff316b65ba92be2b67ea4442911552dfce2
1 QA output created by 051
2 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
3 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
5 === Unknown option ===
7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0
8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0
11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0
14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0
17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
20 === Unknown protocol option ===
22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=
23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt'
25 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on
26 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt'
28 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234
29 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt'
31 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo
32 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo: Block protocol 'file' doesn't support the option 'unknown_opt'
35 === Invalid format ===
37 Testing: -drive file=TEST_DIR/t.qcow2,format=foo
38 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo'
40 Testing: -drive file=TEST_DIR/t.qcow2,driver=foo
41 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo'
43 Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2
44 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format'
46 Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
47 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'
50 === Device without drive ===
52 Testing: -device virtio-scsi-pci -device scsi-hd
53 QEMU X.Y.Z monitor - type 'help' for more information
54 (qemu) QEMU_PROG: -device scsi-hd: drive property not set
57 === Overriding backing file ===
59 Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults
60 QEMU X.Y.Z monitor - type 'help' for more information
61 (qemu) info block
62 drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
63     Removable device: not locked, tray closed
64     Cache mode:       writeback
65     Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
66 (qemu) quit
68 Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
69 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
71 Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
72 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
74 Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
75 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
78 === Enable and disable lazy refcounting on the command line, plus some invalid values ===
80 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
81 QEMU X.Y.Z monitor - type 'help' for more information
82 (qemu) quit
84 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
85 QEMU X.Y.Z monitor - type 'help' for more information
86 (qemu) quit
88 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
89 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
91 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
92 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
94 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
95 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'
98 === With version 2 images enabling lazy refcounts must fail ===
100 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
101 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
102 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level
104 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
105 QEMU X.Y.Z monitor - type 'help' for more information
106 (qemu) quit
109 === No medium ===
111 Testing: -drive if=virtio
112 QEMU X.Y.Z monitor - type 'help' for more information
113 (qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
116 === Read-only ===
118 Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
119 QEMU X.Y.Z monitor - type 'help' for more information
120 (qemu) quit
123 === Cache modes ===
125 Testing: -drive driver=null-co,cache=none
126 QEMU X.Y.Z monitor - type 'help' for more information
127 (qemu) quit
129 Testing: -drive driver=null-co,cache=directsync
130 QEMU X.Y.Z monitor - type 'help' for more information
131 (qemu) quit
133 Testing: -drive driver=null-co,cache=writeback
134 QEMU X.Y.Z monitor - type 'help' for more information
135 (qemu) quit
137 Testing: -drive driver=null-co,cache=writethrough
138 QEMU X.Y.Z monitor - type 'help' for more information
139 (qemu) quit
141 Testing: -drive driver=null-co,cache=unsafe
142 QEMU X.Y.Z monitor - type 'help' for more information
143 (qemu) quit
145 Testing: -drive driver=null-co,cache=invalid_value
146 QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
148 Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
149 QEMU X.Y.Z monitor - type 'help' for more information
150 (qemu) info block
151 drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
152     Removable device: not locked, tray closed
153     Cache mode:       writeback
154     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
155 (qemu) info block file
157 file: TEST_DIR/t.qcow2 (file)
158     Cache mode:       writeback
159 (qemu) info block backing
160 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
161     Cache mode:       writeback, ignore flushes
162 (qemu) info block backing-file
164 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
165     Cache mode:       writeback, ignore flushes
166 (qemu) quit
168 Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
169 QEMU X.Y.Z monitor - type 'help' for more information
170 (qemu) info block
171 drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
172     Removable device: not locked, tray closed
173     Cache mode:       writethrough
174     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
175 (qemu) info block file
177 file: TEST_DIR/t.qcow2 (file)
178     Cache mode:       writeback
179 (qemu) info block backing
180 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
181     Cache mode:       writeback, ignore flushes
182 (qemu) info block backing-file
184 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
185     Cache mode:       writeback, ignore flushes
186 (qemu) quit
188 Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
189 QEMU X.Y.Z monitor - type 'help' for more information
190 (qemu) info block
191 drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
192     Removable device: not locked, tray closed
193     Cache mode:       writeback, ignore flushes
194     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
195 (qemu) info block file
197 file: TEST_DIR/t.qcow2 (file)
198     Cache mode:       writeback, ignore flushes
199 (qemu) info block backing
200 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
201     Cache mode:       writeback, ignore flushes
202 (qemu) info block backing-file
204 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
205     Cache mode:       writeback, ignore flushes
206 (qemu) quit
208 Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
209 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0: invalid cache option
212 === Specifying the protocol layer ===
214 Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
215 QEMU X.Y.Z monitor - type 'help' for more information
216 (qemu) quit
219 === Leaving out required options ===
221 Testing: -drive driver=file
222 QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
224 Testing: -drive driver=file,filename=
225 QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
227 Testing: -drive driver=nbd
228 QEMU_PROG: -drive driver=nbd: NBD server address missing
230 Testing: -drive driver=raw
231 QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
233 Testing: -drive file.driver=file
234 QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
236 Testing: -drive file.driver=nbd
237 QEMU_PROG: -drive file.driver=nbd: NBD server address missing
239 Testing: -drive file.driver=raw
240 QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
242 Testing: -drive foo=bar
243 QEMU_PROG: -drive foo=bar: Must specify either driver or file
246 === Specifying both an option and its legacy alias ===
248 Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
249 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678: 'throttling.iops-total' and its alias 'iops' can't be used at the same time
251 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
252 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678: 'throttling.iops-read' and its alias 'iops_rd' can't be used at the same time
254 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
255 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678: 'throttling.iops-write' and its alias 'iops_wr' can't be used at the same time
257 Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
258 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678: 'throttling.bps-total' and its alias 'bps' can't be used at the same time
260 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
261 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678: 'throttling.bps-read' and its alias 'bps_rd' can't be used at the same time
263 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
264 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678: 'throttling.bps-write' and its alias 'bps_wr' can't be used at the same time
266 Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
267 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678: 'throttling.iops-total-max' and its alias 'iops_max' can't be used at the same time
269 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
270 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678: 'throttling.iops-read-max' and its alias 'iops_rd_max' can't be used at the same time
272 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
273 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678: 'throttling.iops-write-max' and its alias 'iops_wr_max' can't be used at the same time
275 Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
276 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678: 'throttling.bps-total-max' and its alias 'bps_max' can't be used at the same time
278 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
279 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678: 'throttling.bps-read-max' and its alias 'bps_rd_max' can't be used at the same time
281 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
282 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678: 'throttling.bps-write-max' and its alias 'bps_wr_max' can't be used at the same time
284 Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
285 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678: 'throttling.iops-size' and its alias 'iops_size' can't be used at the same time
287 Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
288 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off: 'read-only' and its alias 'readonly' can't be used at the same time
291 === Catching negative/large throttling values ===
293 Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
294 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
296 Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
297 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
299 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
300 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
302 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
303 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
305 Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
306 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
308 Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
309 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
311 Testing: -drive file=TEST_DIR/t.qcow2,bps=0
312 QEMU X.Y.Z monitor - type 'help' for more information
313 (qemu) quit
315 Testing: -drive file=TEST_DIR/t.qcow2,bps=1
316 QEMU X.Y.Z monitor - type 'help' for more information
317 (qemu) quit
319 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
320 QEMU X.Y.Z monitor - type 'help' for more information
321 (qemu) quit
323 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
324 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
326 Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
327 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
330 === Parsing protocol from file name ===
332 Testing: -hda foo:bar
333 QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
335 Testing: -drive file=foo:bar
336 QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
338 Testing: -drive file.filename=foo:bar
339 QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
341 Testing: -hda file:TEST_DIR/t.qcow2
342 QEMU X.Y.Z monitor - type 'help' for more information
343 (qemu) quit
345 Testing: -drive file=file:TEST_DIR/t.qcow2
346 QEMU X.Y.Z monitor - type 'help' for more information
347 (qemu) quit
349 Testing: -drive file.filename=file:TEST_DIR/t.qcow2
350 QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
353 === Snapshot mode ===
355 wrote 4096/4096 bytes at offset 0
356 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
357 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
358 QEMU X.Y.Z monitor - type 'help' for more information
359 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
360 wrote 4096/4096 bytes at offset 0
361 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
362 (qemu) quit
364 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
365 QEMU X.Y.Z monitor - type 'help' for more information
366 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
367 wrote 4096/4096 bytes at offset 0
368 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
369 (qemu) quit
371 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
372 QEMU X.Y.Z monitor - type 'help' for more information
373 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
374 wrote 4096/4096 bytes at offset 0
375 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
376 (qemu) quit
378 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
379 QEMU X.Y.Z monitor - type 'help' for more information
380 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
381 wrote 4096/4096 bytes at offset 0
382 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
383 (qemu) quit
385 Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
386 QEMU X.Y.Z monitor - type 'help' for more information
387 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
388 wrote 4096/4096 bytes at offset 0
389 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
390 (qemu) quit
392 Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
393 QEMU X.Y.Z monitor - type 'help' for more information
394 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
395 wrote 4096/4096 bytes at offset 0
396 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
397 (qemu) quit
399 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
400 QEMU X.Y.Z monitor - type 'help' for more information
401 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
402 wrote 4096/4096 bytes at offset 0
403 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
404 (qemu) quit
406 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
407 QEMU X.Y.Z monitor - type 'help' for more information
408 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
409 wrote 4096/4096 bytes at offset 0
410 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
411 (qemu) quit
413 read 4096/4096 bytes at offset 0
414 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
415 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
416 QEMU X.Y.Z monitor - type 'help' for more information
417 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
418 wrote 4096/4096 bytes at offset 0
419 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
420 (qemu) quit
422 read 4096/4096 bytes at offset 0
423 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
424 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
425 QEMU X.Y.Z monitor - type 'help' for more information
426 (qemu) qemu-io drive0 "write -P 0x33 0 4k"
427 wrote 4096/4096 bytes at offset 0
428 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
429 (qemu) commit drive0
430 (qemu) quit
432 read 4096/4096 bytes at offset 0
433 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
434 *** done