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=virtio 113QEMU X.Y.Z monitor - type 'help' for more information 114(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty 115 116 117=== Read-only === 118 119Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on 120QEMU X.Y.Z monitor - type 'help' for more information 121(qemu) quit 122 123 124=== Cache modes === 125 126Testing: -drive driver=null-co,cache=none 127QEMU X.Y.Z monitor - type 'help' for more information 128(qemu) quit 129 130Testing: -drive driver=null-co,cache=directsync 131QEMU X.Y.Z monitor - type 'help' for more information 132(qemu) quit 133 134Testing: -drive driver=null-co,cache=writeback 135QEMU X.Y.Z monitor - type 'help' for more information 136(qemu) quit 137 138Testing: -drive driver=null-co,cache=writethrough 139QEMU X.Y.Z monitor - type 'help' for more information 140(qemu) quit 141 142Testing: -drive driver=null-co,cache=unsafe 143QEMU X.Y.Z monitor - type 'help' for more information 144(qemu) quit 145 146Testing: -drive driver=null-co,cache=invalid_value 147QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option 148 149Testing: -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 150QEMU X.Y.Z monitor - type 'help' for more information 151(qemu) info block 152drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2) 153 Removable device: not locked, tray closed 154 Cache mode: writeback 155 Backing file: TEST_DIR/t.qcow2.base (chain depth: 1) 156(qemu) info block file 157 158file: TEST_DIR/t.qcow2 (file) 159 Cache mode: writeback 160(qemu) info block backing 161backing: TEST_DIR/t.qcow2.base (qcow2, read-only) 162 Cache mode: writeback, ignore flushes 163(qemu) info block backing-file 164 165backing-file: TEST_DIR/t.qcow2.base (file, read-only) 166 Cache mode: writeback, ignore flushes 167(qemu) quit 168 169Testing: -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 170QEMU X.Y.Z monitor - type 'help' for more information 171(qemu) info block 172drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2) 173 Removable device: not locked, tray closed 174 Cache mode: writethrough 175 Backing file: TEST_DIR/t.qcow2.base (chain depth: 1) 176(qemu) info block file 177 178file: TEST_DIR/t.qcow2 (file) 179 Cache mode: writeback 180(qemu) info block backing 181backing: TEST_DIR/t.qcow2.base (qcow2, read-only) 182 Cache mode: writeback, ignore flushes 183(qemu) info block backing-file 184 185backing-file: TEST_DIR/t.qcow2.base (file, read-only) 186 Cache mode: writeback, ignore flushes 187(qemu) quit 188 189Testing: -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 190QEMU X.Y.Z monitor - type 'help' for more information 191(qemu) info block 192drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2) 193 Removable device: not locked, tray closed 194 Cache mode: writeback, ignore flushes 195 Backing file: TEST_DIR/t.qcow2.base (chain depth: 1) 196(qemu) info block file 197 198file: TEST_DIR/t.qcow2 (file) 199 Cache mode: writeback, ignore flushes 200(qemu) info block backing 201backing: TEST_DIR/t.qcow2.base (qcow2, read-only) 202 Cache mode: writeback, ignore flushes 203(qemu) info block backing-file 204 205backing-file: TEST_DIR/t.qcow2.base (file, read-only) 206 Cache mode: writeback, ignore flushes 207(qemu) quit 208 209Testing: -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 210QEMU_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 211 212 213=== Specifying the protocol layer === 214 215Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file 216QEMU X.Y.Z monitor - type 'help' for more information 217(qemu) quit 218 219 220=== Leaving out required options === 221 222Testing: -drive driver=file 223QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name 224 225Testing: -drive driver=file,filename= 226QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name 227 228Testing: -drive driver=nbd 229QEMU_PROG: -drive driver=nbd: NBD server address missing 230 231Testing: -drive driver=raw 232QEMU_PROG: -drive driver=raw: A block device must be specified for "file" 233 234Testing: -drive file.driver=file 235QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name 236 237Testing: -drive file.driver=nbd 238QEMU_PROG: -drive file.driver=nbd: NBD server address missing 239 240Testing: -drive file.driver=raw 241QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file" 242 243Testing: -drive foo=bar 244QEMU_PROG: -drive foo=bar: Must specify either driver or file 245 246 247=== Specifying both an option and its legacy alias === 248 249Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678 250QEMU_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 251 252Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678 253QEMU_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 254 255Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678 256QEMU_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 257 258Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678 259QEMU_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 260 261Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678 262QEMU_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 263 264Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678 265QEMU_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 266 267Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678 268QEMU_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 269 270Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678 271QEMU_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 272 273Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678 274QEMU_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 275 276Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678 277QEMU_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 278 279Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678 280QEMU_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 281 282Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678 283QEMU_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 284 285Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678 286QEMU_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 287 288Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off 289QEMU_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 290 291 292=== Catching negative/large throttling values === 293 294Testing: -drive file=TEST_DIR/t.qcow2,iops=-1 295QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000] 296 297Testing: -drive file=TEST_DIR/t.qcow2,bps=-2 298QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000] 299 300Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3 301QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000] 302 303Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3 304QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000] 305 306Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4 307QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000] 308 309Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5 310QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000] 311 312Testing: -drive file=TEST_DIR/t.qcow2,bps=0 313QEMU X.Y.Z monitor - type 'help' for more information 314(qemu) quit 315 316Testing: -drive file=TEST_DIR/t.qcow2,bps=1 317QEMU X.Y.Z monitor - type 'help' for more information 318(qemu) quit 319 320Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000 321QEMU X.Y.Z monitor - type 'help' for more information 322(qemu) quit 323 324Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001 325QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000] 326 327Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999 328QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000] 329 330 331=== Parsing protocol from file name === 332 333Testing: -hda foo:bar 334QEMU_PROG: -hda foo:bar: Unknown protocol 'foo' 335 336Testing: -drive file=foo:bar 337QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo' 338 339Testing: -drive file.filename=foo:bar 340QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory 341 342Testing: -hda file:TEST_DIR/t.qcow2 343QEMU X.Y.Z monitor - type 'help' for more information 344(qemu) quit 345 346Testing: -drive file=file:TEST_DIR/t.qcow2 347QEMU X.Y.Z monitor - type 'help' for more information 348(qemu) quit 349 350Testing: -drive file.filename=file:TEST_DIR/t.qcow2 351QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory 352 353 354=== Snapshot mode === 355 356wrote 4096/4096 bytes at offset 0 3574 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 358Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot 359QEMU X.Y.Z monitor - type 'help' for more information 360(qemu) qemu-io drive0 "write -P 0x22 0 4k" 361wrote 4096/4096 bytes at offset 0 3624 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 363(qemu) quit 364 365Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 366QEMU X.Y.Z monitor - type 'help' for more information 367(qemu) qemu-io drive0 "write -P 0x22 0 4k" 368wrote 4096/4096 bytes at offset 0 3694 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 370(qemu) quit 371 372Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0 373QEMU X.Y.Z monitor - type 'help' for more information 374(qemu) qemu-io drive0 "write -P 0x22 0 4k" 375wrote 4096/4096 bytes at offset 0 3764 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 377(qemu) quit 378 379Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot 380QEMU X.Y.Z monitor - type 'help' for more information 381(qemu) qemu-io drive0 "write -P 0x22 0 4k" 382wrote 4096/4096 bytes at offset 0 3834 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 384(qemu) quit 385 386Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot 387QEMU X.Y.Z monitor - type 'help' for more information 388(qemu) qemu-io drive0 "write -P 0x22 0 4k" 389wrote 4096/4096 bytes at offset 0 3904 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 391(qemu) quit 392 393Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 394QEMU X.Y.Z monitor - type 'help' for more information 395(qemu) qemu-io drive0 "write -P 0x22 0 4k" 396wrote 4096/4096 bytes at offset 0 3974 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 398(qemu) quit 399 400Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot 401QEMU X.Y.Z monitor - type 'help' for more information 402(qemu) qemu-io drive0 "write -P 0x22 0 4k" 403wrote 4096/4096 bytes at offset 0 4044 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 405(qemu) quit 406 407Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 408QEMU X.Y.Z monitor - type 'help' for more information 409(qemu) qemu-io drive0 "write -P 0x22 0 4k" 410wrote 4096/4096 bytes at offset 0 4114 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 412(qemu) quit 413 414read 4096/4096 bytes at offset 0 4154 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 416Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0 417QEMU X.Y.Z monitor - type 'help' for more information 418(qemu) qemu-io drive0 "write -P 0x22 0 4k" 419wrote 4096/4096 bytes at offset 0 4204 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 421(qemu) quit 422 423read 4096/4096 bytes at offset 0 4244 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 425Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 426QEMU X.Y.Z monitor - type 'help' for more information 427(qemu) qemu-io drive0 "write -P 0x33 0 4k" 428wrote 4096/4096 bytes at offset 0 4294 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 430(qemu) commit drive0 431(qemu) quit 432 433read 4096/4096 bytes at offset 0 4344 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 435*** done 436