]> git.proxmox.com Git - qemu.git/commit - qemu-io.c
qemu-io: Add AIO debugging commands
authorKevin Wolf <kwolf@redhat.com>
Thu, 6 Dec 2012 13:32:58 +0000 (14:32 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 12 Dec 2012 11:33:48 +0000 (12:33 +0100)
commit41c695c749b84d40e53e64faadedc0392aaea07e
treec6baf246fdb0c89ee86dc378b5a51d4498de919a
parent3c90c65d7adab49a41952ee14e1d65f81355e408
qemu-io: Add AIO debugging commands

This makes the blkdebug suspend/resume functionality available in
qemu-io. Use it like this:

  $ ./qemu-io blkdebug::/tmp/test.qcow2
  qemu-io> break write_aio req_a
  qemu-io> aio_write 0 4k
  qemu-io> blkdebug: Suspended request 'req_a'
  qemu-io> resume req_a
  blkdebug: Resuming request 'req_a'
  qemu-io> wrote 4096/4096 bytes at offset 0
  4 KiB, 1 ops; 0:00:30.71 (133.359788 bytes/sec and 0.0326 ops/sec)

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block.h
block_int.h
qemu-io.c