hw/misc/mps2-scc: Support configurable number of OSCCLK values
[qemu/ar7.git] / tests / qemu-iotests / 051.pc.out
blobf707471fb00224cfd3c48d5f3f5dce4f1dbcc7be
1 QA output created by 051
2 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
3 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
5 === Unknown option ===
7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0
8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0
11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0
14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0
17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
20 === Unknown protocol option ===
22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=
23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt'
25 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on
26 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt'
28 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234
29 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt'
31 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo
32 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo: Block protocol 'file' doesn't support the option 'unknown_opt'
35 === Invalid format ===
37 Testing: -drive file=TEST_DIR/t.qcow2,format=foo
38 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo'
40 Testing: -drive file=TEST_DIR/t.qcow2,driver=foo
41 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo'
43 Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2
44 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format'
46 Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
47 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'
50 === Node names ===
52 Testing: -drive file=TEST_DIR/t.qcow2,node-name=x123456789012345678901234567890
53 QEMU X.Y.Z monitor - type 'help' for more information
54 (qemu) quit
56 Testing: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901
57 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901: Node name too long
59 Testing: -drive file=TEST_DIR/t.qcow2,node-name=All-Types.of_all0wed_chars
60 QEMU X.Y.Z monitor - type 'help' for more information
61 (qemu) quit
63 Testing: -drive file=TEST_DIR/t.qcow2,node-name=123foo
64 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=123foo: Invalid node name
66 Testing: -drive file=TEST_DIR/t.qcow2,node-name=_foo
67 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=_foo: Invalid node name
69 Testing: -drive file=TEST_DIR/t.qcow2,node-name=foo#12
70 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=foo#12: Invalid node name
73 === Device without drive ===
75 Testing: -device VIRTIO_SCSI -device scsi-hd
76 QEMU X.Y.Z monitor - type 'help' for more information
77 (qemu) QEMU_PROG: -device scsi-hd: drive property not set
80 === Overriding backing file ===
82 Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults
83 QEMU X.Y.Z monitor - type 'help' for more information
84 (qemu) info block
85 drive0 (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
91 Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
92 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
94 Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
95 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
97 Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
98 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
101 === Enable and disable lazy refcounting on the command line, plus some invalid values ===
103 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
104 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
105 QEMU X.Y.Z monitor - type 'help' for more information
106 (qemu) quit
108 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
109 QEMU X.Y.Z monitor - type 'help' for more information
110 (qemu) quit
112 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
113 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
115 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
116 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
118 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
119 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'
122 === With version 2 images enabling lazy refcounts must fail ===
124 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
125 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
126 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level
128 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
129 QEMU X.Y.Z monitor - type 'help' for more information
130 (qemu) quit
133 === No medium ===
135 Testing: -drive if=floppy
136 QEMU X.Y.Z monitor - type 'help' for more information
137 (qemu) quit
139 Testing: -drive if=ide,media=cdrom
140 QEMU X.Y.Z monitor - type 'help' for more information
141 (qemu) quit
143 Testing: -drive if=ide
144 QEMU X.Y.Z monitor - type 'help' for more information
145 (qemu) QEMU_PROG: Device needs media, but drive is empty
147 Testing: -drive if=virtio
148 QEMU X.Y.Z monitor - type 'help' for more information
149 (qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
151 Testing: -drive if=none,id=disk -device ide-cd,drive=disk
152 QEMU X.Y.Z monitor - type 'help' for more information
153 (qemu) quit
155 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
156 QEMU X.Y.Z monitor - type 'help' for more information
157 (qemu) quit
159 Testing: -drive if=none,id=disk -device ide-drive,drive=disk
160 QEMU 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
162 QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
164 Testing: -drive if=none,id=disk -device ide-hd,drive=disk
165 QEMU 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
168 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
169 QEMU X.Y.Z monitor - type 'help' for more information
170 (qemu) QEMU_PROG: -device scsi-disk,drive=disk: warning: 'scsi-disk' is deprecated, please use 'scsi-hd' or 'scsi-cd' instead
171 QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
173 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
174 QEMU X.Y.Z monitor - type 'help' for more information
175 (qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
178 === Attach to node in non-default iothread ===
180 Testing: -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
181 QEMU X.Y.Z monitor - type 'help' for more information
182 (qemu) QEMU_PROG: -device ide-hd,drive=disk,share-rw=on: Cannot change iothread of active block backend
184 Testing: -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
185 QEMU X.Y.Z monitor - type 'help' for more information
186 (qemu) QEMU_PROG: -device virtio-blk-pci,drive=disk,share-rw=on: Cannot change iothread of active block backend
188 Testing: -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
189 QEMU X.Y.Z monitor - type 'help' for more information
190 (qemu) QEMU_PROG: -device scsi-hd,bus=lsi0.0,drive=disk,share-rw=on: HBA does not support iothreads
192 Testing: -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
193 QEMU X.Y.Z monitor - type 'help' for more information
194 (qemu) QEMU_PROG: -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on: Cannot change iothread of active block backend
196 Testing: -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
197 QEMU X.Y.Z monitor - type 'help' for more information
198 (qemu) QEMU_PROG: -device virtio-blk-pci,drive=disk,iohtread=iothread0,share-rw=on: Cannot change iothread of active block backend
200 Testing: -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
201 QEMU X.Y.Z monitor - type 'help' for more information
202 (qemu) quit
205 === Read-only ===
207 Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
208 QEMU X.Y.Z monitor - type 'help' for more information
209 (qemu) quit
211 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
212 QEMU X.Y.Z monitor - type 'help' for more information
213 (qemu) quit
215 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
216 QEMU X.Y.Z monitor - type 'help' for more information
217 (qemu) QEMU_PROG: Block node is read-only
219 Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
220 QEMU X.Y.Z monitor - type 'help' for more information
221 (qemu) quit
223 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
224 QEMU X.Y.Z monitor - type 'help' for more information
225 (qemu) quit
227 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
228 QEMU X.Y.Z monitor - type 'help' for more information
229 (qemu) quit
231 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
232 QEMU X.Y.Z monitor - type 'help' for more information
233 (qemu) QEMU_PROG: -device ide-drive,drive=disk: warning: 'ide-drive' is deprecated, please use 'ide-hd' or 'ide-cd' instead
234 QEMU_PROG: -device ide-drive,drive=disk: Block node is read-only
236 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
237 QEMU X.Y.Z monitor - type 'help' for more information
238 (qemu) QEMU_PROG: -device ide-hd,drive=disk: Block node is read-only
240 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
241 QEMU X.Y.Z monitor - type 'help' for more information
242 (qemu) QEMU_PROG: -device scsi-disk,drive=disk: warning: 'scsi-disk' is deprecated, please use 'scsi-hd' or 'scsi-cd' instead
243 quit
245 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
246 QEMU X.Y.Z monitor - type 'help' for more information
247 (qemu) quit
250 === Cache modes ===
252 Testing: -drive driver=null-co,read-zeroes=on,cache=none
253 QEMU X.Y.Z monitor - type 'help' for more information
254 (qemu) quit
256 Testing: -drive driver=null-co,read-zeroes=on,cache=directsync
257 QEMU X.Y.Z monitor - type 'help' for more information
258 (qemu) quit
260 Testing: -drive driver=null-co,read-zeroes=on,cache=writeback
261 QEMU X.Y.Z monitor - type 'help' for more information
262 (qemu) quit
264 Testing: -drive driver=null-co,read-zeroes=on,cache=writethrough
265 QEMU X.Y.Z monitor - type 'help' for more information
266 (qemu) quit
268 Testing: -drive driver=null-co,read-zeroes=on,cache=unsafe
269 QEMU X.Y.Z monitor - type 'help' for more information
270 (qemu) quit
272 Testing: -drive driver=null-co,cache=invalid_value
273 QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
275 Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
276 QEMU X.Y.Z monitor - type 'help' for more information
277 (qemu) info block
278 drive0 (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)
279     Removable device: not locked, tray closed
280     Cache mode:       writeback
281     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
282 (qemu) info block file
284 file: TEST_DIR/t.qcow2 (file)
285     Cache mode:       writeback
286 (qemu) info block backing
287 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
288     Cache mode:       writeback, ignore flushes
289 (qemu) info block backing-file
291 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
292     Cache mode:       writeback, ignore flushes
293 (qemu) quit
295 Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
296 QEMU X.Y.Z monitor - type 'help' for more information
297 (qemu) info block
298 drive0 (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)
299     Removable device: not locked, tray closed
300     Cache mode:       writethrough
301     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
302 (qemu) info block file
304 file: TEST_DIR/t.qcow2 (file)
305     Cache mode:       writeback
306 (qemu) info block backing
307 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
308     Cache mode:       writeback, ignore flushes
309 (qemu) info block backing-file
311 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
312     Cache mode:       writeback, ignore flushes
313 (qemu) quit
315 Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
316 QEMU X.Y.Z monitor - type 'help' for more information
317 (qemu) info block
318 drive0 (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)
319     Removable device: not locked, tray closed
320     Cache mode:       writeback, ignore flushes
321     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
322 (qemu) info block file
324 file: TEST_DIR/t.qcow2 (file)
325     Cache mode:       writeback, ignore flushes
326 (qemu) info block backing
327 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
328     Cache mode:       writeback, ignore flushes
329 (qemu) info block backing-file
331 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
332     Cache mode:       writeback, ignore flushes
333 (qemu) quit
335 Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
336 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0: invalid cache option
339 === Specifying the protocol layer ===
341 Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
342 QEMU X.Y.Z monitor - type 'help' for more information
343 (qemu) quit
346 === Leaving out required options ===
348 Testing: -drive driver=file
349 QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
351 Testing: -drive driver=file,filename=
352 QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
354 Testing: -drive driver=nbd
355 QEMU_PROG: -drive driver=nbd: NBD server address missing
357 Testing: -drive driver=raw
358 QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
360 Testing: -drive file.driver=file
361 QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
363 Testing: -drive file.driver=nbd
364 QEMU_PROG: -drive file.driver=nbd: NBD server address missing
366 Testing: -drive file.driver=raw
367 QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
369 Testing: -drive foo=bar
370 QEMU_PROG: -drive foo=bar: Must specify either driver or file
373 === Specifying both an option and its legacy alias ===
375 Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
376 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678: 'throttling.iops-total' and its alias 'iops' can't be used at the same time
378 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
379 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678: 'throttling.iops-read' and its alias 'iops_rd' can't be used at the same time
381 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
382 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678: 'throttling.iops-write' and its alias 'iops_wr' can't be used at the same time
384 Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
385 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678: 'throttling.bps-total' and its alias 'bps' can't be used at the same time
387 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
388 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678: 'throttling.bps-read' and its alias 'bps_rd' can't be used at the same time
390 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
391 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678: 'throttling.bps-write' and its alias 'bps_wr' can't be used at the same time
393 Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
394 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678: 'throttling.iops-total-max' and its alias 'iops_max' can't be used at the same time
396 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
397 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678: 'throttling.iops-read-max' and its alias 'iops_rd_max' can't be used at the same time
399 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
400 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678: 'throttling.iops-write-max' and its alias 'iops_wr_max' can't be used at the same time
402 Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
403 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678: 'throttling.bps-total-max' and its alias 'bps_max' can't be used at the same time
405 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
406 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678: 'throttling.bps-read-max' and its alias 'bps_rd_max' can't be used at the same time
408 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
409 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678: 'throttling.bps-write-max' and its alias 'bps_wr_max' can't be used at the same time
411 Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
412 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678: 'throttling.iops-size' and its alias 'iops_size' can't be used at the same time
414 Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
415 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off: 'read-only' and its alias 'readonly' can't be used at the same time
418 === Catching negative/large throttling values ===
420 Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
421 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
423 Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
424 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
426 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
427 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
429 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
430 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
432 Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
433 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
435 Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
436 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
438 Testing: -drive file=TEST_DIR/t.qcow2,bps=0
439 QEMU X.Y.Z monitor - type 'help' for more information
440 (qemu) quit
442 Testing: -drive file=TEST_DIR/t.qcow2,bps=1
443 QEMU X.Y.Z monitor - type 'help' for more information
444 (qemu) quit
446 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
447 QEMU X.Y.Z monitor - type 'help' for more information
448 (qemu) quit
450 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
451 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
453 Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
454 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
457 === Parsing protocol from file name ===
459 Testing: -hda foo:bar
460 QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
462 Testing: -drive file=foo:bar
463 QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
465 Testing: -drive file.filename=foo:bar
466 QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
468 Testing: -hda file:TEST_DIR/t.qcow2
469 QEMU X.Y.Z monitor - type 'help' for more information
470 (qemu) quit
472 Testing: -drive file=file:TEST_DIR/t.qcow2
473 QEMU X.Y.Z monitor - type 'help' for more information
474 (qemu) quit
476 Testing: -drive file.filename=file:TEST_DIR/t.qcow2
477 QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
480 === Snapshot mode ===
482 wrote 4096/4096 bytes at offset 0
483 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
484 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
485 QEMU X.Y.Z monitor - type 'help' for more information
486 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
487 wrote 4096/4096 bytes at offset 0
488 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
489 (qemu) quit
491 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
492 QEMU X.Y.Z monitor - type 'help' for more information
493 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
494 wrote 4096/4096 bytes at offset 0
495 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
496 (qemu) quit
498 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
499 QEMU X.Y.Z monitor - type 'help' for more information
500 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
501 wrote 4096/4096 bytes at offset 0
502 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
503 (qemu) quit
505 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
506 QEMU X.Y.Z monitor - type 'help' for more information
507 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
508 wrote 4096/4096 bytes at offset 0
509 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
510 (qemu) quit
512 Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
513 QEMU X.Y.Z monitor - type 'help' for more information
514 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
515 wrote 4096/4096 bytes at offset 0
516 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
517 (qemu) quit
519 Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
520 QEMU X.Y.Z monitor - type 'help' for more information
521 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
522 wrote 4096/4096 bytes at offset 0
523 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
524 (qemu) quit
526 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
527 QEMU X.Y.Z monitor - type 'help' for more information
528 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
529 wrote 4096/4096 bytes at offset 0
530 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
531 (qemu) quit
533 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
534 QEMU X.Y.Z monitor - type 'help' for more information
535 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
536 wrote 4096/4096 bytes at offset 0
537 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
538 (qemu) quit
540 read 4096/4096 bytes at offset 0
541 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
542 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
543 QEMU X.Y.Z monitor - type 'help' for more information
544 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
545 wrote 4096/4096 bytes at offset 0
546 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
547 (qemu) quit
549 read 4096/4096 bytes at offset 0
550 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
551 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
552 QEMU X.Y.Z monitor - type 'help' for more information
553 (qemu) qemu-io drive0 "write -P 0x33 0 4k"
554 wrote 4096/4096 bytes at offset 0
555 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
556 (qemu) commit drive0
557 (qemu) quit
559 read 4096/4096 bytes at offset 0
560 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
561 Testing: -drive driver=null-co,snapshot=on
562 QEMU_PROG: -drive driver=null-co,snapshot=on: Could not get temporary filename: No such file or directory
564 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,read-only=on,if=none,id=drive0
565 QEMU X.Y.Z monitor - type 'help' for more information
566 (qemu) info block
567 drive0 (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)
568     Removable device: not locked, tray closed
569     Cache mode:       writeback, ignore flushes
570     Backing file:     TEST_DIR/t.qcow2 (chain depth: 1)
571 (qemu) quit
573 *** done