]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-io: Make cvtnum() a wrapper around strtosz_suffix()
authorKevin Wolf <kwolf@redhat.com>
Wed, 5 Jun 2013 12:19:28 +0000 (14:19 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 6 Jun 2013 09:27:03 +0000 (11:27 +0200)
commitb6e356aa25c81d928e1c463292048d29cf25f04e
tree1fcb52cdfa72cac2c0730ac7dba6cc555abc29bc
parent5e00984aef7c1c317e27c0e8acf66526513c770f
qemu-io: Make cvtnum() a wrapper around strtosz_suffix()

No reason to implement the same thing multiple times. A nice side effect
is that fractional numbers like 0.5M can be used in qemu-io now.

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