xref: /openbmc/qemu/tests/qemu-iotests/051.out (revision 60e58bd9)
1QA output created by 051
2Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
3Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
4
5=== Unknown option ===
6
7Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0
8QEMU_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'
9
10Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0
11QEMU_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'
12
13Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0
14QEMU_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'
15
16Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0
17QEMU_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'
18
19
20=== Unknown protocol option ===
21
22Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=
23QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt'
24
25Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on
26QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt'
27
28Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234
29QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt'
30
31Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo
32QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo: Block protocol 'file' doesn't support the option 'unknown_opt'
33
34
35=== Invalid format ===
36
37Testing: -drive file=TEST_DIR/t.qcow2,format=foo
38QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo'
39
40Testing: -drive file=TEST_DIR/t.qcow2,driver=foo
41QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo'
42
43Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2
44QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format'
45
46Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
47QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'
48
49
50=== Device without drive ===
51
52Testing: -device VIRTIO_SCSI -device scsi-hd
53QEMU X.Y.Z monitor - type 'help' for more information
54(qemu) QEMU_PROG: -device scsi-hd: drive property not set
55
56
57=== Overriding backing file ===
58
59Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults
60QEMU X.Y.Z monitor - type 'help' for more information
61(qemu) info block
62drive0 (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
67
68Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
69QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
70
71Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
72QEMU_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
73
74Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
75QEMU_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
76
77
78=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
79
80Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
81QEMU X.Y.Z monitor - type 'help' for more information
82(qemu) quit
83
84Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
85QEMU X.Y.Z monitor - type 'help' for more information
86(qemu) quit
87
88Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
89QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
90
91Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
92QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
93
94Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
95QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'
96
97
98=== With version 2 images enabling lazy refcounts must fail ===
99
100Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
101Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
102QEMU_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
103
104Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
105QEMU X.Y.Z monitor - type 'help' for more information
106(qemu) quit
107
108
109=== No medium ===
110
111Testing: -drive if=virtio
112QEMU X.Y.Z monitor - type 'help' for more information
113(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
114
115
116=== Read-only ===
117
118Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
119QEMU X.Y.Z monitor - type 'help' for more information
120(qemu) quit
121
122
123=== Cache modes ===
124
125Testing: -drive driver=null-co,cache=none
126QEMU X.Y.Z monitor - type 'help' for more information
127(qemu) quit
128
129Testing: -drive driver=null-co,cache=directsync
130QEMU X.Y.Z monitor - type 'help' for more information
131(qemu) quit
132
133Testing: -drive driver=null-co,cache=writeback
134QEMU X.Y.Z monitor - type 'help' for more information
135(qemu) quit
136
137Testing: -drive driver=null-co,cache=writethrough
138QEMU X.Y.Z monitor - type 'help' for more information
139(qemu) quit
140
141Testing: -drive driver=null-co,cache=unsafe
142QEMU X.Y.Z monitor - type 'help' for more information
143(qemu) quit
144
145Testing: -drive driver=null-co,cache=invalid_value
146QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
147
148Testing: -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
149QEMU X.Y.Z monitor - type 'help' for more information
150(qemu) info block
151drive0 (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
156
157file: TEST_DIR/t.qcow2 (file)
158    Cache mode:       writeback
159(qemu) info block backing
160backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
161    Cache mode:       writeback, ignore flushes
162(qemu) info block backing-file
163
164backing-file: TEST_DIR/t.qcow2.base (file, read-only)
165    Cache mode:       writeback, ignore flushes
166(qemu) quit
167
168Testing: -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
169QEMU X.Y.Z monitor - type 'help' for more information
170(qemu) info block
171drive0 (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
176
177file: TEST_DIR/t.qcow2 (file)
178    Cache mode:       writeback
179(qemu) info block backing
180backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
181    Cache mode:       writeback, ignore flushes
182(qemu) info block backing-file
183
184backing-file: TEST_DIR/t.qcow2.base (file, read-only)
185    Cache mode:       writeback, ignore flushes
186(qemu) quit
187
188Testing: -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
189QEMU X.Y.Z monitor - type 'help' for more information
190(qemu) info block
191drive0 (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
196
197file: TEST_DIR/t.qcow2 (file)
198    Cache mode:       writeback, ignore flushes
199(qemu) info block backing
200backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
201    Cache mode:       writeback, ignore flushes
202(qemu) info block backing-file
203
204backing-file: TEST_DIR/t.qcow2.base (file, read-only)
205    Cache mode:       writeback, ignore flushes
206(qemu) quit
207
208Testing: -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
209QEMU_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
210
211
212=== Specifying the protocol layer ===
213
214Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
215QEMU X.Y.Z monitor - type 'help' for more information
216(qemu) quit
217
218
219=== Leaving out required options ===
220
221Testing: -drive driver=file
222QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
223
224Testing: -drive driver=file,filename=
225QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
226
227Testing: -drive driver=nbd
228QEMU_PROG: -drive driver=nbd: NBD server address missing
229
230Testing: -drive driver=raw
231QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
232
233Testing: -drive file.driver=file
234QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
235
236Testing: -drive file.driver=nbd
237QEMU_PROG: -drive file.driver=nbd: NBD server address missing
238
239Testing: -drive file.driver=raw
240QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
241
242Testing: -drive foo=bar
243QEMU_PROG: -drive foo=bar: Must specify either driver or file
244
245
246=== Specifying both an option and its legacy alias ===
247
248Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
249QEMU_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
250
251Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
252QEMU_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
253
254Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
255QEMU_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
256
257Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
258QEMU_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
259
260Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
261QEMU_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
262
263Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
264QEMU_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
265
266Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
267QEMU_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
268
269Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
270QEMU_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
271
272Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
273QEMU_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
274
275Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
276QEMU_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
277
278Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
279QEMU_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
280
281Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
282QEMU_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
283
284Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
285QEMU_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
286
287Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
288QEMU_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
289
290
291=== Catching negative/large throttling values ===
292
293Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
294QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
295
296Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
297QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
298
299Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
300QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
301
302Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
303QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
304
305Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
306QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
307
308Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
309QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
310
311Testing: -drive file=TEST_DIR/t.qcow2,bps=0
312QEMU X.Y.Z monitor - type 'help' for more information
313(qemu) quit
314
315Testing: -drive file=TEST_DIR/t.qcow2,bps=1
316QEMU X.Y.Z monitor - type 'help' for more information
317(qemu) quit
318
319Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
320QEMU X.Y.Z monitor - type 'help' for more information
321(qemu) quit
322
323Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
324QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
325
326Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
327QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
328
329
330=== Parsing protocol from file name ===
331
332Testing: -hda foo:bar
333QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
334
335Testing: -drive file=foo:bar
336QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
337
338Testing: -drive file.filename=foo:bar
339QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
340
341Testing: -hda file:TEST_DIR/t.qcow2
342QEMU X.Y.Z monitor - type 'help' for more information
343(qemu) quit
344
345Testing: -drive file=file:TEST_DIR/t.qcow2
346QEMU X.Y.Z monitor - type 'help' for more information
347(qemu) quit
348
349Testing: -drive file.filename=file:TEST_DIR/t.qcow2
350QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
351
352
353=== Snapshot mode ===
354
355wrote 4096/4096 bytes at offset 0
3564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
357Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
358QEMU X.Y.Z monitor - type 'help' for more information
359(qemu) qemu-io drive0 "write -P 0x22 0 4k"
360wrote 4096/4096 bytes at offset 0
3614 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
362(qemu) quit
363
364Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
365QEMU X.Y.Z monitor - type 'help' for more information
366(qemu) qemu-io drive0 "write -P 0x22 0 4k"
367wrote 4096/4096 bytes at offset 0
3684 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
369(qemu) quit
370
371Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
372QEMU X.Y.Z monitor - type 'help' for more information
373(qemu) qemu-io drive0 "write -P 0x22 0 4k"
374wrote 4096/4096 bytes at offset 0
3754 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
376(qemu) quit
377
378Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
379QEMU X.Y.Z monitor - type 'help' for more information
380(qemu) qemu-io drive0 "write -P 0x22 0 4k"
381wrote 4096/4096 bytes at offset 0
3824 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
383(qemu) quit
384
385Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
386QEMU X.Y.Z monitor - type 'help' for more information
387(qemu) qemu-io drive0 "write -P 0x22 0 4k"
388wrote 4096/4096 bytes at offset 0
3894 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
390(qemu) quit
391
392Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
393QEMU X.Y.Z monitor - type 'help' for more information
394(qemu) qemu-io drive0 "write -P 0x22 0 4k"
395wrote 4096/4096 bytes at offset 0
3964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
397(qemu) quit
398
399Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
400QEMU X.Y.Z monitor - type 'help' for more information
401(qemu) qemu-io drive0 "write -P 0x22 0 4k"
402wrote 4096/4096 bytes at offset 0
4034 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
404(qemu) quit
405
406Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
407QEMU X.Y.Z monitor - type 'help' for more information
408(qemu) qemu-io drive0 "write -P 0x22 0 4k"
409wrote 4096/4096 bytes at offset 0
4104 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
411(qemu) quit
412
413read 4096/4096 bytes at offset 0
4144 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
415Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
416QEMU X.Y.Z monitor - type 'help' for more information
417(qemu) qemu-io drive0 "write -P 0x22 0 4k"
418wrote 4096/4096 bytes at offset 0
4194 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
420(qemu) quit
421
422read 4096/4096 bytes at offset 0
4234 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
424Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
425QEMU X.Y.Z monitor - type 'help' for more information
426(qemu) qemu-io drive0 "write -P 0x33 0 4k"
427wrote 4096/4096 bytes at offset 0
4284 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
429(qemu) commit drive0
430(qemu) quit
431
432read 4096/4096 bytes at offset 0
4334 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
434*** done
435