]> git.proxmox.com Git - mirror_qemu.git/blob - tests/qemu-iotests/051.pc.out
Merge remote-tracking branch 'remotes/kraxel/tags/ui-20180409-pull-request' into...
[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=ide
121 QEMU X.Y.Z monitor - type 'help' for more information
122 (qemu) QEMU_PROG: Initialization of device ide-hd failed: Device needs media, but drive is empty
123
124 Testing: -drive if=virtio
125 QEMU X.Y.Z monitor - type 'help' for more information
126 (qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
127
128 Testing: -drive if=none,id=disk -device ide-cd,drive=disk
129 QEMU X.Y.Z monitor - type 'help' for more information
130 (qemu) quit
131
132 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
133 QEMU X.Y.Z monitor - type 'help' for more information
134 (qemu) quit
135
136 Testing: -drive if=none,id=disk -device ide-drive,drive=disk
137 QEMU X.Y.Z monitor - type 'help' for more information
138 (qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
139
140 Testing: -drive if=none,id=disk -device ide-hd,drive=disk
141 QEMU X.Y.Z monitor - type 'help' for more information
142 (qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
143
144 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
145 QEMU X.Y.Z monitor - type 'help' for more information
146 (qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
147
148 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
149 QEMU X.Y.Z monitor - type 'help' for more information
150 (qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
151
152
153 === Read-only ===
154
155 Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
156 QEMU X.Y.Z monitor - type 'help' for more information
157 (qemu) quit
158
159 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
160 QEMU X.Y.Z monitor - type 'help' for more information
161 (qemu) quit
162
163 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
164 QEMU X.Y.Z monitor - type 'help' for more information
165 (qemu) QEMU_PROG: Initialization of device ide-hd failed: Block node is read-only
166
167 Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
168 QEMU X.Y.Z monitor - type 'help' for more information
169 (qemu) quit
170
171 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
172 QEMU X.Y.Z monitor - type 'help' for more information
173 (qemu) quit
174
175 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
176 QEMU X.Y.Z monitor - type 'help' for more information
177 (qemu) quit
178
179 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
180 QEMU X.Y.Z monitor - type 'help' for more information
181 (qemu) QEMU_PROG: -device ide-drive,drive=disk: Block node is read-only
182
183 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
184 QEMU X.Y.Z monitor - type 'help' for more information
185 (qemu) QEMU_PROG: -device ide-hd,drive=disk: Block node is read-only
186
187 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
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 lsi53c895a -device scsi-hd,drive=disk
192 QEMU X.Y.Z monitor - type 'help' for more information
193 (qemu) quit
194
195
196 === Cache modes ===
197
198 Testing: -drive driver=null-co,cache=none
199 QEMU X.Y.Z monitor - type 'help' for more information
200 (qemu) quit
201
202 Testing: -drive driver=null-co,cache=directsync
203 QEMU X.Y.Z monitor - type 'help' for more information
204 (qemu) quit
205
206 Testing: -drive driver=null-co,cache=writeback
207 QEMU X.Y.Z monitor - type 'help' for more information
208 (qemu) quit
209
210 Testing: -drive driver=null-co,cache=writethrough
211 QEMU X.Y.Z monitor - type 'help' for more information
212 (qemu) quit
213
214 Testing: -drive driver=null-co,cache=unsafe
215 QEMU X.Y.Z monitor - type 'help' for more information
216 (qemu) quit
217
218 Testing: -drive driver=null-co,cache=invalid_value
219 QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
220
221 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
222 QEMU X.Y.Z monitor - type 'help' for more information
223 (qemu) info block
224 drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
225 Removable device: not locked, tray closed
226 Cache mode: writeback
227 Backing file: TEST_DIR/t.qcow2.base (chain depth: 1)
228 (qemu) info block file
229
230 file: TEST_DIR/t.qcow2 (file)
231 Cache mode: writeback
232 (qemu) info block backing
233 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
234 Cache mode: writeback, ignore flushes
235 (qemu) info block backing-file
236
237 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
238 Cache mode: writeback, ignore flushes
239 (qemu) quit
240
241 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
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: writethrough
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=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
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: writeback, ignore flushes
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, ignore flushes
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=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
282 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
283
284
285 === Specifying the protocol layer ===
286
287 Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
288 QEMU X.Y.Z monitor - type 'help' for more information
289 (qemu) quit
290
291
292 === Leaving out required options ===
293
294 Testing: -drive driver=file
295 QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
296
297 Testing: -drive driver=file,filename=
298 QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
299
300 Testing: -drive driver=nbd
301 QEMU_PROG: -drive driver=nbd: NBD server address missing
302
303 Testing: -drive driver=raw
304 QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
305
306 Testing: -drive file.driver=file
307 QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
308
309 Testing: -drive file.driver=nbd
310 QEMU_PROG: -drive file.driver=nbd: NBD server address missing
311
312 Testing: -drive file.driver=raw
313 QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
314
315 Testing: -drive foo=bar
316 QEMU_PROG: -drive foo=bar: Must specify either driver or file
317
318
319 === Specifying both an option and its legacy alias ===
320
321 Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
322 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
323
324 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
325 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
326
327 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
328 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
329
330 Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
331 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
332
333 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
334 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
335
336 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
337 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
338
339 Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
340 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
341
342 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
343 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
344
345 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
346 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
347
348 Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
349 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
350
351 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
352 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
353
354 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
355 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
356
357 Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
358 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
359
360 Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
361 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
362
363
364 === Catching negative/large throttling values ===
365
366 Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
367 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
368
369 Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
370 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
371
372 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
373 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
374
375 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
376 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
377
378 Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
379 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
380
381 Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
382 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
383
384 Testing: -drive file=TEST_DIR/t.qcow2,bps=0
385 QEMU X.Y.Z monitor - type 'help' for more information
386 (qemu) quit
387
388 Testing: -drive file=TEST_DIR/t.qcow2,bps=1
389 QEMU X.Y.Z monitor - type 'help' for more information
390 (qemu) quit
391
392 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
393 QEMU X.Y.Z monitor - type 'help' for more information
394 (qemu) quit
395
396 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
397 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
398
399 Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
400 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
401
402
403 === Parsing protocol from file name ===
404
405 Testing: -hda foo:bar
406 QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
407
408 Testing: -drive file=foo:bar
409 QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
410
411 Testing: -drive file.filename=foo:bar
412 QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
413
414 Testing: -hda file:TEST_DIR/t.qcow2
415 QEMU X.Y.Z monitor - type 'help' for more information
416 (qemu) quit
417
418 Testing: -drive file=file:TEST_DIR/t.qcow2
419 QEMU X.Y.Z monitor - type 'help' for more information
420 (qemu) quit
421
422 Testing: -drive file.filename=file:TEST_DIR/t.qcow2
423 QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
424
425
426 === Snapshot mode ===
427
428 wrote 4096/4096 bytes at offset 0
429 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
430 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
431 QEMU X.Y.Z monitor - type 'help' for more information
432 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
433 wrote 4096/4096 bytes at offset 0
434 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
435 (qemu) quit
436
437 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
438 QEMU X.Y.Z monitor - type 'help' for more information
439 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
440 wrote 4096/4096 bytes at offset 0
441 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
442 (qemu) quit
443
444 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
445 QEMU X.Y.Z monitor - type 'help' for more information
446 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
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 (qemu) quit
450
451 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
452 QEMU X.Y.Z monitor - type 'help' for more information
453 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
454 wrote 4096/4096 bytes at offset 0
455 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
456 (qemu) quit
457
458 Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
459 QEMU X.Y.Z monitor - type 'help' for more information
460 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
461 wrote 4096/4096 bytes at offset 0
462 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
463 (qemu) quit
464
465 Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
466 QEMU X.Y.Z monitor - type 'help' for more information
467 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
468 wrote 4096/4096 bytes at offset 0
469 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
470 (qemu) quit
471
472 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
473 QEMU X.Y.Z monitor - type 'help' for more information
474 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
475 wrote 4096/4096 bytes at offset 0
476 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
477 (qemu) quit
478
479 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
480 QEMU X.Y.Z monitor - type 'help' for more information
481 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
482 wrote 4096/4096 bytes at offset 0
483 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
484 (qemu) quit
485
486 read 4096/4096 bytes at offset 0
487 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
488 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,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 read 4096/4096 bytes at offset 0
496 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
497 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
498 QEMU X.Y.Z monitor - type 'help' for more information
499 (qemu) qemu-io drive0 "write -P 0x33 0 4k"
500 wrote 4096/4096 bytes at offset 0
501 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
502 (qemu) commit drive0
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 *** done