051.pc.out 23.1 KB
Newer Older
B
Bo Tu 已提交
1 2 3 4 5 6
QA output created by 051
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base

=== Unknown option ===

B
Bo Tu 已提交
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'
B
Bo Tu 已提交
9

B
Bo Tu 已提交
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'
B
Bo Tu 已提交
12

B
Bo Tu 已提交
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'
B
Bo Tu 已提交
15

B
Bo Tu 已提交
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'
B
Bo Tu 已提交
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51


=== Unknown protocol option ===

Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt'

Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt'

Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt'

Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo: Block protocol 'file' doesn't support the option 'unknown_opt'


=== Invalid format ===

Testing: -drive file=TEST_DIR/t.qcow2,format=foo
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo'

Testing: -drive file=TEST_DIR/t.qcow2,driver=foo
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo'

Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format'

Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'


=== Device without drive ===

52
Testing: -device VIRTIO_SCSI -device scsi-hd
B
Bo Tu 已提交
53 54 55 56 57 58
QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -device scsi-hd: drive property not set


=== Overriding backing file ===

B
Bo Tu 已提交
59
Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults
B
Bo Tu 已提交
60
QEMU X.Y.Z monitor - type 'help' for more information
61
(qemu) info block
B
Bo Tu 已提交
62 63
drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
    Removable device: not locked, tray closed
B
Bo Tu 已提交
64 65
    Cache mode:       writeback
    Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
66
(qemu) quit
B
Bo Tu 已提交
67 68 69 70 71 72 73 74 75 76 77 78 79

Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files

Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
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

Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
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


=== Enable and disable lazy refcounting on the command line, plus some invalid values ===

M
Max Reitz 已提交
80
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
B
Bo Tu 已提交
81 82
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
QEMU X.Y.Z monitor - type 'help' for more information
83
(qemu) quit
B
Bo Tu 已提交
84 85 86

Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
QEMU X.Y.Z monitor - type 'help' for more information
87
(qemu) quit
B
Bo Tu 已提交
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106

Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'

Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'

Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'


=== With version 2 images enabling lazy refcounts must fail ===

Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
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

Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
QEMU X.Y.Z monitor - type 'help' for more information
107
(qemu) quit
B
Bo Tu 已提交
108 109 110 111 112 113


=== No medium ===

Testing: -drive if=floppy
QEMU X.Y.Z monitor - type 'help' for more information
114
(qemu) quit
B
Bo Tu 已提交
115 116 117

Testing: -drive if=ide,media=cdrom
QEMU X.Y.Z monitor - type 'help' for more information
118
(qemu) quit
B
Bo Tu 已提交
119 120 121

Testing: -drive if=scsi,media=cdrom
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
B
Bo Tu 已提交
124 125 126

Testing: -drive if=ide
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
B
Bo Tu 已提交
128 129 130

Testing: -drive if=scsi
QEMU X.Y.Z monitor - type 'help' for more information
131 132
(qemu) QEMU_PROG: -drive if=scsi: warning: bus=0,unit=0 is deprecated with this machine type
QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
B
Bo Tu 已提交
133

B
Bo Tu 已提交
134 135 136 137
Testing: -drive if=virtio
QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty

B
Bo Tu 已提交
138 139
Testing: -drive if=none,id=disk -device ide-cd,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
140
(qemu) quit
B
Bo Tu 已提交
141 142 143

Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
144
(qemu) quit
B
Bo Tu 已提交
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166

Testing: -drive if=none,id=disk -device ide-drive,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty

Testing: -drive if=none,id=disk -device ide-hd,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty

Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty

Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty


=== Read-only ===

Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
QEMU X.Y.Z monitor - type 'help' for more information
167
(qemu) quit
B
Bo Tu 已提交
168 169 170

Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
QEMU X.Y.Z monitor - type 'help' for more information
171
(qemu) quit
B
Bo Tu 已提交
172 173 174

Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
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
B
Bo Tu 已提交
177 178 179

Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
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
B
Bo Tu 已提交
181

B
Bo Tu 已提交
182
Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
B
Bo Tu 已提交
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
B
Bo Tu 已提交
186

B
Bo Tu 已提交
187
Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
B
Bo Tu 已提交
188
QEMU X.Y.Z monitor - type 'help' for more information
189
(qemu) quit
B
Bo Tu 已提交
190 191 192

Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
193
(qemu) quit
B
Bo Tu 已提交
194 195 196

Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
197
(qemu) quit
B
Bo Tu 已提交
198 199 200

Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
K
Kevin Wolf 已提交
201
(qemu) QEMU_PROG: -device ide-drive,drive=disk: Block node is read-only
B
Bo Tu 已提交
202 203 204

Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
K
Kevin Wolf 已提交
205
(qemu) QEMU_PROG: -device ide-hd,drive=disk: Block node is read-only
B
Bo Tu 已提交
206 207 208

Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
209
(qemu) quit
B
Bo Tu 已提交
210 211 212

Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
QEMU X.Y.Z monitor - type 'help' for more information
213
(qemu) quit
B
Bo Tu 已提交
214 215 216 217 218 219


=== Cache modes ===

Testing: -drive driver=null-co,cache=none
QEMU X.Y.Z monitor - type 'help' for more information
220
(qemu) quit
B
Bo Tu 已提交
221 222 223

Testing: -drive driver=null-co,cache=directsync
QEMU X.Y.Z monitor - type 'help' for more information
224
(qemu) quit
B
Bo Tu 已提交
225 226 227

Testing: -drive driver=null-co,cache=writeback
QEMU X.Y.Z monitor - type 'help' for more information
228
(qemu) quit
B
Bo Tu 已提交
229 230 231

Testing: -drive driver=null-co,cache=writethrough
QEMU X.Y.Z monitor - type 'help' for more information
232
(qemu) quit
B
Bo Tu 已提交
233 234 235

Testing: -drive driver=null-co,cache=unsafe
QEMU X.Y.Z monitor - type 'help' for more information
236
(qemu) quit
B
Bo Tu 已提交
237 238 239 240

Testing: -drive driver=null-co,cache=invalid_value
QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option

K
Kevin Wolf 已提交
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
B
Bo Tu 已提交
242
QEMU X.Y.Z monitor - type 'help' for more information
243
(qemu) info block
B
Bo Tu 已提交
244 245
drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
    Removable device: not locked, tray closed
B
Bo Tu 已提交
246 247
    Cache mode:       writeback
    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
248
(qemu) info block file
B
Bo Tu 已提交
249 250 251

file: TEST_DIR/t.qcow2 (file)
    Cache mode:       writeback
252
(qemu) info block backing
B
Bo Tu 已提交
253 254
backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
    Cache mode:       writeback, ignore flushes
255
(qemu) info block backing-file
B
Bo Tu 已提交
256 257 258

backing-file: TEST_DIR/t.qcow2.base (file, read-only)
    Cache mode:       writeback, ignore flushes
259
(qemu) quit
B
Bo Tu 已提交
260

K
Kevin Wolf 已提交
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
B
Bo Tu 已提交
262
QEMU X.Y.Z monitor - type 'help' for more information
263
(qemu) info block
B
Bo Tu 已提交
264 265
drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
    Removable device: not locked, tray closed
B
Bo Tu 已提交
266 267
    Cache mode:       writethrough
    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
268
(qemu) info block file
B
Bo Tu 已提交
269 270 271

file: TEST_DIR/t.qcow2 (file)
    Cache mode:       writeback
272
(qemu) info block backing
B
Bo Tu 已提交
273 274
backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
    Cache mode:       writeback, ignore flushes
275
(qemu) info block backing-file
B
Bo Tu 已提交
276 277 278

backing-file: TEST_DIR/t.qcow2.base (file, read-only)
    Cache mode:       writeback, ignore flushes
279
(qemu) quit
B
Bo Tu 已提交
280

K
Kevin Wolf 已提交
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
B
Bo Tu 已提交
282
QEMU X.Y.Z monitor - type 'help' for more information
283
(qemu) info block
B
Bo Tu 已提交
284 285
drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
    Removable device: not locked, tray closed
B
Bo Tu 已提交
286 287
    Cache mode:       writeback, ignore flushes
    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
288
(qemu) info block file
B
Bo Tu 已提交
289 290 291

file: TEST_DIR/t.qcow2 (file)
    Cache mode:       writeback, ignore flushes
292
(qemu) info block backing
B
Bo Tu 已提交
293 294
backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
    Cache mode:       writeback, ignore flushes
295
(qemu) info block backing-file
B
Bo Tu 已提交
296 297 298

backing-file: TEST_DIR/t.qcow2.base (file, read-only)
    Cache mode:       writeback, ignore flushes
299
(qemu) quit
B
Bo Tu 已提交
300

K
Kevin Wolf 已提交
301 302
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
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
B
Bo Tu 已提交
303 304 305 306 307 308


=== Specifying the protocol layer ===

Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
QEMU X.Y.Z monitor - type 'help' for more information
309
(qemu) quit
B
Bo Tu 已提交
310 311 312 313 314 315 316


=== Leaving out required options ===

Testing: -drive driver=file
QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name

317 318 319
Testing: -drive driver=file,filename=
QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name

B
Bo Tu 已提交
320
Testing: -drive driver=nbd
M
Max Reitz 已提交
321
QEMU_PROG: -drive driver=nbd: NBD server address missing
B
Bo Tu 已提交
322 323

Testing: -drive driver=raw
324
QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
B
Bo Tu 已提交
325 326 327 328 329

Testing: -drive file.driver=file
QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name

Testing: -drive file.driver=nbd
M
Max Reitz 已提交
330
QEMU_PROG: -drive file.driver=nbd: NBD server address missing
B
Bo Tu 已提交
331 332

Testing: -drive file.driver=raw
333
QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
B
Bo Tu 已提交
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383

Testing: -drive foo=bar
QEMU_PROG: -drive foo=bar: Must specify either driver or file


=== Specifying both an option and its legacy alias ===

Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
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

Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
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


384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405
=== Catching negative/large throttling values ===

Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]

Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]

Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]

Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]

Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]

Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]

Testing: -drive file=TEST_DIR/t.qcow2,bps=0
QEMU X.Y.Z monitor - type 'help' for more information
406
(qemu) quit
407 408 409

Testing: -drive file=TEST_DIR/t.qcow2,bps=1
QEMU X.Y.Z monitor - type 'help' for more information
410
(qemu) quit
411 412 413

Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
QEMU X.Y.Z monitor - type 'help' for more information
414
(qemu) quit
415 416 417 418 419 420 421 422

Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]

Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]


B
Bo Tu 已提交
423 424 425 426 427 428 429 430 431 432 433 434 435
=== Parsing protocol from file name ===

Testing: -hda foo:bar
QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'

Testing: -drive file=foo:bar
QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'

Testing: -drive file.filename=foo:bar
QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory

Testing: -hda file:TEST_DIR/t.qcow2
QEMU X.Y.Z monitor - type 'help' for more information
436
(qemu) quit
B
Bo Tu 已提交
437 438 439

Testing: -drive file=file:TEST_DIR/t.qcow2
QEMU X.Y.Z monitor - type 'help' for more information
440
(qemu) quit
B
Bo Tu 已提交
441 442 443 444 445 446 447 448 449 450 451

Testing: -drive file.filename=file:TEST_DIR/t.qcow2
QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory


=== Snapshot mode ===

wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
QEMU X.Y.Z monitor - type 'help' for more information
452
(qemu) qemu-io drive0 "write -P 0x22 0 4k"
B
Bo Tu 已提交
453 454
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
455
(qemu) quit
B
Bo Tu 已提交
456 457 458

Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
QEMU X.Y.Z monitor - type 'help' for more information
459
(qemu) qemu-io drive0 "write -P 0x22 0 4k"
B
Bo Tu 已提交
460 461
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
462
(qemu) quit
B
Bo Tu 已提交
463 464 465

Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
QEMU X.Y.Z monitor - type 'help' for more information
466
(qemu) qemu-io drive0 "write -P 0x22 0 4k"
B
Bo Tu 已提交
467 468
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
469
(qemu) quit
B
Bo Tu 已提交
470 471 472

Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
QEMU X.Y.Z monitor - type 'help' for more information
473
(qemu) qemu-io drive0 "write -P 0x22 0 4k"
B
Bo Tu 已提交
474 475
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
476
(qemu) quit
B
Bo Tu 已提交
477 478 479

Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
QEMU X.Y.Z monitor - type 'help' for more information
480
(qemu) qemu-io drive0 "write -P 0x22 0 4k"
B
Bo Tu 已提交
481 482
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
483
(qemu) quit
B
Bo Tu 已提交
484 485 486

Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
QEMU X.Y.Z monitor - type 'help' for more information
487
(qemu) qemu-io drive0 "write -P 0x22 0 4k"
B
Bo Tu 已提交
488 489
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
490
(qemu) quit
B
Bo Tu 已提交
491 492 493

Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
QEMU X.Y.Z monitor - type 'help' for more information
494
(qemu) qemu-io drive0 "write -P 0x22 0 4k"
B
Bo Tu 已提交
495 496
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
497
(qemu) quit
B
Bo Tu 已提交
498 499 500

Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
QEMU X.Y.Z monitor - type 'help' for more information
501
(qemu) qemu-io drive0 "write -P 0x22 0 4k"
B
Bo Tu 已提交
502 503
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
504
(qemu) quit
B
Bo Tu 已提交
505 506 507 508 509

read 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
QEMU X.Y.Z monitor - type 'help' for more information
510
(qemu) qemu-io drive0 "write -P 0x22 0 4k"
B
Bo Tu 已提交
511 512
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
513
(qemu) quit
B
Bo Tu 已提交
514 515 516 517 518

read 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
QEMU X.Y.Z monitor - type 'help' for more information
519
(qemu) qemu-io drive0 "write -P 0x33 0 4k"
B
Bo Tu 已提交
520 521
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
522 523
(qemu) commit drive0
(qemu) quit
B
Bo Tu 已提交
524 525 526 527

read 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
*** done