linux-headers: update
[qemu.git] / tests / qemu-iotests / 051.pc.out
blob76d7205460f119e9169cd1107395db46711af82c
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
5 === Unknown option ===
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'
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'
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'
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'
20 === Unknown protocol option ===
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'
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'
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'
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'
35 === Invalid format ===
37 Testing: -drive file=TEST_DIR/t.qcow2,format=foo
38 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo'
40 Testing: -drive file=TEST_DIR/t.qcow2,driver=foo
41 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo'
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'
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'
50 === Device without drive ===
52 Testing: -device virtio-scsi-pci -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
57 === Overriding backing file ===
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
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
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
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
78 === Enable and disable lazy refcounting on the command line, plus some invalid values ===
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
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
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'
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'
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'
98 === With version 2 images enabling lazy refcounts must fail ===
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
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
109 === No medium ===
111 Testing: -drive if=floppy
112 QEMU X.Y.Z monitor - type 'help' for more information
113 (qemu) quit
115 Testing: -drive if=ide,media=cdrom
116 QEMU X.Y.Z monitor - type 'help' for more information
117 (qemu) quit
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
124 Testing: -drive if=ide
125 QEMU X.Y.Z monitor - type 'help' for more information
126 (qemu) QEMU_PROG: Device needs media, but drive is empty
127 QEMU_PROG: Initialization of device ide-hd failed: Device initialization failed.
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
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
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
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
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 QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
151 Testing: -drive if=none,id=disk -device ide-hd,drive=disk
152 QEMU X.Y.Z monitor - type 'help' for more information
153 (qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
154 QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
156 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
157 QEMU X.Y.Z monitor - type 'help' for more information
158 (qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
160 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
161 QEMU X.Y.Z monitor - type 'help' for more information
162 (qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
165 === Read-only ===
167 Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
168 QEMU X.Y.Z monitor - type 'help' for more information
169 (qemu) quit
171 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
172 QEMU X.Y.Z monitor - type 'help' for more information
173 (qemu) quit
175 Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
176 QEMU X.Y.Z monitor - type 'help' for more information
177 (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
178 quit
180 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
181 QEMU X.Y.Z monitor - type 'help' for more information
182 (qemu) QEMU_PROG: Block node is read-only
183 QEMU_PROG: Initialization of device ide-hd failed: Device initialization failed.
185 Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
186 QEMU X.Y.Z monitor - type 'help' for more information
187 (qemu) QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on: warning: bus=0,unit=0 is deprecated with this machine type
188 quit
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
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
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
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 QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
207 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
208 QEMU X.Y.Z monitor - type 'help' for more information
209 (qemu) QEMU_PROG: -device ide-hd,drive=disk: Block node is read-only
210 QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
212 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
213 QEMU X.Y.Z monitor - type 'help' for more information
214 (qemu) quit
216 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
217 QEMU X.Y.Z monitor - type 'help' for more information
218 (qemu) quit
221 === Cache modes ===
223 Testing: -drive driver=null-co,cache=none
224 QEMU X.Y.Z monitor - type 'help' for more information
225 (qemu) quit
227 Testing: -drive driver=null-co,cache=directsync
228 QEMU X.Y.Z monitor - type 'help' for more information
229 (qemu) quit
231 Testing: -drive driver=null-co,cache=writeback
232 QEMU X.Y.Z monitor - type 'help' for more information
233 (qemu) quit
235 Testing: -drive driver=null-co,cache=writethrough
236 QEMU X.Y.Z monitor - type 'help' for more information
237 (qemu) quit
239 Testing: -drive driver=null-co,cache=unsafe
240 QEMU X.Y.Z monitor - type 'help' for more information
241 (qemu) quit
243 Testing: -drive driver=null-co,cache=invalid_value
244 QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
246 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
247 QEMU X.Y.Z monitor - type 'help' for more information
248 (qemu) info block
249 drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
250     Removable device: not locked, tray closed
251     Cache mode:       writeback
252     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
253 (qemu) info block file
255 file: TEST_DIR/t.qcow2 (file)
256     Cache mode:       writeback
257 (qemu) info block backing
258 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
259     Cache mode:       writeback, ignore flushes
260 (qemu) info block backing-file
262 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
263     Cache mode:       writeback, ignore flushes
264 (qemu) quit
266 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
267 QEMU X.Y.Z monitor - type 'help' for more information
268 (qemu) info block
269 drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
270     Removable device: not locked, tray closed
271     Cache mode:       writethrough
272     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
273 (qemu) info block file
275 file: TEST_DIR/t.qcow2 (file)
276     Cache mode:       writeback
277 (qemu) info block backing
278 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
279     Cache mode:       writeback, ignore flushes
280 (qemu) info block backing-file
282 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
283     Cache mode:       writeback, ignore flushes
284 (qemu) quit
286 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
287 QEMU X.Y.Z monitor - type 'help' for more information
288 (qemu) info block
289 drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
290     Removable device: not locked, tray closed
291     Cache mode:       writeback, ignore flushes
292     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
293 (qemu) info block file
295 file: TEST_DIR/t.qcow2 (file)
296     Cache mode:       writeback, ignore flushes
297 (qemu) info block backing
298 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
299     Cache mode:       writeback, ignore flushes
300 (qemu) info block backing-file
302 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
303     Cache mode:       writeback, ignore flushes
304 (qemu) quit
306 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
307 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
310 === Specifying the protocol layer ===
312 Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
313 QEMU X.Y.Z monitor - type 'help' for more information
314 (qemu) quit
317 === Leaving out required options ===
319 Testing: -drive driver=file
320 QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
322 Testing: -drive driver=file,filename=
323 QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
325 Testing: -drive driver=nbd
326 QEMU_PROG: -drive driver=nbd: NBD server address missing
328 Testing: -drive driver=raw
329 QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
331 Testing: -drive file.driver=file
332 QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
334 Testing: -drive file.driver=nbd
335 QEMU_PROG: -drive file.driver=nbd: NBD server address missing
337 Testing: -drive file.driver=raw
338 QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
340 Testing: -drive foo=bar
341 QEMU_PROG: -drive foo=bar: Must specify either driver or file
344 === Specifying both an option and its legacy alias ===
346 Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
347 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
349 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
350 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
352 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
353 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
355 Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
356 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
358 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
359 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
361 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
362 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
364 Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
365 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
367 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
368 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
370 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
371 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
373 Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
374 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
376 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
377 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
379 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
380 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
382 Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
383 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
385 Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
386 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
389 === Catching negative/large throttling values ===
391 Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
392 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
394 Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
395 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
397 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
398 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
400 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
401 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
403 Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
404 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
406 Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
407 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
409 Testing: -drive file=TEST_DIR/t.qcow2,bps=0
410 QEMU X.Y.Z monitor - type 'help' for more information
411 (qemu) quit
413 Testing: -drive file=TEST_DIR/t.qcow2,bps=1
414 QEMU X.Y.Z monitor - type 'help' for more information
415 (qemu) quit
417 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
418 QEMU X.Y.Z monitor - type 'help' for more information
419 (qemu) quit
421 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
422 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
424 Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
425 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
428 === Parsing protocol from file name ===
430 Testing: -hda foo:bar
431 QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
433 Testing: -drive file=foo:bar
434 QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
436 Testing: -drive file.filename=foo:bar
437 QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
439 Testing: -hda file:TEST_DIR/t.qcow2
440 QEMU X.Y.Z monitor - type 'help' for more information
441 (qemu) quit
443 Testing: -drive file=file:TEST_DIR/t.qcow2
444 QEMU X.Y.Z monitor - type 'help' for more information
445 (qemu) quit
447 Testing: -drive file.filename=file:TEST_DIR/t.qcow2
448 QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
451 === Snapshot mode ===
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 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
456 QEMU X.Y.Z monitor - type 'help' for more information
457 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
458 wrote 4096/4096 bytes at offset 0
459 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
460 (qemu) quit
462 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
463 QEMU X.Y.Z monitor - type 'help' for more information
464 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
465 wrote 4096/4096 bytes at offset 0
466 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
467 (qemu) quit
469 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
470 QEMU X.Y.Z monitor - type 'help' for more information
471 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
472 wrote 4096/4096 bytes at offset 0
473 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
474 (qemu) quit
476 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
477 QEMU X.Y.Z monitor - type 'help' for more information
478 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
479 wrote 4096/4096 bytes at offset 0
480 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
481 (qemu) quit
483 Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
484 QEMU X.Y.Z monitor - type 'help' for more information
485 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
486 wrote 4096/4096 bytes at offset 0
487 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
488 (qemu) quit
490 Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
491 QEMU X.Y.Z monitor - type 'help' for more information
492 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
493 wrote 4096/4096 bytes at offset 0
494 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
495 (qemu) quit
497 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
498 QEMU X.Y.Z monitor - type 'help' for more information
499 (qemu) qemu-io drive0 "write -P 0x22 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) quit
504 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
505 QEMU X.Y.Z monitor - type 'help' for more information
506 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
507 wrote 4096/4096 bytes at offset 0
508 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
509 (qemu) quit
511 read 4096/4096 bytes at offset 0
512 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
513 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
514 QEMU X.Y.Z monitor - type 'help' for more information
515 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
516 wrote 4096/4096 bytes at offset 0
517 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
518 (qemu) quit
520 read 4096/4096 bytes at offset 0
521 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
522 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
523 QEMU X.Y.Z monitor - type 'help' for more information
524 (qemu) qemu-io drive0 "write -P 0x33 0 4k"
525 wrote 4096/4096 bytes at offset 0
526 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
527 (qemu) commit drive0
528 (qemu) quit
530 read 4096/4096 bytes at offset 0
531 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
532 *** done