xref: /openbmc/qemu/tests/qemu-iotests/051.pc.out (revision f480f6e8)
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): 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=floppy
136QEMU X.Y.Z monitor - type 'help' for more information
137(qemu) quit
138
139Testing: -drive if=ide,media=cdrom
140QEMU X.Y.Z monitor - type 'help' for more information
141(qemu) quit
142
143Testing: -drive if=ide
144QEMU X.Y.Z monitor - type 'help' for more information
145(qemu) QEMU_PROG: Initialization of device ide-hd failed: Device needs media, but drive is empty
146
147Testing: -drive if=virtio
148QEMU X.Y.Z monitor - type 'help' for more information
149(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
150
151Testing: -drive if=none,id=disk -device ide-cd,drive=disk
152QEMU X.Y.Z monitor - type 'help' for more information
153(qemu) quit
154
155Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
156QEMU X.Y.Z monitor - type 'help' for more information
157(qemu) quit
158
159Testing: -drive if=none,id=disk -device ide-drive,drive=disk
160QEMU X.Y.Z monitor - type 'help' for more information
161(qemu) QEMU_PROG: -device ide-drive,drive=disk: warning: 'ide-drive' is deprecated, please use 'ide-hd' or 'ide-cd' instead
162QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
163
164Testing: -drive if=none,id=disk -device ide-hd,drive=disk
165QEMU X.Y.Z monitor - type 'help' for more information
166(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
167
168Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
169QEMU X.Y.Z monitor - type 'help' for more information
170(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
171
172Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
173QEMU X.Y.Z monitor - type 'help' for more information
174(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
175
176
177=== Attach to node in non-default iothread ===
178
179Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device ide-hd,drive=disk,share-rw=on
180QEMU X.Y.Z monitor - type 'help' for more information
181(qemu) QEMU_PROG: -device ide-hd,drive=disk,share-rw=on: Cannot change iothread of active block backend
182
183Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-blk-pci,drive=disk,share-rw=on
184QEMU X.Y.Z monitor - type 'help' for more information
185(qemu) QEMU_PROG: -device virtio-blk-pci,drive=disk,share-rw=on: Cannot change iothread of active block backend
186
187Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device lsi53c895a,id=lsi0 -device scsi-hd,bus=lsi0.0,drive=disk,share-rw=on
188QEMU X.Y.Z monitor - type 'help' for more information
189(qemu) QEMU_PROG: -device scsi-hd,bus=lsi0.0,drive=disk,share-rw=on: HBA does not support iothreads
190
191Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-scsi,id=virtio-scsi1 -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on
192QEMU X.Y.Z monitor - type 'help' for more information
193(qemu) QEMU_PROG: -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on: Cannot change iothread of active block backend
194
195Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-blk-pci,drive=disk,iohtread=iothread0,share-rw=on
196QEMU X.Y.Z monitor - type 'help' for more information
197(qemu) QEMU_PROG: -device virtio-blk-pci,drive=disk,iohtread=iothread0,share-rw=on: Cannot change iothread of active block backend
198
199Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-scsi,id=virtio-scsi1,iothread=thread0 -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on
200QEMU X.Y.Z monitor - type 'help' for more information
201(qemu) quit
202
203
204=== Read-only ===
205
206Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
207QEMU X.Y.Z monitor - type 'help' for more information
208(qemu) quit
209
210Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
211QEMU X.Y.Z monitor - type 'help' for more information
212(qemu) quit
213
214Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
215QEMU X.Y.Z monitor - type 'help' for more information
216(qemu) QEMU_PROG: Initialization of device ide-hd failed: Block node is read-only
217
218Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
219QEMU X.Y.Z monitor - type 'help' for more information
220(qemu) quit
221
222Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
223QEMU X.Y.Z monitor - type 'help' for more information
224(qemu) quit
225
226Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
227QEMU X.Y.Z monitor - type 'help' for more information
228(qemu) quit
229
230Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
231QEMU X.Y.Z monitor - type 'help' for more information
232(qemu) QEMU_PROG: -device ide-drive,drive=disk: warning: 'ide-drive' is deprecated, please use 'ide-hd' or 'ide-cd' instead
233QEMU_PROG: -device ide-drive,drive=disk: Block node is read-only
234
235Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
236QEMU X.Y.Z monitor - type 'help' for more information
237(qemu) QEMU_PROG: -device ide-hd,drive=disk: Block node is read-only
238
239Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
240QEMU X.Y.Z monitor - type 'help' for more information
241(qemu) quit
242
243Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
244QEMU X.Y.Z monitor - type 'help' for more information
245(qemu) quit
246
247
248=== Cache modes ===
249
250Testing: -drive driver=null-co,read-zeroes=on,cache=none
251QEMU X.Y.Z monitor - type 'help' for more information
252(qemu) quit
253
254Testing: -drive driver=null-co,read-zeroes=on,cache=directsync
255QEMU X.Y.Z monitor - type 'help' for more information
256(qemu) quit
257
258Testing: -drive driver=null-co,read-zeroes=on,cache=writeback
259QEMU X.Y.Z monitor - type 'help' for more information
260(qemu) quit
261
262Testing: -drive driver=null-co,read-zeroes=on,cache=writethrough
263QEMU X.Y.Z monitor - type 'help' for more information
264(qemu) quit
265
266Testing: -drive driver=null-co,read-zeroes=on,cache=unsafe
267QEMU X.Y.Z monitor - type 'help' for more information
268(qemu) quit
269
270Testing: -drive driver=null-co,cache=invalid_value
271QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
272
273Testing: -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
274QEMU X.Y.Z monitor - type 'help' for more information
275(qemu) info block
276drive0 (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)
277    Removable device: not locked, tray closed
278    Cache mode:       writeback
279    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
280(qemu) info block file
281
282file: TEST_DIR/t.qcow2 (file)
283    Cache mode:       writeback
284(qemu) info block backing
285backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
286    Cache mode:       writeback, ignore flushes
287(qemu) info block backing-file
288
289backing-file: TEST_DIR/t.qcow2.base (file, read-only)
290    Cache mode:       writeback, ignore flushes
291(qemu) quit
292
293Testing: -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
294QEMU X.Y.Z monitor - type 'help' for more information
295(qemu) info block
296drive0 (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)
297    Removable device: not locked, tray closed
298    Cache mode:       writethrough
299    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
300(qemu) info block file
301
302file: TEST_DIR/t.qcow2 (file)
303    Cache mode:       writeback
304(qemu) info block backing
305backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
306    Cache mode:       writeback, ignore flushes
307(qemu) info block backing-file
308
309backing-file: TEST_DIR/t.qcow2.base (file, read-only)
310    Cache mode:       writeback, ignore flushes
311(qemu) quit
312
313Testing: -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
314QEMU X.Y.Z monitor - type 'help' for more information
315(qemu) info block
316drive0 (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)
317    Removable device: not locked, tray closed
318    Cache mode:       writeback, ignore flushes
319    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
320(qemu) info block file
321
322file: TEST_DIR/t.qcow2 (file)
323    Cache mode:       writeback, ignore flushes
324(qemu) info block backing
325backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
326    Cache mode:       writeback, ignore flushes
327(qemu) info block backing-file
328
329backing-file: TEST_DIR/t.qcow2.base (file, read-only)
330    Cache mode:       writeback, ignore flushes
331(qemu) quit
332
333Testing: -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
334QEMU_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
335
336
337=== Specifying the protocol layer ===
338
339Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
340QEMU X.Y.Z monitor - type 'help' for more information
341(qemu) quit
342
343
344=== Leaving out required options ===
345
346Testing: -drive driver=file
347QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
348
349Testing: -drive driver=file,filename=
350QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
351
352Testing: -drive driver=nbd
353QEMU_PROG: -drive driver=nbd: NBD server address missing
354
355Testing: -drive driver=raw
356QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
357
358Testing: -drive file.driver=file
359QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
360
361Testing: -drive file.driver=nbd
362QEMU_PROG: -drive file.driver=nbd: NBD server address missing
363
364Testing: -drive file.driver=raw
365QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
366
367Testing: -drive foo=bar
368QEMU_PROG: -drive foo=bar: Must specify either driver or file
369
370
371=== Specifying both an option and its legacy alias ===
372
373Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
374QEMU_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
375
376Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
377QEMU_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
378
379Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
380QEMU_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
381
382Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
383QEMU_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
384
385Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
386QEMU_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
387
388Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
389QEMU_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
390
391Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
392QEMU_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
393
394Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
395QEMU_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
396
397Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
398QEMU_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
399
400Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
401QEMU_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
402
403Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
404QEMU_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
405
406Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
407QEMU_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
408
409Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
410QEMU_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
411
412Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
413QEMU_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
414
415
416=== Catching negative/large throttling values ===
417
418Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
419QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
420
421Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
422QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
423
424Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
425QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
426
427Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
428QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
429
430Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
431QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
432
433Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
434QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
435
436Testing: -drive file=TEST_DIR/t.qcow2,bps=0
437QEMU X.Y.Z monitor - type 'help' for more information
438(qemu) quit
439
440Testing: -drive file=TEST_DIR/t.qcow2,bps=1
441QEMU X.Y.Z monitor - type 'help' for more information
442(qemu) quit
443
444Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
445QEMU X.Y.Z monitor - type 'help' for more information
446(qemu) quit
447
448Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
449QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
450
451Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
452QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
453
454
455=== Parsing protocol from file name ===
456
457Testing: -hda foo:bar
458QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
459
460Testing: -drive file=foo:bar
461QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
462
463Testing: -drive file.filename=foo:bar
464QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
465
466Testing: -hda file:TEST_DIR/t.qcow2
467QEMU X.Y.Z monitor - type 'help' for more information
468(qemu) quit
469
470Testing: -drive file=file:TEST_DIR/t.qcow2
471QEMU X.Y.Z monitor - type 'help' for more information
472(qemu) quit
473
474Testing: -drive file.filename=file:TEST_DIR/t.qcow2
475QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
476
477
478=== Snapshot mode ===
479
480wrote 4096/4096 bytes at offset 0
4814 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
482Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
483QEMU X.Y.Z monitor - type 'help' for more information
484(qemu) qemu-io drive0 "write -P 0x22 0 4k"
485wrote 4096/4096 bytes at offset 0
4864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
487(qemu) quit
488
489Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
490QEMU X.Y.Z monitor - type 'help' for more information
491(qemu) qemu-io drive0 "write -P 0x22 0 4k"
492wrote 4096/4096 bytes at offset 0
4934 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
494(qemu) quit
495
496Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
497QEMU X.Y.Z monitor - type 'help' for more information
498(qemu) qemu-io drive0 "write -P 0x22 0 4k"
499wrote 4096/4096 bytes at offset 0
5004 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
501(qemu) quit
502
503Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
504QEMU X.Y.Z monitor - type 'help' for more information
505(qemu) qemu-io drive0 "write -P 0x22 0 4k"
506wrote 4096/4096 bytes at offset 0
5074 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
508(qemu) quit
509
510Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
511QEMU X.Y.Z monitor - type 'help' for more information
512(qemu) qemu-io drive0 "write -P 0x22 0 4k"
513wrote 4096/4096 bytes at offset 0
5144 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
515(qemu) quit
516
517Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
518QEMU X.Y.Z monitor - type 'help' for more information
519(qemu) qemu-io drive0 "write -P 0x22 0 4k"
520wrote 4096/4096 bytes at offset 0
5214 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
522(qemu) quit
523
524Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
525QEMU X.Y.Z monitor - type 'help' for more information
526(qemu) qemu-io drive0 "write -P 0x22 0 4k"
527wrote 4096/4096 bytes at offset 0
5284 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
529(qemu) quit
530
531Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
532QEMU X.Y.Z monitor - type 'help' for more information
533(qemu) qemu-io drive0 "write -P 0x22 0 4k"
534wrote 4096/4096 bytes at offset 0
5354 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
536(qemu) quit
537
538read 4096/4096 bytes at offset 0
5394 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
540Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
541QEMU X.Y.Z monitor - type 'help' for more information
542(qemu) qemu-io drive0 "write -P 0x22 0 4k"
543wrote 4096/4096 bytes at offset 0
5444 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
545(qemu) quit
546
547read 4096/4096 bytes at offset 0
5484 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
549Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
550QEMU X.Y.Z monitor - type 'help' for more information
551(qemu) qemu-io drive0 "write -P 0x33 0 4k"
552wrote 4096/4096 bytes at offset 0
5534 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
554(qemu) commit drive0
555(qemu) quit
556
557read 4096/4096 bytes at offset 0
5584 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
559Testing: -drive driver=null-co,snapshot=on
560QEMU_PROG: -drive driver=null-co,snapshot=on: Could not get temporary filename: No such file or directory
561
562Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,read-only=on,if=none,id=drive0
563QEMU X.Y.Z monitor - type 'help' for more information
564(qemu) info block
565drive0 (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)
566    Removable device: not locked, tray closed
567    Cache mode:       writeback, ignore flushes
568    Backing file:     TEST_DIR/t.qcow2 (chain depth: 1)
569(qemu) quit
570
571*** done
572