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