xref: /openbmc/qemu/tests/qemu-iotests/051.pc.out (revision 4a09d0bb)
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) qququiquit
122
123Testing: -drive if=ide
124QEMU X.Y.Z monitor - type 'help' for more information
125(qemu) QEMU_PROG: Device needs media, but drive is empty
126QEMU_PROG: Initialization of device ide-hd failed: Device initialization failed.
127
128Testing: -drive if=scsi
129QEMU X.Y.Z monitor - type 'help' for more information
130(qemu) QEMU_PROG: Initialization of device lsi53c895a failed: Device needs media, but drive is empty
131
132Testing: -drive if=virtio
133QEMU X.Y.Z monitor - type 'help' for more information
134(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
135
136Testing: -drive if=none,id=disk -device ide-cd,drive=disk
137QEMU X.Y.Z monitor - type 'help' for more information
138(qemu) qququiquit
139
140Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
141QEMU X.Y.Z monitor - type 'help' for more information
142(qemu) qququiquit
143
144Testing: -drive if=none,id=disk -device ide-drive,drive=disk
145QEMU X.Y.Z monitor - type 'help' for more information
146(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
147QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
148
149Testing: -drive if=none,id=disk -device ide-hd,drive=disk
150QEMU X.Y.Z monitor - type 'help' for more information
151(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
152QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
153
154Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
155QEMU X.Y.Z monitor - type 'help' for more information
156(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
157
158Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
159QEMU X.Y.Z monitor - type 'help' for more information
160(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
161
162
163=== Read-only ===
164
165Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
166QEMU X.Y.Z monitor - type 'help' for more information
167(qemu) qququiquit
168
169Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
170QEMU X.Y.Z monitor - type 'help' for more information
171(qemu) qququiquit
172
173Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
174QEMU X.Y.Z monitor - type 'help' for more information
175(qemu) qququiquit
176
177Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
178QEMU X.Y.Z monitor - type 'help' for more information
179(qemu) QEMU_PROG: Can't use a read-only drive
180QEMU_PROG: Initialization of device ide-hd failed: Device initialization failed.
181
182Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
183QEMU X.Y.Z monitor - type 'help' for more information
184(qemu) qququiquit
185
186Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
187QEMU X.Y.Z monitor - type 'help' for more information
188(qemu) qququiquit
189
190Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
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 lsi53c895a -device scsi-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 ide-drive,drive=disk
199QEMU X.Y.Z monitor - type 'help' for more information
200(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
201QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
202
203Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
204QEMU X.Y.Z monitor - type 'help' for more information
205(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
206QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
207
208Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
209QEMU X.Y.Z monitor - type 'help' for more information
210(qemu) qququiquit
211
212Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
213QEMU X.Y.Z monitor - type 'help' for more information
214(qemu) qququiquit
215
216
217=== Cache modes ===
218
219Testing: -drive driver=null-co,cache=none
220QEMU X.Y.Z monitor - type 'help' for more information
221(qemu) qququiquit
222
223Testing: -drive driver=null-co,cache=directsync
224QEMU X.Y.Z monitor - type 'help' for more information
225(qemu) qququiquit
226
227Testing: -drive driver=null-co,cache=writeback
228QEMU X.Y.Z monitor - type 'help' for more information
229(qemu) qququiquit
230
231Testing: -drive driver=null-co,cache=writethrough
232QEMU X.Y.Z monitor - type 'help' for more information
233(qemu) qququiquit
234
235Testing: -drive driver=null-co,cache=unsafe
236QEMU X.Y.Z monitor - type 'help' for more information
237(qemu) qququiquit
238
239Testing: -drive driver=null-co,cache=invalid_value
240QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
241
242Testing: -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
243QEMU X.Y.Z monitor - type 'help' for more information
244(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
245drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
246    Removable device: not locked, tray closed
247    Cache mode:       writeback
248    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
249(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block finfo block fiinfo block filinfo block file
250
251file: TEST_DIR/t.qcow2 (file)
252    Cache mode:       writeback
253(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backing
254backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
255    Cache mode:       writeback, ignore flushes
256(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
257
258backing-file: TEST_DIR/t.qcow2.base (file, read-only)
259    Cache mode:       writeback, ignore flushes
260(qemu) qququiquit
261
262Testing: -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
263QEMU X.Y.Z monitor - type 'help' for more information
264(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
265drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
266    Removable device: not locked, tray closed
267    Cache mode:       writethrough
268    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
269(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block finfo block fiinfo block filinfo block file
270
271file: TEST_DIR/t.qcow2 (file)
272    Cache mode:       writeback
273(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backing
274backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
275    Cache mode:       writeback, ignore flushes
276(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
277
278backing-file: TEST_DIR/t.qcow2.base (file, read-only)
279    Cache mode:       writeback, ignore flushes
280(qemu) qququiquit
281
282Testing: -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
283QEMU X.Y.Z monitor - type 'help' for more information
284(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
285drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
286    Removable device: not locked, tray closed
287    Cache mode:       writeback, ignore flushes
288    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
289(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block finfo block fiinfo block filinfo block file
290
291file: TEST_DIR/t.qcow2 (file)
292    Cache mode:       writeback, ignore flushes
293(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backing
294backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
295    Cache mode:       writeback, ignore flushes
296(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
297
298backing-file: TEST_DIR/t.qcow2.base (file, read-only)
299    Cache mode:       writeback, ignore flushes
300(qemu) qququiquit
301
302Testing: -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
303QEMU_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
304
305
306=== Specifying the protocol layer ===
307
308Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
309QEMU X.Y.Z monitor - type 'help' for more information
310(qemu) qququiquit
311
312
313=== Leaving out required options ===
314
315Testing: -drive driver=file
316QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
317
318Testing: -drive driver=nbd
319QEMU_PROG: -drive driver=nbd: NBD server address missing
320
321Testing: -drive driver=raw
322QEMU_PROG: -drive driver=raw: Can't use 'raw' as a block driver for the protocol level
323
324Testing: -drive file.driver=file
325QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
326
327Testing: -drive file.driver=nbd
328QEMU_PROG: -drive file.driver=nbd: NBD server address missing
329
330Testing: -drive file.driver=raw
331QEMU_PROG: -drive file.driver=raw: Can't use 'raw' as a block driver for the protocol level
332
333Testing: -drive foo=bar
334QEMU_PROG: -drive foo=bar: Must specify either driver or file
335
336
337=== Specifying both an option and its legacy alias ===
338
339Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
340QEMU_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
341
342Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
343QEMU_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
344
345Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
346QEMU_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
347
348Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
349QEMU_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
350
351Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
352QEMU_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
353
354Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
355QEMU_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
356
357Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
358QEMU_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
359
360Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
361QEMU_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
362
363Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
364QEMU_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
365
366Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
367QEMU_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
368
369Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
370QEMU_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
371
372Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
373QEMU_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
374
375Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
376QEMU_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
377
378Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
379QEMU_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
380
381
382=== Catching negative/large throttling values ===
383
384Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
385QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
386
387Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
388QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
389
390Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
391QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
392
393Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
394QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
395
396Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
397QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
398
399Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
400QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
401
402Testing: -drive file=TEST_DIR/t.qcow2,bps=0
403QEMU X.Y.Z monitor - type 'help' for more information
404(qemu) qququiquit
405
406Testing: -drive file=TEST_DIR/t.qcow2,bps=1
407QEMU X.Y.Z monitor - type 'help' for more information
408(qemu) qququiquit
409
410Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
411QEMU X.Y.Z monitor - type 'help' for more information
412(qemu) qququiquit
413
414Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
415QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
416
417Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
418QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
419
420
421=== Parsing protocol from file name ===
422
423Testing: -hda foo:bar
424QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
425
426Testing: -drive file=foo:bar
427QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
428
429Testing: -drive file.filename=foo:bar
430QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
431
432Testing: -hda file:TEST_DIR/t.qcow2
433QEMU X.Y.Z monitor - type 'help' for more information
434(qemu) qququiquit
435
436Testing: -drive file=file:TEST_DIR/t.qcow2
437QEMU X.Y.Z monitor - type 'help' for more information
438(qemu) qququiquit
439
440Testing: -drive file.filename=file:TEST_DIR/t.qcow2
441QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
442
443
444=== Snapshot mode ===
445
446wrote 4096/4096 bytes at offset 0
4474 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
448Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
449QEMU X.Y.Z monitor - type 'help' for more information
450(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"
451wrote 4096/4096 bytes at offset 0
4524 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
453(qemu) qququiquit
454
455Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
456QEMU X.Y.Z monitor - type 'help' for more information
457(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"
458wrote 4096/4096 bytes at offset 0
4594 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
460(qemu) qququiquit
461
462Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
463QEMU X.Y.Z monitor - type 'help' for more information
464(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"
465wrote 4096/4096 bytes at offset 0
4664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
467(qemu) qququiquit
468
469Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
470QEMU X.Y.Z monitor - type 'help' for more information
471(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"
472wrote 4096/4096 bytes at offset 0
4734 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
474(qemu) qququiquit
475
476Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
477QEMU X.Y.Z monitor - type 'help' for more information
478(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"
479wrote 4096/4096 bytes at offset 0
4804 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
481(qemu) qququiquit
482
483Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
484QEMU X.Y.Z monitor - type 'help' for more information
485(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"
486wrote 4096/4096 bytes at offset 0
4874 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
488(qemu) qququiquit
489
490Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
491QEMU X.Y.Z monitor - type 'help' for more information
492(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"
493wrote 4096/4096 bytes at offset 0
4944 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
495(qemu) qququiquit
496
497Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
498QEMU X.Y.Z monitor - type 'help' for more information
499(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"
500wrote 4096/4096 bytes at offset 0
5014 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
502(qemu) qququiquit
503
504read 4096/4096 bytes at offset 0
5054 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
506Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
507QEMU X.Y.Z monitor - type 'help' for more information
508(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"
509wrote 4096/4096 bytes at offset 0
5104 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
511(qemu) qququiquit
512
513read 4096/4096 bytes at offset 0
5144 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
515Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
516QEMU X.Y.Z monitor - type 'help' for more information
517(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"
518wrote 4096/4096 bytes at offset 0
5194 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
520(qemu) ccocomcommcommicommitcommit commit dcommit drcommit dricommit drivcommit drivecommit drive0
521(qemu) qququiquit
522
523read 4096/4096 bytes at offset 0
5244 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
525*** done
526