]> git.proxmox.com Git - mirror_qemu.git/blob - tests/qemu-iotests/051.pc.out
Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
[mirror_qemu.git] / tests / qemu-iotests / 051.pc.out
1 QA output created by 051
2 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
3 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
4
5 === Unknown option ===
6
7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0
8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
9
10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0
11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
12
13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0
14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
15
16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0
17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
18
19
20 === Unknown protocol option ===
21
22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=
23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt'
24
25 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on
26 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt'
27
28 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234
29 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt'
30
31 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo
32 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo: Block protocol 'file' doesn't support the option 'unknown_opt'
33
34
35 === Invalid format ===
36
37 Testing: -drive file=TEST_DIR/t.qcow2,format=foo
38 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo'
39
40 Testing: -drive file=TEST_DIR/t.qcow2,driver=foo
41 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo'
42
43 Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2
44 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format'
45
46 Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
47 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'
48
49
50 === Node names ===
51
52 Testing: -drive file=TEST_DIR/t.qcow2,node-name=x123456789012345678901234567890
53 QEMU X.Y.Z monitor - type 'help' for more information
54 (qemu) quit
55
56 Testing: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901
57 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901: Node name too long
58
59 Testing: -drive file=TEST_DIR/t.qcow2,node-name=All-Types.of_all0wed_chars
60 QEMU X.Y.Z monitor - type 'help' for more information
61 (qemu) quit
62
63 Testing: -drive file=TEST_DIR/t.qcow2,node-name=123foo
64 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=123foo: Invalid node name
65
66 Testing: -drive file=TEST_DIR/t.qcow2,node-name=_foo
67 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=_foo: Invalid node name
68
69 Testing: -drive file=TEST_DIR/t.qcow2,node-name=foo#12
70 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=foo#12: Invalid node name
71
72
73 === Device without drive ===
74
75 Testing: -device VIRTIO_SCSI -device scsi-hd
76 QEMU X.Y.Z monitor - type 'help' for more information
77 (qemu) QEMU_PROG: -device scsi-hd: drive property not set
78
79
80 === Overriding backing file ===
81
82 Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults
83 QEMU X.Y.Z monitor - type 'help' for more information
84 (qemu) info block
85 drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.orig"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2)
86 Removable device: not locked, tray closed
87 Cache mode: writeback
88 Backing file: TEST_DIR/t.qcow2.orig (chain depth: 1)
89 (qemu) quit
90
91 Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
92 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
93
94 Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
95 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
96
97 Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
98 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
99
100
101 === Enable and disable lazy refcounting on the command line, plus some invalid values ===
102
103 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
104 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
105 QEMU X.Y.Z monitor - type 'help' for more information
106 (qemu) quit
107
108 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
109 QEMU X.Y.Z monitor - type 'help' for more information
110 (qemu) quit
111
112 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
113 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
114
115 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
116 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
117
118 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
119 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'
120
121
122 === With version 2 images enabling lazy refcounts must fail ===
123
124 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
125 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
126 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level
127
128 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
129 QEMU X.Y.Z monitor - type 'help' for more information
130 (qemu) quit
131
132
133 === No medium ===
134
135 Testing: -drive if=floppy
136 QEMU X.Y.Z monitor - type 'help' for more information
137 (qemu) quit
138
139 Testing: -drive if=ide,media=cdrom
140 QEMU X.Y.Z monitor - type 'help' for more information
141 (qemu) quit
142
143 Testing: -drive if=ide
144 QEMU X.Y.Z monitor - type 'help' for more information
145 (qemu) QEMU_PROG: Initialization of device ide-hd failed: Device needs media, but drive is empty
146
147 Testing: -drive if=virtio
148 QEMU X.Y.Z monitor - type 'help' for more information
149 (qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
150
151 Testing: -drive if=none,id=disk -device ide-cd,drive=disk
152 QEMU X.Y.Z monitor - type 'help' for more information
153 (qemu) quit
154
155 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
156 QEMU X.Y.Z monitor - type 'help' for more information
157 (qemu) quit
158
159 Testing: -drive if=none,id=disk -device ide-drive,drive=disk
160 QEMU X.Y.Z monitor - type 'help' for more information
161 (qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
162
163 Testing: -drive if=none,id=disk -device ide-hd,drive=disk
164 QEMU X.Y.Z monitor - type 'help' for more information
165 (qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
166
167 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
168 QEMU X.Y.Z monitor - type 'help' for more information
169 (qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
170
171 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
172 QEMU X.Y.Z monitor - type 'help' for more information
173 (qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
174
175
176 === Read-only ===
177
178 Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
179 QEMU X.Y.Z monitor - type 'help' for more information
180 (qemu) quit
181
182 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
183 QEMU X.Y.Z monitor - type 'help' for more information
184 (qemu) quit
185
186 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
187 QEMU X.Y.Z monitor - type 'help' for more information
188 (qemu) QEMU_PROG: Initialization of device ide-hd failed: Block node is read-only
189
190 Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
191 QEMU X.Y.Z monitor - type 'help' for more information
192 (qemu) quit
193
194 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
195 QEMU X.Y.Z monitor - type 'help' for more information
196 (qemu) quit
197
198 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
199 QEMU X.Y.Z monitor - type 'help' for more information
200 (qemu) quit
201
202 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
203 QEMU X.Y.Z monitor - type 'help' for more information
204 (qemu) QEMU_PROG: -device ide-drive,drive=disk: Block node is read-only
205
206 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
207 QEMU X.Y.Z monitor - type 'help' for more information
208 (qemu) QEMU_PROG: -device ide-hd,drive=disk: Block node is read-only
209
210 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
211 QEMU X.Y.Z monitor - type 'help' for more information
212 (qemu) quit
213
214 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
215 QEMU X.Y.Z monitor - type 'help' for more information
216 (qemu) quit
217
218
219 === Cache modes ===
220
221 Testing: -drive driver=null-co,cache=none
222 QEMU X.Y.Z monitor - type 'help' for more information
223 (qemu) quit
224
225 Testing: -drive driver=null-co,cache=directsync
226 QEMU X.Y.Z monitor - type 'help' for more information
227 (qemu) quit
228
229 Testing: -drive driver=null-co,cache=writeback
230 QEMU X.Y.Z monitor - type 'help' for more information
231 (qemu) quit
232
233 Testing: -drive driver=null-co,cache=writethrough
234 QEMU X.Y.Z monitor - type 'help' for more information
235 (qemu) quit
236
237 Testing: -drive driver=null-co,cache=unsafe
238 QEMU X.Y.Z monitor - type 'help' for more information
239 (qemu) quit
240
241 Testing: -drive driver=null-co,cache=invalid_value
242 QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
243
244 Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
245 QEMU X.Y.Z monitor - type 'help' for more information
246 (qemu) info block
247 drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2)
248 Removable device: not locked, tray closed
249 Cache mode: writeback
250 Backing file: TEST_DIR/t.qcow2.base (chain depth: 1)
251 (qemu) info block file
252
253 file: TEST_DIR/t.qcow2 (file)
254 Cache mode: writeback
255 (qemu) info block backing
256 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
257 Cache mode: writeback, ignore flushes
258 (qemu) info block backing-file
259
260 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
261 Cache mode: writeback, ignore flushes
262 (qemu) quit
263
264 Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
265 QEMU X.Y.Z monitor - type 'help' for more information
266 (qemu) info block
267 drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2)
268 Removable device: not locked, tray closed
269 Cache mode: writethrough
270 Backing file: TEST_DIR/t.qcow2.base (chain depth: 1)
271 (qemu) info block file
272
273 file: TEST_DIR/t.qcow2 (file)
274 Cache mode: writeback
275 (qemu) info block backing
276 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
277 Cache mode: writeback, ignore flushes
278 (qemu) info block backing-file
279
280 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
281 Cache mode: writeback, ignore flushes
282 (qemu) quit
283
284 Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
285 QEMU X.Y.Z monitor - type 'help' for more information
286 (qemu) info block
287 drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2)
288 Removable device: not locked, tray closed
289 Cache mode: writeback, ignore flushes
290 Backing file: TEST_DIR/t.qcow2.base (chain depth: 1)
291 (qemu) info block file
292
293 file: TEST_DIR/t.qcow2 (file)
294 Cache mode: writeback, ignore flushes
295 (qemu) info block backing
296 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
297 Cache mode: writeback, ignore flushes
298 (qemu) info block backing-file
299
300 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
301 Cache mode: writeback, ignore flushes
302 (qemu) quit
303
304 Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
305 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0: invalid cache option
306
307
308 === Specifying the protocol layer ===
309
310 Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
311 QEMU X.Y.Z monitor - type 'help' for more information
312 (qemu) quit
313
314
315 === Leaving out required options ===
316
317 Testing: -drive driver=file
318 QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
319
320 Testing: -drive driver=file,filename=
321 QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
322
323 Testing: -drive driver=nbd
324 QEMU_PROG: -drive driver=nbd: NBD server address missing
325
326 Testing: -drive driver=raw
327 QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
328
329 Testing: -drive file.driver=file
330 QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
331
332 Testing: -drive file.driver=nbd
333 QEMU_PROG: -drive file.driver=nbd: NBD server address missing
334
335 Testing: -drive file.driver=raw
336 QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
337
338 Testing: -drive foo=bar
339 QEMU_PROG: -drive foo=bar: Must specify either driver or file
340
341
342 === Specifying both an option and its legacy alias ===
343
344 Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
345 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678: 'throttling.iops-total' and its alias 'iops' can't be used at the same time
346
347 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
348 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678: 'throttling.iops-read' and its alias 'iops_rd' can't be used at the same time
349
350 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
351 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678: 'throttling.iops-write' and its alias 'iops_wr' can't be used at the same time
352
353 Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
354 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678: 'throttling.bps-total' and its alias 'bps' can't be used at the same time
355
356 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
357 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678: 'throttling.bps-read' and its alias 'bps_rd' can't be used at the same time
358
359 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
360 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678: 'throttling.bps-write' and its alias 'bps_wr' can't be used at the same time
361
362 Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
363 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678: 'throttling.iops-total-max' and its alias 'iops_max' can't be used at the same time
364
365 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
366 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678: 'throttling.iops-read-max' and its alias 'iops_rd_max' can't be used at the same time
367
368 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
369 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678: 'throttling.iops-write-max' and its alias 'iops_wr_max' can't be used at the same time
370
371 Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
372 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678: 'throttling.bps-total-max' and its alias 'bps_max' can't be used at the same time
373
374 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
375 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678: 'throttling.bps-read-max' and its alias 'bps_rd_max' can't be used at the same time
376
377 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
378 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678: 'throttling.bps-write-max' and its alias 'bps_wr_max' can't be used at the same time
379
380 Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
381 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678: 'throttling.iops-size' and its alias 'iops_size' can't be used at the same time
382
383 Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
384 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off: 'read-only' and its alias 'readonly' can't be used at the same time
385
386
387 === Catching negative/large throttling values ===
388
389 Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
390 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
391
392 Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
393 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
394
395 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
396 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
397
398 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
399 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
400
401 Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
402 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
403
404 Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
405 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
406
407 Testing: -drive file=TEST_DIR/t.qcow2,bps=0
408 QEMU X.Y.Z monitor - type 'help' for more information
409 (qemu) quit
410
411 Testing: -drive file=TEST_DIR/t.qcow2,bps=1
412 QEMU X.Y.Z monitor - type 'help' for more information
413 (qemu) quit
414
415 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
416 QEMU X.Y.Z monitor - type 'help' for more information
417 (qemu) quit
418
419 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
420 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
421
422 Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
423 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
424
425
426 === Parsing protocol from file name ===
427
428 Testing: -hda foo:bar
429 QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
430
431 Testing: -drive file=foo:bar
432 QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
433
434 Testing: -drive file.filename=foo:bar
435 QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
436
437 Testing: -hda file:TEST_DIR/t.qcow2
438 QEMU X.Y.Z monitor - type 'help' for more information
439 (qemu) quit
440
441 Testing: -drive file=file:TEST_DIR/t.qcow2
442 QEMU X.Y.Z monitor - type 'help' for more information
443 (qemu) quit
444
445 Testing: -drive file.filename=file:TEST_DIR/t.qcow2
446 QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
447
448
449 === Snapshot mode ===
450
451 wrote 4096/4096 bytes at offset 0
452 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
453 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
454 QEMU X.Y.Z monitor - type 'help' for more information
455 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
456 wrote 4096/4096 bytes at offset 0
457 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
458 (qemu) quit
459
460 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
461 QEMU X.Y.Z monitor - type 'help' for more information
462 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
463 wrote 4096/4096 bytes at offset 0
464 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
465 (qemu) quit
466
467 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
468 QEMU X.Y.Z monitor - type 'help' for more information
469 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
470 wrote 4096/4096 bytes at offset 0
471 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
472 (qemu) quit
473
474 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
475 QEMU X.Y.Z monitor - type 'help' for more information
476 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
477 wrote 4096/4096 bytes at offset 0
478 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
479 (qemu) quit
480
481 Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
482 QEMU X.Y.Z monitor - type 'help' for more information
483 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
484 wrote 4096/4096 bytes at offset 0
485 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
486 (qemu) quit
487
488 Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
489 QEMU X.Y.Z monitor - type 'help' for more information
490 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
491 wrote 4096/4096 bytes at offset 0
492 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
493 (qemu) quit
494
495 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
496 QEMU X.Y.Z monitor - type 'help' for more information
497 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
498 wrote 4096/4096 bytes at offset 0
499 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
500 (qemu) quit
501
502 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
503 QEMU X.Y.Z monitor - type 'help' for more information
504 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
505 wrote 4096/4096 bytes at offset 0
506 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
507 (qemu) quit
508
509 read 4096/4096 bytes at offset 0
510 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
511 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
512 QEMU X.Y.Z monitor - type 'help' for more information
513 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
514 wrote 4096/4096 bytes at offset 0
515 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
516 (qemu) quit
517
518 read 4096/4096 bytes at offset 0
519 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
520 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
521 QEMU X.Y.Z monitor - type 'help' for more information
522 (qemu) qemu-io drive0 "write -P 0x33 0 4k"
523 wrote 4096/4096 bytes at offset 0
524 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
525 (qemu) commit drive0
526 (qemu) quit
527
528 read 4096/4096 bytes at offset 0
529 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
530 Testing: -drive driver=null-co,snapshot=on
531 QEMU_PROG: -drive driver=null-co,snapshot=on: Could not get temporary filename: No such file or directory
532
533 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,read-only=on,if=none,id=drive0
534 QEMU X.Y.Z monitor - type 'help' for more information
535 (qemu) info block
536 drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}}, "driver": "qcow2", "file": {"driver": "file", "filename": SNAPSHOT_PATH}} (qcow2, read-only)
537 Removable device: not locked, tray closed
538 Cache mode: writeback, ignore flushes
539 Backing file: TEST_DIR/t.qcow2 (chain depth: 1)
540 (qemu) quit
541
542 *** done