1QA output created by 051 2Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 3Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base 4 5=== Unknown option === 6 7Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0 8QEMU_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 10Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0 11QEMU_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 13Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0 14QEMU_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 16Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0 17QEMU_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 22Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt= 23QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt' 24 25Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on 26QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt' 27 28Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234 29QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt' 30 31Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo 32QEMU_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 37Testing: -drive file=TEST_DIR/t.qcow2,format=foo 38QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo' 39 40Testing: -drive file=TEST_DIR/t.qcow2,driver=foo 41QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo' 42 43Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2 44QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format' 45 46Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2 47QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format' 48 49 50=== Device without drive === 51 52Testing: -device VIRTIO_SCSI -device scsi-hd 53QEMU 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 59Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults 60QEMU X.Y.Z monitor - type 'help' for more information 61(qemu) info block 62drive0 (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 68Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig 69QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files 70 71Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig 72QEMU_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 74Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig 75QEMU_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 80Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 81Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on 82QEMU X.Y.Z monitor - type 'help' for more information 83(qemu) quit 84 85Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off 86QEMU X.Y.Z monitor - type 'help' for more information 87(qemu) quit 88 89Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts= 90QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off' 91 92Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42 93QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off' 94 95Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo 96QEMU_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 101Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 102Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on 103QEMU_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 105Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off 106QEMU X.Y.Z monitor - type 'help' for more information 107(qemu) quit 108 109 110=== No medium === 111 112Testing: -drive if=floppy 113QEMU X.Y.Z monitor - type 'help' for more information 114(qemu) quit 115 116Testing: -drive if=ide,media=cdrom 117QEMU X.Y.Z monitor - type 'help' for more information 118(qemu) quit 119 120Testing: -drive if=scsi,media=cdrom 121QEMU 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 123quit 124 125Testing: -drive if=ide 126QEMU 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 129Testing: -drive if=scsi 130QEMU 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 132QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty 133 134Testing: -drive if=virtio 135QEMU X.Y.Z monitor - type 'help' for more information 136(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty 137 138Testing: -drive if=none,id=disk -device ide-cd,drive=disk 139QEMU X.Y.Z monitor - type 'help' for more information 140(qemu) quit 141 142Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk 143QEMU X.Y.Z monitor - type 'help' for more information 144(qemu) quit 145 146Testing: -drive if=none,id=disk -device ide-drive,drive=disk 147QEMU 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 150Testing: -drive if=none,id=disk -device ide-hd,drive=disk 151QEMU 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 154Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk 155QEMU 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 158Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk 159QEMU 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 165Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on 166QEMU X.Y.Z monitor - type 'help' for more information 167(qemu) quit 168 169Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on 170QEMU X.Y.Z monitor - type 'help' for more information 171(qemu) quit 172 173Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on 174QEMU 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 176quit 177 178Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on 179QEMU 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 182Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on 183QEMU 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 185quit 186 187Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on 188QEMU X.Y.Z monitor - type 'help' for more information 189(qemu) quit 190 191Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk 192QEMU X.Y.Z monitor - type 'help' for more information 193(qemu) quit 194 195Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk 196QEMU X.Y.Z monitor - type 'help' for more information 197(qemu) quit 198 199Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk 200QEMU X.Y.Z monitor - type 'help' for more information 201(qemu) QEMU_PROG: -device ide-drive,drive=disk: Block node is read-only 202 203Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk 204QEMU X.Y.Z monitor - type 'help' for more information 205(qemu) QEMU_PROG: -device ide-hd,drive=disk: Block node is read-only 206 207Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk 208QEMU X.Y.Z monitor - type 'help' for more information 209(qemu) quit 210 211Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk 212QEMU X.Y.Z monitor - type 'help' for more information 213(qemu) quit 214 215 216=== Cache modes === 217 218Testing: -drive driver=null-co,cache=none 219QEMU X.Y.Z monitor - type 'help' for more information 220(qemu) quit 221 222Testing: -drive driver=null-co,cache=directsync 223QEMU X.Y.Z monitor - type 'help' for more information 224(qemu) quit 225 226Testing: -drive driver=null-co,cache=writeback 227QEMU X.Y.Z monitor - type 'help' for more information 228(qemu) quit 229 230Testing: -drive driver=null-co,cache=writethrough 231QEMU X.Y.Z monitor - type 'help' for more information 232(qemu) quit 233 234Testing: -drive driver=null-co,cache=unsafe 235QEMU X.Y.Z monitor - type 'help' for more information 236(qemu) quit 237 238Testing: -drive driver=null-co,cache=invalid_value 239QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option 240 241Testing: -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 242QEMU X.Y.Z monitor - type 'help' for more information 243(qemu) info block 244drive0 (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 250file: TEST_DIR/t.qcow2 (file) 251 Cache mode: writeback 252(qemu) info block backing 253backing: TEST_DIR/t.qcow2.base (qcow2, read-only) 254 Cache mode: writeback, ignore flushes 255(qemu) info block backing-file 256 257backing-file: TEST_DIR/t.qcow2.base (file, read-only) 258 Cache mode: writeback, ignore flushes 259(qemu) quit 260 261Testing: -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 262QEMU X.Y.Z monitor - type 'help' for more information 263(qemu) info block 264drive0 (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 270file: TEST_DIR/t.qcow2 (file) 271 Cache mode: writeback 272(qemu) info block backing 273backing: TEST_DIR/t.qcow2.base (qcow2, read-only) 274 Cache mode: writeback, ignore flushes 275(qemu) info block backing-file 276 277backing-file: TEST_DIR/t.qcow2.base (file, read-only) 278 Cache mode: writeback, ignore flushes 279(qemu) quit 280 281Testing: -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 282QEMU X.Y.Z monitor - type 'help' for more information 283(qemu) info block 284drive0 (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 290file: TEST_DIR/t.qcow2 (file) 291 Cache mode: writeback, ignore flushes 292(qemu) info block backing 293backing: TEST_DIR/t.qcow2.base (qcow2, read-only) 294 Cache mode: writeback, ignore flushes 295(qemu) info block backing-file 296 297backing-file: TEST_DIR/t.qcow2.base (file, read-only) 298 Cache mode: writeback, ignore flushes 299(qemu) quit 300 301Testing: -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 302QEMU_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 307Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file 308QEMU X.Y.Z monitor - type 'help' for more information 309(qemu) quit 310 311 312=== Leaving out required options === 313 314Testing: -drive driver=file 315QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name 316 317Testing: -drive driver=file,filename= 318QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name 319 320Testing: -drive driver=nbd 321QEMU_PROG: -drive driver=nbd: NBD server address missing 322 323Testing: -drive driver=raw 324QEMU_PROG: -drive driver=raw: A block device must be specified for "file" 325 326Testing: -drive file.driver=file 327QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name 328 329Testing: -drive file.driver=nbd 330QEMU_PROG: -drive file.driver=nbd: NBD server address missing 331 332Testing: -drive file.driver=raw 333QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file" 334 335Testing: -drive foo=bar 336QEMU_PROG: -drive foo=bar: Must specify either driver or file 337 338 339=== Specifying both an option and its legacy alias === 340 341Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678 342QEMU_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 344Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678 345QEMU_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 347Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678 348QEMU_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 350Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678 351QEMU_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 353Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678 354QEMU_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 356Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678 357QEMU_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 359Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678 360QEMU_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 362Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678 363QEMU_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 365Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678 366QEMU_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 368Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678 369QEMU_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 371Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678 372QEMU_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 374Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678 375QEMU_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 377Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678 378QEMU_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 380Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off 381QEMU_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 386Testing: -drive file=TEST_DIR/t.qcow2,iops=-1 387QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000] 388 389Testing: -drive file=TEST_DIR/t.qcow2,bps=-2 390QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000] 391 392Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3 393QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000] 394 395Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3 396QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000] 397 398Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4 399QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000] 400 401Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5 402QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000] 403 404Testing: -drive file=TEST_DIR/t.qcow2,bps=0 405QEMU X.Y.Z monitor - type 'help' for more information 406(qemu) quit 407 408Testing: -drive file=TEST_DIR/t.qcow2,bps=1 409QEMU X.Y.Z monitor - type 'help' for more information 410(qemu) quit 411 412Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000 413QEMU X.Y.Z monitor - type 'help' for more information 414(qemu) quit 415 416Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001 417QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000] 418 419Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999 420QEMU_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 425Testing: -hda foo:bar 426QEMU_PROG: -hda foo:bar: Unknown protocol 'foo' 427 428Testing: -drive file=foo:bar 429QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo' 430 431Testing: -drive file.filename=foo:bar 432QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory 433 434Testing: -hda file:TEST_DIR/t.qcow2 435QEMU X.Y.Z monitor - type 'help' for more information 436(qemu) quit 437 438Testing: -drive file=file:TEST_DIR/t.qcow2 439QEMU X.Y.Z monitor - type 'help' for more information 440(qemu) quit 441 442Testing: -drive file.filename=file:TEST_DIR/t.qcow2 443QEMU_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 448wrote 4096/4096 bytes at offset 0 4494 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 450Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot 451QEMU X.Y.Z monitor - type 'help' for more information 452(qemu) qemu-io drive0 "write -P 0x22 0 4k" 453wrote 4096/4096 bytes at offset 0 4544 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 455(qemu) quit 456 457Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 458QEMU X.Y.Z monitor - type 'help' for more information 459(qemu) qemu-io drive0 "write -P 0x22 0 4k" 460wrote 4096/4096 bytes at offset 0 4614 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 462(qemu) quit 463 464Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0 465QEMU X.Y.Z monitor - type 'help' for more information 466(qemu) qemu-io drive0 "write -P 0x22 0 4k" 467wrote 4096/4096 bytes at offset 0 4684 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 469(qemu) quit 470 471Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot 472QEMU X.Y.Z monitor - type 'help' for more information 473(qemu) qemu-io drive0 "write -P 0x22 0 4k" 474wrote 4096/4096 bytes at offset 0 4754 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 476(qemu) quit 477 478Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot 479QEMU X.Y.Z monitor - type 'help' for more information 480(qemu) qemu-io drive0 "write -P 0x22 0 4k" 481wrote 4096/4096 bytes at offset 0 4824 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 483(qemu) quit 484 485Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 486QEMU X.Y.Z monitor - type 'help' for more information 487(qemu) qemu-io drive0 "write -P 0x22 0 4k" 488wrote 4096/4096 bytes at offset 0 4894 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 490(qemu) quit 491 492Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot 493QEMU X.Y.Z monitor - type 'help' for more information 494(qemu) qemu-io drive0 "write -P 0x22 0 4k" 495wrote 4096/4096 bytes at offset 0 4964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 497(qemu) quit 498 499Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 500QEMU X.Y.Z monitor - type 'help' for more information 501(qemu) qemu-io drive0 "write -P 0x22 0 4k" 502wrote 4096/4096 bytes at offset 0 5034 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 504(qemu) quit 505 506read 4096/4096 bytes at offset 0 5074 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 508Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0 509QEMU X.Y.Z monitor - type 'help' for more information 510(qemu) qemu-io drive0 "write -P 0x22 0 4k" 511wrote 4096/4096 bytes at offset 0 5124 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 513(qemu) quit 514 515read 4096/4096 bytes at offset 0 5164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 517Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 518QEMU X.Y.Z monitor - type 'help' for more information 519(qemu) qemu-io drive0 "write -P 0x33 0 4k" 520wrote 4096/4096 bytes at offset 0 5214 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 522(qemu) commit drive0 523(qemu) quit 524 525read 4096/4096 bytes at offset 0 5264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 527*** done 528