xref: /openbmc/qemu/tests/qemu-iotests/051.out (revision f0984d40)
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 backing_fmt=IMGFMT
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: '123foo'
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: '_foo'
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: 'foo#12'
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): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.orig"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "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=== Attach to node in non-default iothread ===
141
142
143=== Read-only ===
144
145Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
146QEMU X.Y.Z monitor - type 'help' for more information
147(qemu) quit
148
149
150=== Cache modes ===
151
152Testing: -drive driver=null-co,read-zeroes=on,cache=none
153QEMU X.Y.Z monitor - type 'help' for more information
154(qemu) quit
155
156Testing: -drive driver=null-co,read-zeroes=on,cache=directsync
157QEMU X.Y.Z monitor - type 'help' for more information
158(qemu) quit
159
160Testing: -drive driver=null-co,read-zeroes=on,cache=writeback
161QEMU X.Y.Z monitor - type 'help' for more information
162(qemu) quit
163
164Testing: -drive driver=null-co,read-zeroes=on,cache=writethrough
165QEMU X.Y.Z monitor - type 'help' for more information
166(qemu) quit
167
168Testing: -drive driver=null-co,read-zeroes=on,cache=unsafe
169QEMU X.Y.Z monitor - type 'help' for more information
170(qemu) quit
171
172Testing: -drive driver=null-co,cache=invalid_value
173QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
174
175Testing: -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
176QEMU X.Y.Z monitor - type 'help' for more information
177(qemu) info block
178drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2)
179    Removable device: not locked, tray closed
180    Cache mode:       writeback
181    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
182(qemu) info block file
183
184file: TEST_DIR/t.qcow2 (file)
185    Cache mode:       writeback
186(qemu) info block backing
187backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
188    Cache mode:       writeback, ignore flushes
189(qemu) info block backing-file
190
191backing-file: TEST_DIR/t.qcow2.base (file, read-only)
192    Cache mode:       writeback, ignore flushes
193(qemu) quit
194
195Testing: -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
196QEMU X.Y.Z monitor - type 'help' for more information
197(qemu) info block
198drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2)
199    Removable device: not locked, tray closed
200    Cache mode:       writethrough
201    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
202(qemu) info block file
203
204file: TEST_DIR/t.qcow2 (file)
205    Cache mode:       writeback
206(qemu) info block backing
207backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
208    Cache mode:       writeback, ignore flushes
209(qemu) info block backing-file
210
211backing-file: TEST_DIR/t.qcow2.base (file, read-only)
212    Cache mode:       writeback, ignore flushes
213(qemu) quit
214
215Testing: -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
216QEMU X.Y.Z monitor - type 'help' for more information
217(qemu) info block
218drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2)
219    Removable device: not locked, tray closed
220    Cache mode:       writeback, ignore flushes
221    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
222(qemu) info block file
223
224file: TEST_DIR/t.qcow2 (file)
225    Cache mode:       writeback, ignore flushes
226(qemu) info block backing
227backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
228    Cache mode:       writeback, ignore flushes
229(qemu) info block backing-file
230
231backing-file: TEST_DIR/t.qcow2.base (file, read-only)
232    Cache mode:       writeback, ignore flushes
233(qemu) quit
234
235Testing: -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
236QEMU_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
237
238
239=== Specifying the protocol layer ===
240
241Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
242QEMU X.Y.Z monitor - type 'help' for more information
243(qemu) quit
244
245
246=== Leaving out required options ===
247
248Testing: -drive driver=file
249QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
250
251Testing: -drive driver=file,filename=
252QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
253
254Testing: -drive driver=nbd
255QEMU_PROG: -drive driver=nbd: NBD server address missing
256
257Testing: -drive driver=raw
258QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
259
260Testing: -drive file.driver=file
261QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
262
263Testing: -drive file.driver=nbd
264QEMU_PROG: -drive file.driver=nbd: NBD server address missing
265
266Testing: -drive file.driver=raw
267QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
268
269Testing: -drive foo=bar
270QEMU_PROG: -drive foo=bar: Must specify either driver or file
271
272
273=== Specifying both an option and its legacy alias ===
274
275Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
276QEMU_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
277
278Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
279QEMU_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
280
281Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
282QEMU_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
283
284Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
285QEMU_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
286
287Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
288QEMU_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
289
290Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
291QEMU_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
292
293Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
294QEMU_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
295
296Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
297QEMU_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
298
299Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
300QEMU_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
301
302Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
303QEMU_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
304
305Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
306QEMU_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
307
308Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
309QEMU_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
310
311Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
312QEMU_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
313
314Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
315QEMU_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
316
317
318=== Catching negative/large throttling values ===
319
320Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
321QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
322
323Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
324QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
325
326Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
327QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
328
329Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
330QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
331
332Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
333QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
334
335Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
336QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
337
338Testing: -drive file=TEST_DIR/t.qcow2,bps=0
339QEMU X.Y.Z monitor - type 'help' for more information
340(qemu) quit
341
342Testing: -drive file=TEST_DIR/t.qcow2,bps=1
343QEMU X.Y.Z monitor - type 'help' for more information
344(qemu) quit
345
346Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
347QEMU X.Y.Z monitor - type 'help' for more information
348(qemu) quit
349
350Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
351QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
352
353Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
354QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
355
356
357=== Parsing protocol from file name ===
358
359Testing: -hda foo:bar
360QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
361
362Testing: -drive file=foo:bar
363QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
364
365Testing: -drive file.filename=foo:bar
366QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
367
368Testing: -hda file:TEST_DIR/t.qcow2
369QEMU X.Y.Z monitor - type 'help' for more information
370(qemu) quit
371
372Testing: -drive file=file:TEST_DIR/t.qcow2
373QEMU X.Y.Z monitor - type 'help' for more information
374(qemu) quit
375
376Testing: -drive file.filename=file:TEST_DIR/t.qcow2
377QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
378
379
380=== Snapshot mode ===
381
382wrote 4096/4096 bytes at offset 0
3834 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
384Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
385QEMU X.Y.Z monitor - type 'help' for more information
386(qemu) qemu-io drive0 "write -P 0x22 0 4k"
387wrote 4096/4096 bytes at offset 0
3884 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
389(qemu) quit
390
391Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
392QEMU X.Y.Z monitor - type 'help' for more information
393(qemu) qemu-io drive0 "write -P 0x22 0 4k"
394wrote 4096/4096 bytes at offset 0
3954 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
396(qemu) quit
397
398Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
399QEMU X.Y.Z monitor - type 'help' for more information
400(qemu) qemu-io drive0 "write -P 0x22 0 4k"
401wrote 4096/4096 bytes at offset 0
4024 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
403(qemu) quit
404
405Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
406QEMU X.Y.Z monitor - type 'help' for more information
407(qemu) qemu-io drive0 "write -P 0x22 0 4k"
408wrote 4096/4096 bytes at offset 0
4094 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
410(qemu) quit
411
412Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
413QEMU X.Y.Z monitor - type 'help' for more information
414(qemu) qemu-io drive0 "write -P 0x22 0 4k"
415wrote 4096/4096 bytes at offset 0
4164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
417(qemu) quit
418
419Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
420QEMU X.Y.Z monitor - type 'help' for more information
421(qemu) qemu-io drive0 "write -P 0x22 0 4k"
422wrote 4096/4096 bytes at offset 0
4234 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
424(qemu) quit
425
426Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
427QEMU X.Y.Z monitor - type 'help' for more information
428(qemu) qemu-io drive0 "write -P 0x22 0 4k"
429wrote 4096/4096 bytes at offset 0
4304 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
431(qemu) quit
432
433Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
434QEMU X.Y.Z monitor - type 'help' for more information
435(qemu) qemu-io drive0 "write -P 0x22 0 4k"
436wrote 4096/4096 bytes at offset 0
4374 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
438(qemu) quit
439
440read 4096/4096 bytes at offset 0
4414 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
442Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
443QEMU X.Y.Z monitor - type 'help' for more information
444(qemu) qemu-io drive0 "write -P 0x22 0 4k"
445wrote 4096/4096 bytes at offset 0
4464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
447(qemu) quit
448
449read 4096/4096 bytes at offset 0
4504 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
451Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
452QEMU X.Y.Z monitor - type 'help' for more information
453(qemu) qemu-io drive0 "write -P 0x33 0 4k"
454wrote 4096/4096 bytes at offset 0
4554 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
456(qemu) commit drive0
457(qemu) quit
458
459read 4096/4096 bytes at offset 0
4604 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
461Testing: -drive driver=null-co,snapshot=on
462QEMU_PROG: -drive driver=null-co,snapshot=on: Could not open temporary file SNAPSHOT_PATH: No such file or directory
463
464Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,read-only=on,if=none,id=drive0
465QEMU X.Y.Z monitor - type 'help' for more information
466(qemu) info block
467drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}}, "driver": "qcow2", "file": {"driver": "file", "filename": SNAPSHOT_PATH}} (qcow2, read-only)
468    Removable device: not locked, tray closed
469    Cache mode:       writeback, ignore flushes
470    Backing file:     TEST_DIR/t.qcow2 (chain depth: 1)
471(qemu) quit
472
473*** done
474