xref: /openbmc/qemu/tests/qemu-iotests/051.out (revision da054c64)
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=== Node names ===
51
52Testing: -drive file=TEST_DIR/t.qcow2,node-name=x123456789012345678901234567890
53QEMU X.Y.Z monitor - type 'help' for more information
54(qemu) quit
55
56Testing: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901
57QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901: Node name too long
58
59Testing: -drive file=TEST_DIR/t.qcow2,node-name=All-Types.of_all0wed_chars
60QEMU X.Y.Z monitor - type 'help' for more information
61(qemu) quit
62
63Testing: -drive file=TEST_DIR/t.qcow2,node-name=123foo
64QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=123foo: Invalid node name
65
66Testing: -drive file=TEST_DIR/t.qcow2,node-name=_foo
67QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=_foo: Invalid node name
68
69Testing: -drive file=TEST_DIR/t.qcow2,node-name=foo#12
70QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=foo#12: Invalid node name
71
72
73=== Device without drive ===
74
75Testing: -device VIRTIO_SCSI -device scsi-hd
76QEMU X.Y.Z monitor - type 'help' for more information
77(qemu) QEMU_PROG: -device scsi-hd: drive property not set
78
79
80=== Overriding backing file ===
81
82Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults
83QEMU X.Y.Z monitor - type 'help' for more information
84(qemu) info block
85drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
86    Removable device: not locked, tray closed
87    Cache mode:       writeback
88    Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
89(qemu) quit
90
91Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
92QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
93
94Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
95QEMU_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
96
97Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
98QEMU_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
99
100
101=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
102
103Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
104Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
105QEMU X.Y.Z monitor - type 'help' for more information
106(qemu) quit
107
108Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
109QEMU X.Y.Z monitor - type 'help' for more information
110(qemu) quit
111
112Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
113QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
114
115Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
116QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
117
118Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
119QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'
120
121
122=== With version 2 images enabling lazy refcounts must fail ===
123
124Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
125Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
126QEMU_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
127
128Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
129QEMU X.Y.Z monitor - type 'help' for more information
130(qemu) quit
131
132
133=== No medium ===
134
135Testing: -drive if=virtio
136QEMU X.Y.Z monitor - type 'help' for more information
137(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
138
139
140=== Read-only ===
141
142Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
143QEMU X.Y.Z monitor - type 'help' for more information
144(qemu) quit
145
146
147=== Cache modes ===
148
149Testing: -drive driver=null-co,cache=none
150QEMU X.Y.Z monitor - type 'help' for more information
151(qemu) quit
152
153Testing: -drive driver=null-co,cache=directsync
154QEMU X.Y.Z monitor - type 'help' for more information
155(qemu) quit
156
157Testing: -drive driver=null-co,cache=writeback
158QEMU X.Y.Z monitor - type 'help' for more information
159(qemu) quit
160
161Testing: -drive driver=null-co,cache=writethrough
162QEMU X.Y.Z monitor - type 'help' for more information
163(qemu) quit
164
165Testing: -drive driver=null-co,cache=unsafe
166QEMU X.Y.Z monitor - type 'help' for more information
167(qemu) quit
168
169Testing: -drive driver=null-co,cache=invalid_value
170QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
171
172Testing: -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
173QEMU X.Y.Z monitor - type 'help' for more information
174(qemu) info block
175drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
176    Removable device: not locked, tray closed
177    Cache mode:       writeback
178    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
179(qemu) info block file
180
181file: TEST_DIR/t.qcow2 (file)
182    Cache mode:       writeback
183(qemu) info block backing
184backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
185    Cache mode:       writeback, ignore flushes
186(qemu) info block backing-file
187
188backing-file: TEST_DIR/t.qcow2.base (file, read-only)
189    Cache mode:       writeback, ignore flushes
190(qemu) quit
191
192Testing: -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
193QEMU X.Y.Z monitor - type 'help' for more information
194(qemu) info block
195drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
196    Removable device: not locked, tray closed
197    Cache mode:       writethrough
198    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
199(qemu) info block file
200
201file: TEST_DIR/t.qcow2 (file)
202    Cache mode:       writeback
203(qemu) info block backing
204backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
205    Cache mode:       writeback, ignore flushes
206(qemu) info block backing-file
207
208backing-file: TEST_DIR/t.qcow2.base (file, read-only)
209    Cache mode:       writeback, ignore flushes
210(qemu) quit
211
212Testing: -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
213QEMU X.Y.Z monitor - type 'help' for more information
214(qemu) info block
215drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
216    Removable device: not locked, tray closed
217    Cache mode:       writeback, ignore flushes
218    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
219(qemu) info block file
220
221file: TEST_DIR/t.qcow2 (file)
222    Cache mode:       writeback, ignore flushes
223(qemu) info block backing
224backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
225    Cache mode:       writeback, ignore flushes
226(qemu) info block backing-file
227
228backing-file: TEST_DIR/t.qcow2.base (file, read-only)
229    Cache mode:       writeback, ignore flushes
230(qemu) quit
231
232Testing: -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
233QEMU_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
234
235
236=== Specifying the protocol layer ===
237
238Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
239QEMU X.Y.Z monitor - type 'help' for more information
240(qemu) quit
241
242
243=== Leaving out required options ===
244
245Testing: -drive driver=file
246QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
247
248Testing: -drive driver=file,filename=
249QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
250
251Testing: -drive driver=nbd
252QEMU_PROG: -drive driver=nbd: NBD server address missing
253
254Testing: -drive driver=raw
255QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
256
257Testing: -drive file.driver=file
258QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
259
260Testing: -drive file.driver=nbd
261QEMU_PROG: -drive file.driver=nbd: NBD server address missing
262
263Testing: -drive file.driver=raw
264QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
265
266Testing: -drive foo=bar
267QEMU_PROG: -drive foo=bar: Must specify either driver or file
268
269
270=== Specifying both an option and its legacy alias ===
271
272Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
273QEMU_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
274
275Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
276QEMU_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
277
278Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
279QEMU_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
280
281Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
282QEMU_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
283
284Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
285QEMU_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
286
287Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
288QEMU_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
289
290Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
291QEMU_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
292
293Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
294QEMU_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
295
296Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
297QEMU_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
298
299Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
300QEMU_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
301
302Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
303QEMU_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
304
305Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
306QEMU_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
307
308Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
309QEMU_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
310
311Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
312QEMU_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
313
314
315=== Catching negative/large throttling values ===
316
317Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
318QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
319
320Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
321QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
322
323Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
324QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
325
326Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
327QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
328
329Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
330QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
331
332Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
333QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
334
335Testing: -drive file=TEST_DIR/t.qcow2,bps=0
336QEMU X.Y.Z monitor - type 'help' for more information
337(qemu) quit
338
339Testing: -drive file=TEST_DIR/t.qcow2,bps=1
340QEMU X.Y.Z monitor - type 'help' for more information
341(qemu) quit
342
343Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
344QEMU X.Y.Z monitor - type 'help' for more information
345(qemu) quit
346
347Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
348QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
349
350Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
351QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
352
353
354=== Parsing protocol from file name ===
355
356Testing: -hda foo:bar
357QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
358
359Testing: -drive file=foo:bar
360QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
361
362Testing: -drive file.filename=foo:bar
363QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
364
365Testing: -hda file:TEST_DIR/t.qcow2
366QEMU X.Y.Z monitor - type 'help' for more information
367(qemu) quit
368
369Testing: -drive file=file:TEST_DIR/t.qcow2
370QEMU X.Y.Z monitor - type 'help' for more information
371(qemu) quit
372
373Testing: -drive file.filename=file:TEST_DIR/t.qcow2
374QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
375
376
377=== Snapshot mode ===
378
379wrote 4096/4096 bytes at offset 0
3804 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
381Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
382QEMU X.Y.Z monitor - type 'help' for more information
383(qemu) qemu-io drive0 "write -P 0x22 0 4k"
384wrote 4096/4096 bytes at offset 0
3854 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
386(qemu) quit
387
388Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
389QEMU X.Y.Z monitor - type 'help' for more information
390(qemu) qemu-io drive0 "write -P 0x22 0 4k"
391wrote 4096/4096 bytes at offset 0
3924 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
393(qemu) quit
394
395Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
396QEMU X.Y.Z monitor - type 'help' for more information
397(qemu) qemu-io drive0 "write -P 0x22 0 4k"
398wrote 4096/4096 bytes at offset 0
3994 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
400(qemu) quit
401
402Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
403QEMU X.Y.Z monitor - type 'help' for more information
404(qemu) qemu-io drive0 "write -P 0x22 0 4k"
405wrote 4096/4096 bytes at offset 0
4064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
407(qemu) quit
408
409Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
410QEMU X.Y.Z monitor - type 'help' for more information
411(qemu) qemu-io drive0 "write -P 0x22 0 4k"
412wrote 4096/4096 bytes at offset 0
4134 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
414(qemu) quit
415
416Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
417QEMU X.Y.Z monitor - type 'help' for more information
418(qemu) qemu-io drive0 "write -P 0x22 0 4k"
419wrote 4096/4096 bytes at offset 0
4204 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
421(qemu) quit
422
423Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
424QEMU X.Y.Z monitor - type 'help' for more information
425(qemu) qemu-io drive0 "write -P 0x22 0 4k"
426wrote 4096/4096 bytes at offset 0
4274 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
428(qemu) quit
429
430Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
431QEMU X.Y.Z monitor - type 'help' for more information
432(qemu) qemu-io drive0 "write -P 0x22 0 4k"
433wrote 4096/4096 bytes at offset 0
4344 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
435(qemu) quit
436
437read 4096/4096 bytes at offset 0
4384 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
439Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
440QEMU X.Y.Z monitor - type 'help' for more information
441(qemu) qemu-io drive0 "write -P 0x22 0 4k"
442wrote 4096/4096 bytes at offset 0
4434 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
444(qemu) quit
445
446read 4096/4096 bytes at offset 0
4474 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
448Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
449QEMU X.Y.Z monitor - type 'help' for more information
450(qemu) qemu-io drive0 "write -P 0x33 0 4k"
451wrote 4096/4096 bytes at offset 0
4524 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
453(qemu) commit drive0
454(qemu) quit
455
456read 4096/4096 bytes at offset 0
4574 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
458Testing: -drive driver=null-co,snapshot=on
459QEMU_PROG: -drive driver=null-co,snapshot=on: Could not get temporary filename: No such file or directory
460
461*** done
462