Merge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2019-11-04-tag' into staging
[qemu/ar7.git] / tests / qemu-iotests / 051.pc.out
blob34849dd17205aaf05c7f6e2cb4725dc9778e0d47
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
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: Initialization of device ide-hd failed: 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: Device needs media, but drive is empty
172 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
173 QEMU 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
177 === Attach to node in non-default iothread ===
179 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
180 QEMU 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
183 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
184 QEMU 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
187 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
188 QEMU 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
191 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
192 QEMU 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
195 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
196 QEMU 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
199 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
200 QEMU X.Y.Z monitor - type 'help' for more information
201 (qemu) quit
204 === Read-only ===
206 Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
207 QEMU X.Y.Z monitor - type 'help' for more information
208 (qemu) quit
210 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
211 QEMU X.Y.Z monitor - type 'help' for more information
212 (qemu) quit
214 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
215 QEMU X.Y.Z monitor - type 'help' for more information
216 (qemu) QEMU_PROG: Initialization of device ide-hd failed: Block node is read-only
218 Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
219 QEMU X.Y.Z monitor - type 'help' for more information
220 (qemu) quit
222 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
223 QEMU X.Y.Z monitor - type 'help' for more information
224 (qemu) quit
226 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
227 QEMU X.Y.Z monitor - type 'help' for more information
228 (qemu) quit
230 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
231 QEMU 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
233 QEMU_PROG: -device ide-drive,drive=disk: Block node is read-only
235 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
236 QEMU X.Y.Z monitor - type 'help' for more information
237 (qemu) QEMU_PROG: -device ide-hd,drive=disk: Block node is read-only
239 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
240 QEMU X.Y.Z monitor - type 'help' for more information
241 (qemu) quit
243 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
244 QEMU X.Y.Z monitor - type 'help' for more information
245 (qemu) quit
248 === Cache modes ===
250 Testing: -drive driver=null-co,read-zeroes=on,cache=none
251 QEMU X.Y.Z monitor - type 'help' for more information
252 (qemu) quit
254 Testing: -drive driver=null-co,read-zeroes=on,cache=directsync
255 QEMU X.Y.Z monitor - type 'help' for more information
256 (qemu) quit
258 Testing: -drive driver=null-co,read-zeroes=on,cache=writeback
259 QEMU X.Y.Z monitor - type 'help' for more information
260 (qemu) quit
262 Testing: -drive driver=null-co,read-zeroes=on,cache=writethrough
263 QEMU X.Y.Z monitor - type 'help' for more information
264 (qemu) quit
266 Testing: -drive driver=null-co,read-zeroes=on,cache=unsafe
267 QEMU X.Y.Z monitor - type 'help' for more information
268 (qemu) quit
270 Testing: -drive driver=null-co,cache=invalid_value
271 QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
273 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
274 QEMU X.Y.Z monitor - type 'help' for more information
275 (qemu) info block
276 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)
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
282 file: TEST_DIR/t.qcow2 (file)
283     Cache mode:       writeback
284 (qemu) info block backing
285 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
286     Cache mode:       writeback, ignore flushes
287 (qemu) info block backing-file
289 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
290     Cache mode:       writeback, ignore flushes
291 (qemu) quit
293 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
294 QEMU X.Y.Z monitor - type 'help' for more information
295 (qemu) info block
296 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)
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
302 file: TEST_DIR/t.qcow2 (file)
303     Cache mode:       writeback
304 (qemu) info block backing
305 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
306     Cache mode:       writeback, ignore flushes
307 (qemu) info block backing-file
309 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
310     Cache mode:       writeback, ignore flushes
311 (qemu) quit
313 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
314 QEMU X.Y.Z monitor - type 'help' for more information
315 (qemu) info block
316 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)
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
322 file: TEST_DIR/t.qcow2 (file)
323     Cache mode:       writeback, ignore flushes
324 (qemu) info block backing
325 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
326     Cache mode:       writeback, ignore flushes
327 (qemu) info block backing-file
329 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
330     Cache mode:       writeback, ignore flushes
331 (qemu) quit
333 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
334 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
337 === Specifying the protocol layer ===
339 Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
340 QEMU X.Y.Z monitor - type 'help' for more information
341 (qemu) quit
344 === Leaving out required options ===
346 Testing: -drive driver=file
347 QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
349 Testing: -drive driver=file,filename=
350 QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
352 Testing: -drive driver=nbd
353 QEMU_PROG: -drive driver=nbd: NBD server address missing
355 Testing: -drive driver=raw
356 QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
358 Testing: -drive file.driver=file
359 QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
361 Testing: -drive file.driver=nbd
362 QEMU_PROG: -drive file.driver=nbd: NBD server address missing
364 Testing: -drive file.driver=raw
365 QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
367 Testing: -drive foo=bar
368 QEMU_PROG: -drive foo=bar: Must specify either driver or file
371 === Specifying both an option and its legacy alias ===
373 Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
374 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
376 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
377 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
379 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
380 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
382 Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
383 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
385 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
386 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
388 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
389 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
391 Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
392 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
394 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
395 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
397 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
398 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
400 Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
401 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
403 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
404 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
406 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
407 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
409 Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
410 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
412 Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
413 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
416 === Catching negative/large throttling values ===
418 Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
419 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
421 Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
422 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
424 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
425 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
427 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
428 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
430 Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
431 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
433 Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
434 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
436 Testing: -drive file=TEST_DIR/t.qcow2,bps=0
437 QEMU X.Y.Z monitor - type 'help' for more information
438 (qemu) quit
440 Testing: -drive file=TEST_DIR/t.qcow2,bps=1
441 QEMU X.Y.Z monitor - type 'help' for more information
442 (qemu) quit
444 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
445 QEMU X.Y.Z monitor - type 'help' for more information
446 (qemu) quit
448 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
449 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
451 Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
452 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
455 === Parsing protocol from file name ===
457 Testing: -hda foo:bar
458 QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
460 Testing: -drive file=foo:bar
461 QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
463 Testing: -drive file.filename=foo:bar
464 QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
466 Testing: -hda file:TEST_DIR/t.qcow2
467 QEMU X.Y.Z monitor - type 'help' for more information
468 (qemu) quit
470 Testing: -drive file=file:TEST_DIR/t.qcow2
471 QEMU X.Y.Z monitor - type 'help' for more information
472 (qemu) quit
474 Testing: -drive file.filename=file:TEST_DIR/t.qcow2
475 QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
478 === Snapshot mode ===
480 wrote 4096/4096 bytes at offset 0
481 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
482 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
483 QEMU X.Y.Z monitor - type 'help' for more information
484 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
485 wrote 4096/4096 bytes at offset 0
486 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
487 (qemu) quit
489 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
490 QEMU X.Y.Z monitor - type 'help' for more information
491 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
492 wrote 4096/4096 bytes at offset 0
493 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
494 (qemu) quit
496 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
497 QEMU X.Y.Z monitor - type 'help' for more information
498 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
499 wrote 4096/4096 bytes at offset 0
500 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
501 (qemu) quit
503 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
504 QEMU X.Y.Z monitor - type 'help' for more information
505 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
506 wrote 4096/4096 bytes at offset 0
507 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
508 (qemu) quit
510 Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
511 QEMU X.Y.Z monitor - type 'help' for more information
512 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
513 wrote 4096/4096 bytes at offset 0
514 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
515 (qemu) quit
517 Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
518 QEMU X.Y.Z monitor - type 'help' for more information
519 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
520 wrote 4096/4096 bytes at offset 0
521 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
522 (qemu) quit
524 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
525 QEMU X.Y.Z monitor - type 'help' for more information
526 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
527 wrote 4096/4096 bytes at offset 0
528 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
529 (qemu) quit
531 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
532 QEMU X.Y.Z monitor - type 'help' for more information
533 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
534 wrote 4096/4096 bytes at offset 0
535 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
536 (qemu) quit
538 read 4096/4096 bytes at offset 0
539 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
540 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
541 QEMU X.Y.Z monitor - type 'help' for more information
542 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
543 wrote 4096/4096 bytes at offset 0
544 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
545 (qemu) quit
547 read 4096/4096 bytes at offset 0
548 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
549 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
550 QEMU X.Y.Z monitor - type 'help' for more information
551 (qemu) qemu-io drive0 "write -P 0x33 0 4k"
552 wrote 4096/4096 bytes at offset 0
553 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
554 (qemu) commit drive0
555 (qemu) quit
557 read 4096/4096 bytes at offset 0
558 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
559 Testing: -drive driver=null-co,snapshot=on
560 QEMU_PROG: -drive driver=null-co,snapshot=on: Could not get temporary filename: No such file or directory
562 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,read-only=on,if=none,id=drive0
563 QEMU X.Y.Z monitor - type 'help' for more information
564 (qemu) info block
565 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)
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
571 *** done