History | View | Annotate | Download (1.3 kB)
qemu-io: Move functions for registering and running commands
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qemu-io: Move command_loop() and friends
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qemu-io: Move remaining helpers from cmd.c
qemu-io: Don't use global bs in command implementations
Pass in the BlockDriverState to the command handlers instead of usingthe global variable. This is an important step to make the commandsusable outside of qemu-io.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>...
qemu-io: Factor out qemuio_command
It's duplicated code. Move it to qemu-io-cmds.c because it's notdependent on any static data of the qemu-io tool.
qemu-io: Move 'help' function
No reason to treat it different from other commands. Move it toqemu-io-cmds.c, adapt the coding style and register it like any othercommand.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>...
qemu-io: Move 'quit' function
This one only makes sense in the context of the qemu-io tool, so move itto qemu-io.c. Adapt coding style and register it like other commands.
qemu-io: Remove unused args_command
The original intention seems to be something with handling multipleimages at once, but this has never been implemented and the onlyfunction ever registered is implemented to make everything behave like a"global" command. Just do that unconditionally now....
qemu-io: Make cvtnum() a wrapper around strtosz_suffix()
No reason to implement the same thing multiple times. A nice side effectis that fractional numbers like 0.5M can be used in qemu-io now.
Delete useless 'extern' qualifiers for functions
'extern' qualifier is useless for function declarations. Deletethem.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Update to a hopefully more future proof FSF address
Fix a few Sparse warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7016 c046a42c-6fe2-441c-8c8c-71466251a162
Add files not included in previous commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6995 c046a42c-6fe2-441c-8c8c-71466251a162