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