]> git.proxmox.com Git - qemu.git/commit - qemu-io.c
qemu-io: Don't use global bs in command implementations
authorKevin Wolf <kwolf@redhat.com>
Wed, 5 Jun 2013 12:19:30 +0000 (14:19 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 6 Jun 2013 09:27:04 +0000 (11:27 +0200)
commit734c3b85cb72d264ad2b38a87f30304e05de2cb1
treeaad868657469551e947b5279a2d88bca03ddff9f
parentcf49a6a00c19cabf4006d4f82bef26345043e7b5
qemu-io: Don't use global bs in command implementations

Pass in the BlockDriverState to the command handlers instead of using
the global variable. This is an important step to make the commands
usable outside of qemu-io.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
cmd.c
cmd.h
qemu-io.c