xref: /openbmc/qemu/tests/qemu-iotests/051.pc.out (revision 39164c13)
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=== Device without drive ===
51
52Testing: -device virtio-scsi-pci -device scsi-hd
53QEMU X.Y.Z monitor - type 'help' for more information
54(qemu) QEMU_PROG: -device scsi-hd: drive property not set
55
56
57=== Overriding backing file ===
58
59Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults
60QEMU X.Y.Z monitor - type 'help' for more information
61(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
62drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
63    Removable device: not locked, tray closed
64    Cache mode:       writeback
65    Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
66(qemu) qququiquit
67
68Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
69QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
70
71Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
72QEMU_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
73
74Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
75QEMU_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
76
77
78=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
79
80Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
81QEMU X.Y.Z monitor - type 'help' for more information
82(qemu) qququiquit
83
84Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
85QEMU X.Y.Z monitor - type 'help' for more information
86(qemu) qququiquit
87
88Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
89QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
90
91Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
92QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
93
94Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
95QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'
96
97
98=== With version 2 images enabling lazy refcounts must fail ===
99
100Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
101Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
102QEMU_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
103
104Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
105QEMU X.Y.Z monitor - type 'help' for more information
106(qemu) qququiquit
107
108
109=== No medium ===
110
111Testing: -drive if=floppy
112QEMU X.Y.Z monitor - type 'help' for more information
113(qemu) qququiquit
114
115Testing: -drive if=ide,media=cdrom
116QEMU X.Y.Z monitor - type 'help' for more information
117(qemu) qququiquit
118
119Testing: -drive if=scsi,media=cdrom
120QEMU X.Y.Z monitor - type 'help' for more information
121(qemu) QEMU_PROG: -drive if=scsi,media=cdrom: warning: bus=0,unit=0 is deprecated with this machine type
122qququiquit
123
124Testing: -drive if=ide
125QEMU X.Y.Z monitor - type 'help' for more information
126(qemu) QEMU_PROG: Device needs media, but drive is empty
127QEMU_PROG: Initialization of device ide-hd failed: Device initialization failed.
128
129Testing: -drive if=scsi
130QEMU X.Y.Z monitor - type 'help' for more information
131(qemu) QEMU_PROG: -drive if=scsi: warning: bus=0,unit=0 is deprecated with this machine type
132QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
133
134Testing: -drive if=virtio
135QEMU X.Y.Z monitor - type 'help' for more information
136(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
137
138Testing: -drive if=none,id=disk -device ide-cd,drive=disk
139QEMU X.Y.Z monitor - type 'help' for more information
140(qemu) qququiquit
141
142Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
143QEMU X.Y.Z monitor - type 'help' for more information
144(qemu) qququiquit
145
146Testing: -drive if=none,id=disk -device ide-drive,drive=disk
147QEMU X.Y.Z monitor - type 'help' for more information
148(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
149QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
150
151Testing: -drive if=none,id=disk -device ide-hd,drive=disk
152QEMU X.Y.Z monitor - type 'help' for more information
153(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
154QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
155
156Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
157QEMU X.Y.Z monitor - type 'help' for more information
158(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
159
160Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
161QEMU X.Y.Z monitor - type 'help' for more information
162(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
163
164
165=== Read-only ===
166
167Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
168QEMU X.Y.Z monitor - type 'help' for more information
169(qemu) qququiquit
170
171Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
172QEMU X.Y.Z monitor - type 'help' for more information
173(qemu) qququiquit
174
175Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
176QEMU X.Y.Z monitor - type 'help' for more information
177(qemu) QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on: warning: bus=0,unit=0 is deprecated with this machine type
178qququiquit
179
180Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
181QEMU X.Y.Z monitor - type 'help' for more information
182(qemu) QEMU_PROG: Can't use a read-only drive
183QEMU_PROG: Initialization of device ide-hd failed: Device initialization failed.
184
185Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
186QEMU X.Y.Z monitor - type 'help' for more information
187(qemu) QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on: warning: bus=0,unit=0 is deprecated with this machine type
188qququiquit
189
190Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
191QEMU X.Y.Z monitor - type 'help' for more information
192(qemu) qququiquit
193
194Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
195QEMU X.Y.Z monitor - type 'help' for more information
196(qemu) qququiquit
197
198Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
199QEMU X.Y.Z monitor - type 'help' for more information
200(qemu) qququiquit
201
202Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
203QEMU X.Y.Z monitor - type 'help' for more information
204(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
205QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
206
207Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
208QEMU X.Y.Z monitor - type 'help' for more information
209(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
210QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
211
212Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
213QEMU X.Y.Z monitor - type 'help' for more information
214(qemu) qququiquit
215
216Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
217QEMU X.Y.Z monitor - type 'help' for more information
218(qemu) qququiquit
219
220
221=== Cache modes ===
222
223Testing: -drive driver=null-co,cache=none
224QEMU X.Y.Z monitor - type 'help' for more information
225(qemu) qququiquit
226
227Testing: -drive driver=null-co,cache=directsync
228QEMU X.Y.Z monitor - type 'help' for more information
229(qemu) qququiquit
230
231Testing: -drive driver=null-co,cache=writeback
232QEMU X.Y.Z monitor - type 'help' for more information
233(qemu) qququiquit
234
235Testing: -drive driver=null-co,cache=writethrough
236QEMU X.Y.Z monitor - type 'help' for more information
237(qemu) qququiquit
238
239Testing: -drive driver=null-co,cache=unsafe
240QEMU X.Y.Z monitor - type 'help' for more information
241(qemu) qququiquit
242
243Testing: -drive driver=null-co,cache=invalid_value
244QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
245
246Testing: -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
247QEMU X.Y.Z monitor - type 'help' for more information
248(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
249drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
250    Removable device: not locked, tray closed
251    Cache mode:       writeback
252    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
253(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block finfo block fiinfo block filinfo block file
254
255file: TEST_DIR/t.qcow2 (file)
256    Cache mode:       writeback
257(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backing
258backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
259    Cache mode:       writeback, ignore flushes
260(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backinginfo block backing-info block backing-finfo block backing-fiinfo block backing-filinfo block backing-file
261
262backing-file: TEST_DIR/t.qcow2.base (file, read-only)
263    Cache mode:       writeback, ignore flushes
264(qemu) qququiquit
265
266Testing: -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
267QEMU X.Y.Z monitor - type 'help' for more information
268(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
269drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
270    Removable device: not locked, tray closed
271    Cache mode:       writethrough
272    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
273(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block finfo block fiinfo block filinfo block file
274
275file: TEST_DIR/t.qcow2 (file)
276    Cache mode:       writeback
277(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backing
278backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
279    Cache mode:       writeback, ignore flushes
280(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backinginfo block backing-info block backing-finfo block backing-fiinfo block backing-filinfo block backing-file
281
282backing-file: TEST_DIR/t.qcow2.base (file, read-only)
283    Cache mode:       writeback, ignore flushes
284(qemu) qququiquit
285
286Testing: -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
287QEMU X.Y.Z monitor - type 'help' for more information
288(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
289drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
290    Removable device: not locked, tray closed
291    Cache mode:       writeback, ignore flushes
292    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
293(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block finfo block fiinfo block filinfo block file
294
295file: TEST_DIR/t.qcow2 (file)
296    Cache mode:       writeback, ignore flushes
297(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backing
298backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
299    Cache mode:       writeback, ignore flushes
300(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backinginfo block backing-info block backing-finfo block backing-fiinfo block backing-filinfo block backing-file
301
302backing-file: TEST_DIR/t.qcow2.base (file, read-only)
303    Cache mode:       writeback, ignore flushes
304(qemu) qququiquit
305
306Testing: -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
307QEMU_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
308
309
310=== Specifying the protocol layer ===
311
312Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
313QEMU X.Y.Z monitor - type 'help' for more information
314(qemu) qququiquit
315
316
317=== Leaving out required options ===
318
319Testing: -drive driver=file
320QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
321
322Testing: -drive driver=nbd
323QEMU_PROG: -drive driver=nbd: NBD server address missing
324
325Testing: -drive driver=raw
326QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
327
328Testing: -drive file.driver=file
329QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
330
331Testing: -drive file.driver=nbd
332QEMU_PROG: -drive file.driver=nbd: NBD server address missing
333
334Testing: -drive file.driver=raw
335QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
336
337Testing: -drive foo=bar
338QEMU_PROG: -drive foo=bar: Must specify either driver or file
339
340
341=== Specifying both an option and its legacy alias ===
342
343Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
344QEMU_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
345
346Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
347QEMU_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
348
349Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
350QEMU_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
351
352Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
353QEMU_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
354
355Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
356QEMU_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
357
358Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
359QEMU_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
360
361Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
362QEMU_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
363
364Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
365QEMU_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
366
367Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
368QEMU_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
369
370Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
371QEMU_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
372
373Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
374QEMU_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
375
376Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
377QEMU_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
378
379Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
380QEMU_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
381
382Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
383QEMU_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
384
385
386=== Catching negative/large throttling values ===
387
388Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
389QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
390
391Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
392QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
393
394Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
395QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
396
397Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
398QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
399
400Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
401QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
402
403Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
404QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
405
406Testing: -drive file=TEST_DIR/t.qcow2,bps=0
407QEMU X.Y.Z monitor - type 'help' for more information
408(qemu) qququiquit
409
410Testing: -drive file=TEST_DIR/t.qcow2,bps=1
411QEMU X.Y.Z monitor - type 'help' for more information
412(qemu) qququiquit
413
414Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
415QEMU X.Y.Z monitor - type 'help' for more information
416(qemu) qququiquit
417
418Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
419QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
420
421Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
422QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
423
424
425=== Parsing protocol from file name ===
426
427Testing: -hda foo:bar
428QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
429
430Testing: -drive file=foo:bar
431QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
432
433Testing: -drive file.filename=foo:bar
434QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
435
436Testing: -hda file:TEST_DIR/t.qcow2
437QEMU X.Y.Z monitor - type 'help' for more information
438(qemu) qququiquit
439
440Testing: -drive file=file:TEST_DIR/t.qcow2
441QEMU X.Y.Z monitor - type 'help' for more information
442(qemu) qququiquit
443
444Testing: -drive file.filename=file:TEST_DIR/t.qcow2
445QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
446
447
448=== Snapshot mode ===
449
450wrote 4096/4096 bytes at offset 0
4514 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
452Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
453QEMU X.Y.Z monitor - type 'help' for more information
454(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io dqemu-io drqemu-io driqemu-io drivqemu-io driveqemu-io drive0qemu-io drive0 qemu-io drive0 "qemu-io drive0 "wqemu-io drive0 "wrqemu-io drive0 "wriqemu-io drive0 "writqemu-io drive0 "writeqemu-io drive0 "write qemu-io drive0 "write -qemu-io drive0 "write -Pqemu-io drive0 "write -P qemu-io drive0 "write -P 0qemu-io drive0 "write -P 0xqemu-io drive0 "write -P 0x2qemu-io drive0 "write -P 0x22qemu-io drive0 "write -P 0x22 qemu-io drive0 "write -P 0x22 0qemu-io drive0 "write -P 0x22 0 qemu-io drive0 "write -P 0x22 0 4qemu-io drive0 "write -P 0x22 0 4kqemu-io drive0 "write -P 0x22 0 4k"
455wrote 4096/4096 bytes at offset 0
4564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
457(qemu) qququiquit
458
459Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
460QEMU X.Y.Z monitor - type 'help' for more information
461(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io dqemu-io drqemu-io driqemu-io drivqemu-io driveqemu-io drive0qemu-io drive0 qemu-io drive0 "qemu-io drive0 "wqemu-io drive0 "wrqemu-io drive0 "wriqemu-io drive0 "writqemu-io drive0 "writeqemu-io drive0 "write qemu-io drive0 "write -qemu-io drive0 "write -Pqemu-io drive0 "write -P qemu-io drive0 "write -P 0qemu-io drive0 "write -P 0xqemu-io drive0 "write -P 0x2qemu-io drive0 "write -P 0x22qemu-io drive0 "write -P 0x22 qemu-io drive0 "write -P 0x22 0qemu-io drive0 "write -P 0x22 0 qemu-io drive0 "write -P 0x22 0 4qemu-io drive0 "write -P 0x22 0 4kqemu-io drive0 "write -P 0x22 0 4k"
462wrote 4096/4096 bytes at offset 0
4634 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
464(qemu) qququiquit
465
466Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
467QEMU X.Y.Z monitor - type 'help' for more information
468(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io dqemu-io drqemu-io driqemu-io drivqemu-io driveqemu-io drive0qemu-io drive0 qemu-io drive0 "qemu-io drive0 "wqemu-io drive0 "wrqemu-io drive0 "wriqemu-io drive0 "writqemu-io drive0 "writeqemu-io drive0 "write qemu-io drive0 "write -qemu-io drive0 "write -Pqemu-io drive0 "write -P qemu-io drive0 "write -P 0qemu-io drive0 "write -P 0xqemu-io drive0 "write -P 0x2qemu-io drive0 "write -P 0x22qemu-io drive0 "write -P 0x22 qemu-io drive0 "write -P 0x22 0qemu-io drive0 "write -P 0x22 0 qemu-io drive0 "write -P 0x22 0 4qemu-io drive0 "write -P 0x22 0 4kqemu-io drive0 "write -P 0x22 0 4k"
469wrote 4096/4096 bytes at offset 0
4704 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
471(qemu) qququiquit
472
473Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
474QEMU X.Y.Z monitor - type 'help' for more information
475(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io dqemu-io drqemu-io driqemu-io drivqemu-io driveqemu-io drive0qemu-io drive0 qemu-io drive0 "qemu-io drive0 "wqemu-io drive0 "wrqemu-io drive0 "wriqemu-io drive0 "writqemu-io drive0 "writeqemu-io drive0 "write qemu-io drive0 "write -qemu-io drive0 "write -Pqemu-io drive0 "write -P qemu-io drive0 "write -P 0qemu-io drive0 "write -P 0xqemu-io drive0 "write -P 0x2qemu-io drive0 "write -P 0x22qemu-io drive0 "write -P 0x22 qemu-io drive0 "write -P 0x22 0qemu-io drive0 "write -P 0x22 0 qemu-io drive0 "write -P 0x22 0 4qemu-io drive0 "write -P 0x22 0 4kqemu-io drive0 "write -P 0x22 0 4k"
476wrote 4096/4096 bytes at offset 0
4774 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
478(qemu) qququiquit
479
480Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
481QEMU X.Y.Z monitor - type 'help' for more information
482(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io dqemu-io drqemu-io driqemu-io drivqemu-io driveqemu-io drive0qemu-io drive0 qemu-io drive0 "qemu-io drive0 "wqemu-io drive0 "wrqemu-io drive0 "wriqemu-io drive0 "writqemu-io drive0 "writeqemu-io drive0 "write qemu-io drive0 "write -qemu-io drive0 "write -Pqemu-io drive0 "write -P qemu-io drive0 "write -P 0qemu-io drive0 "write -P 0xqemu-io drive0 "write -P 0x2qemu-io drive0 "write -P 0x22qemu-io drive0 "write -P 0x22 qemu-io drive0 "write -P 0x22 0qemu-io drive0 "write -P 0x22 0 qemu-io drive0 "write -P 0x22 0 4qemu-io drive0 "write -P 0x22 0 4kqemu-io drive0 "write -P 0x22 0 4k"
483wrote 4096/4096 bytes at offset 0
4844 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
485(qemu) qququiquit
486
487Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
488QEMU X.Y.Z monitor - type 'help' for more information
489(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io dqemu-io drqemu-io driqemu-io drivqemu-io driveqemu-io drive0qemu-io drive0 qemu-io drive0 "qemu-io drive0 "wqemu-io drive0 "wrqemu-io drive0 "wriqemu-io drive0 "writqemu-io drive0 "writeqemu-io drive0 "write qemu-io drive0 "write -qemu-io drive0 "write -Pqemu-io drive0 "write -P qemu-io drive0 "write -P 0qemu-io drive0 "write -P 0xqemu-io drive0 "write -P 0x2qemu-io drive0 "write -P 0x22qemu-io drive0 "write -P 0x22 qemu-io drive0 "write -P 0x22 0qemu-io drive0 "write -P 0x22 0 qemu-io drive0 "write -P 0x22 0 4qemu-io drive0 "write -P 0x22 0 4kqemu-io drive0 "write -P 0x22 0 4k"
490wrote 4096/4096 bytes at offset 0
4914 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
492(qemu) qququiquit
493
494Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
495QEMU X.Y.Z monitor - type 'help' for more information
496(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io dqemu-io drqemu-io driqemu-io drivqemu-io driveqemu-io drive0qemu-io drive0 qemu-io drive0 "qemu-io drive0 "wqemu-io drive0 "wrqemu-io drive0 "wriqemu-io drive0 "writqemu-io drive0 "writeqemu-io drive0 "write qemu-io drive0 "write -qemu-io drive0 "write -Pqemu-io drive0 "write -P qemu-io drive0 "write -P 0qemu-io drive0 "write -P 0xqemu-io drive0 "write -P 0x2qemu-io drive0 "write -P 0x22qemu-io drive0 "write -P 0x22 qemu-io drive0 "write -P 0x22 0qemu-io drive0 "write -P 0x22 0 qemu-io drive0 "write -P 0x22 0 4qemu-io drive0 "write -P 0x22 0 4kqemu-io drive0 "write -P 0x22 0 4k"
497wrote 4096/4096 bytes at offset 0
4984 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
499(qemu) qququiquit
500
501Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
502QEMU X.Y.Z monitor - type 'help' for more information
503(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io dqemu-io drqemu-io driqemu-io drivqemu-io driveqemu-io drive0qemu-io drive0 qemu-io drive0 "qemu-io drive0 "wqemu-io drive0 "wrqemu-io drive0 "wriqemu-io drive0 "writqemu-io drive0 "writeqemu-io drive0 "write qemu-io drive0 "write -qemu-io drive0 "write -Pqemu-io drive0 "write -P qemu-io drive0 "write -P 0qemu-io drive0 "write -P 0xqemu-io drive0 "write -P 0x2qemu-io drive0 "write -P 0x22qemu-io drive0 "write -P 0x22 qemu-io drive0 "write -P 0x22 0qemu-io drive0 "write -P 0x22 0 qemu-io drive0 "write -P 0x22 0 4qemu-io drive0 "write -P 0x22 0 4kqemu-io drive0 "write -P 0x22 0 4k"
504wrote 4096/4096 bytes at offset 0
5054 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
506(qemu) qququiquit
507
508read 4096/4096 bytes at offset 0
5094 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
510Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
511QEMU X.Y.Z monitor - type 'help' for more information
512(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io dqemu-io drqemu-io driqemu-io drivqemu-io driveqemu-io drive0qemu-io drive0 qemu-io drive0 "qemu-io drive0 "wqemu-io drive0 "wrqemu-io drive0 "wriqemu-io drive0 "writqemu-io drive0 "writeqemu-io drive0 "write qemu-io drive0 "write -qemu-io drive0 "write -Pqemu-io drive0 "write -P qemu-io drive0 "write -P 0qemu-io drive0 "write -P 0xqemu-io drive0 "write -P 0x2qemu-io drive0 "write -P 0x22qemu-io drive0 "write -P 0x22 qemu-io drive0 "write -P 0x22 0qemu-io drive0 "write -P 0x22 0 qemu-io drive0 "write -P 0x22 0 4qemu-io drive0 "write -P 0x22 0 4kqemu-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) qququiquit
516
517read 4096/4096 bytes at offset 0
5184 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
519Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
520QEMU X.Y.Z monitor - type 'help' for more information
521(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io dqemu-io drqemu-io driqemu-io drivqemu-io driveqemu-io drive0qemu-io drive0 qemu-io drive0 "qemu-io drive0 "wqemu-io drive0 "wrqemu-io drive0 "wriqemu-io drive0 "writqemu-io drive0 "writeqemu-io drive0 "write qemu-io drive0 "write -qemu-io drive0 "write -Pqemu-io drive0 "write -P qemu-io drive0 "write -P 0qemu-io drive0 "write -P 0xqemu-io drive0 "write -P 0x3qemu-io drive0 "write -P 0x33qemu-io drive0 "write -P 0x33 qemu-io drive0 "write -P 0x33 0qemu-io drive0 "write -P 0x33 0 qemu-io drive0 "write -P 0x33 0 4qemu-io drive0 "write -P 0x33 0 4kqemu-io drive0 "write -P 0x33 0 4k"
522wrote 4096/4096 bytes at offset 0
5234 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
524(qemu) ccocomcommcommicommitcommit commit dcommit drcommit dricommit drivcommit drivecommit drive0
525(qemu) qququiquit
526
527read 4096/4096 bytes at offset 0
5284 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
529*** done
530