xref: /qemu/tests/qemu-iotests/051.pc.out (revision 9967e4fe)
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=
8QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
9
10Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on
11QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
12
13Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234
14QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
15
16Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo
17QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo: Block format 'qcow2' used by device 'ide0-hd0' doesn't 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 -nodefaults
60QEMU X.Y.Z monitor - type 'help' for more information
61(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
62ide0-hd0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
63    Cache mode:       writeback
64    Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
65(qemu) qququiquit
66
67Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
68QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
69
70Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
71QEMU_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
72
73Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
74QEMU_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
75
76
77=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
78
79Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
80QEMU X.Y.Z monitor - type 'help' for more information
81(qemu) qququiquit
82
83Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
84QEMU X.Y.Z monitor - type 'help' for more information
85(qemu) qququiquit
86
87Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
88QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
89
90Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
91QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
92
93Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
94QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'
95
96
97=== With version 2 images enabling lazy refcounts must fail ===
98
99Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
100Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
101QEMU_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
102
103Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
104QEMU X.Y.Z monitor - type 'help' for more information
105(qemu) qququiquit
106
107
108=== No medium ===
109
110Testing: -drive if=floppy
111QEMU X.Y.Z monitor - type 'help' for more information
112(qemu) qququiquit
113
114Testing: -drive if=ide,media=cdrom
115QEMU X.Y.Z monitor - type 'help' for more information
116(qemu) qququiquit
117
118Testing: -drive if=scsi,media=cdrom
119QEMU X.Y.Z monitor - type 'help' for more information
120(qemu) qququiquit
121
122Testing: -drive if=ide
123QEMU X.Y.Z monitor - type 'help' for more information
124(qemu) QEMU_PROG: Device needs media, but drive is empty
125QEMU_PROG: Initialization of device ide-hd failed: Device initialization failed.
126
127Testing: -drive if=virtio
128QEMU X.Y.Z monitor - type 'help' for more information
129(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
130
131Testing: -drive if=scsi
132QEMU X.Y.Z monitor - type 'help' for more information
133(qemu) QEMU_PROG: Initialization of device lsi53c895a failed: Device needs media, but drive is empty
134
135Testing: -drive if=none,id=disk -device ide-cd,drive=disk
136QEMU X.Y.Z monitor - type 'help' for more information
137(qemu) qququiquit
138
139Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
140QEMU X.Y.Z monitor - type 'help' for more information
141(qemu) qququiquit
142
143Testing: -drive if=none,id=disk -device ide-drive,drive=disk
144QEMU X.Y.Z monitor - type 'help' for more information
145(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
146QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
147
148Testing: -drive if=none,id=disk -device ide-hd,drive=disk
149QEMU X.Y.Z monitor - type 'help' for more information
150(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
151QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
152
153Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
154QEMU X.Y.Z monitor - type 'help' for more information
155(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
156
157Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
158QEMU X.Y.Z monitor - type 'help' for more information
159(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
160
161
162=== Read-only ===
163
164Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
165QEMU X.Y.Z monitor - type 'help' for more information
166(qemu) qququiquit
167
168Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
169QEMU X.Y.Z monitor - type 'help' for more information
170(qemu) qququiquit
171
172Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
173QEMU X.Y.Z monitor - type 'help' for more information
174(qemu) qququiquit
175
176Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
177QEMU X.Y.Z monitor - type 'help' for more information
178(qemu) QEMU_PROG: Can't use a read-only drive
179QEMU_PROG: Initialization of device ide-hd failed: Device initialization failed.
180
181Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
182QEMU X.Y.Z monitor - type 'help' for more information
183(qemu) qququiquit
184
185Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
186QEMU X.Y.Z monitor - type 'help' for more information
187(qemu) qququiquit
188
189Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
190QEMU X.Y.Z monitor - type 'help' for more information
191(qemu) qququiquit
192
193Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
194QEMU X.Y.Z monitor - type 'help' for more information
195(qemu) qququiquit
196
197Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
198QEMU X.Y.Z monitor - type 'help' for more information
199(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
200QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
201
202Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
203QEMU X.Y.Z monitor - type 'help' for more information
204(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
205QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
206
207Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
208QEMU X.Y.Z monitor - type 'help' for more information
209(qemu) qququiquit
210
211Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
212QEMU X.Y.Z monitor - type 'help' for more information
213(qemu) qququiquit
214
215
216=== Cache modes ===
217
218Testing: -drive driver=null-co,cache=none
219QEMU X.Y.Z monitor - type 'help' for more information
220(qemu) qququiquit
221
222Testing: -drive driver=null-co,cache=directsync
223QEMU X.Y.Z monitor - type 'help' for more information
224(qemu) qququiquit
225
226Testing: -drive driver=null-co,cache=writeback
227QEMU X.Y.Z monitor - type 'help' for more information
228(qemu) qququiquit
229
230Testing: -drive driver=null-co,cache=writethrough
231QEMU X.Y.Z monitor - type 'help' for more information
232(qemu) qququiquit
233
234Testing: -drive driver=null-co,cache=unsafe
235QEMU X.Y.Z monitor - type 'help' for more information
236(qemu) qququiquit
237
238Testing: -drive driver=null-co,cache=invalid_value
239QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
240
241Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.cache.writeback=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file -nodefaults
242QEMU X.Y.Z monitor - type 'help' for more information
243(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
244ide0-hd0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
245    Cache mode:       writeback
246    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
247(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block finfo block fiinfo block filinfo block file
248
249file: TEST_DIR/t.qcow2 (file)
250    Cache mode:       writeback
251(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backing
252backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
253    Cache mode:       writeback, ignore flushes
254(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
255
256backing-file: TEST_DIR/t.qcow2.base (file, read-only)
257    Cache mode:       writeback, ignore flushes
258(qemu) qququiquit
259
260Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.cache.writeback=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file -nodefaults
261QEMU X.Y.Z monitor - type 'help' for more information
262(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
263ide0-hd0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
264    Cache mode:       writethrough
265    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
266(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block finfo block fiinfo block filinfo block file
267
268file: TEST_DIR/t.qcow2 (file)
269    Cache mode:       writeback
270(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backing
271backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
272    Cache mode:       writeback, ignore flushes
273(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
274
275backing-file: TEST_DIR/t.qcow2.base (file, read-only)
276    Cache mode:       writeback, ignore flushes
277(qemu) qququiquit
278
279Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.cache.writeback=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file -nodefaults
280QEMU X.Y.Z monitor - type 'help' for more information
281(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
282ide0-hd0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
283    Cache mode:       writeback, ignore flushes
284    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
285(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block finfo block fiinfo block filinfo block file
286
287file: TEST_DIR/t.qcow2 (file)
288    Cache mode:       writeback, ignore flushes
289(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo blockinfo block info block binfo block bainfo block bacinfo block backinfo block backiinfo block backininfo block backing
290backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
291    Cache mode:       writeback, ignore flushes
292(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
293
294backing-file: TEST_DIR/t.qcow2.base (file, read-only)
295    Cache mode:       writeback, ignore flushes
296(qemu) qququiquit
297
298Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.cache.writeback=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file -nodefaults
299QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.cache.writeback=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file: invalid cache option
300
301
302=== Specifying the protocol layer ===
303
304Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
305QEMU X.Y.Z monitor - type 'help' for more information
306(qemu) qququiquit
307
308
309=== Leaving out required options ===
310
311Testing: -drive driver=file
312QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
313
314Testing: -drive driver=nbd
315QEMU_PROG: -drive driver=nbd: one of path and host must be specified.
316
317Testing: -drive driver=raw
318QEMU_PROG: -drive driver=raw: Can't use 'raw' as a block driver for the protocol level
319
320Testing: -drive file.driver=file
321QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
322
323Testing: -drive file.driver=nbd
324QEMU_PROG: -drive file.driver=nbd: one of path and host must be specified.
325
326Testing: -drive file.driver=raw
327QEMU_PROG: -drive file.driver=raw: Can't use 'raw' as a block driver for the protocol level
328
329Testing: -drive foo=bar
330QEMU_PROG: -drive foo=bar: Must specify either driver or file
331
332
333=== Specifying both an option and its legacy alias ===
334
335Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
336QEMU_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
337
338Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
339QEMU_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
340
341Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
342QEMU_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
343
344Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
345QEMU_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
346
347Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
348QEMU_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
349
350Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
351QEMU_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
352
353Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
354QEMU_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
355
356Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
357QEMU_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
358
359Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
360QEMU_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
361
362Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
363QEMU_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
364
365Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
366QEMU_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
367
368Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
369QEMU_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
370
371Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
372QEMU_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
373
374Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
375QEMU_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
376
377
378=== Parsing protocol from file name ===
379
380Testing: -hda foo:bar
381QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
382
383Testing: -drive file=foo:bar
384QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
385
386Testing: -drive file.filename=foo:bar
387QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
388
389Testing: -hda file:TEST_DIR/t.qcow2
390QEMU X.Y.Z monitor - type 'help' for more information
391(qemu) qququiquit
392
393Testing: -drive file=file:TEST_DIR/t.qcow2
394QEMU X.Y.Z monitor - type 'help' for more information
395(qemu) qququiquit
396
397Testing: -drive file.filename=file:TEST_DIR/t.qcow2
398QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
399
400
401=== Snapshot mode ===
402
403wrote 4096/4096 bytes at offset 0
4044 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
405Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
406QEMU X.Y.Z monitor - type 'help' for more information
407(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"
408wrote 4096/4096 bytes at offset 0
4094 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
410(qemu) qququiquit
411
412Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
413QEMU X.Y.Z monitor - type 'help' for more information
414(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"
415wrote 4096/4096 bytes at offset 0
4164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
417(qemu) qququiquit
418
419Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
420QEMU X.Y.Z monitor - type 'help' for more information
421(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"
422wrote 4096/4096 bytes at offset 0
4234 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
424(qemu) qququiquit
425
426Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
427QEMU X.Y.Z monitor - type 'help' for more information
428(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"
429wrote 4096/4096 bytes at offset 0
4304 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
431(qemu) qququiquit
432
433Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
434QEMU X.Y.Z monitor - type 'help' for more information
435(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"
436wrote 4096/4096 bytes at offset 0
4374 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
438(qemu) qququiquit
439
440Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
441QEMU X.Y.Z monitor - type 'help' for more information
442(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"
443wrote 4096/4096 bytes at offset 0
4444 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
445(qemu) qququiquit
446
447Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
448QEMU X.Y.Z monitor - type 'help' for more information
449(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"
450wrote 4096/4096 bytes at offset 0
4514 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
452(qemu) qququiquit
453
454Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
455QEMU X.Y.Z monitor - type 'help' for more information
456(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"
457wrote 4096/4096 bytes at offset 0
4584 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
459(qemu) qququiquit
460
461read 4096/4096 bytes at offset 0
4624 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
463Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
464QEMU X.Y.Z monitor - type 'help' for more information
465(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"
466wrote 4096/4096 bytes at offset 0
4674 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
468(qemu) qququiquit
469
470read 4096/4096 bytes at offset 0
4714 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
472Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
473QEMU X.Y.Z monitor - type 'help' for more information
474(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"
475wrote 4096/4096 bytes at offset 0
4764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
477(qemu) ccocomcommcommicommitcommit commit dcommit drcommit dricommit drivcommit drivecommit drive0
478(qemu) qququiquit
479
480read 4096/4096 bytes at offset 0
4814 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
482*** done
483