]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-img.c
qemu-img: simplify img_convert
authorPeter Lieven <pl@kamp.de>
Fri, 21 Apr 2017 09:11:55 +0000 (11:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Apr 2017 13:39:49 +0000 (15:39 +0200)
commit9fd77f997208c0c98cbd8ec522e34fd2103f5d30
tree6aa01f8df1f7fe554240fcc6b0ce8a473bb9d820
parent362b3786ebd1f97737783b53de056265efa9e870
qemu-img: simplify img_convert

img_convert has been around before there was an ImgConvertState or
a block backend, but it has never been modified to directly use
these structs. Change this by parsing parameters directly into
the ImgConvertState and directly use BlockBackend where possible.
Furthermore variable initialization has been reworked and sorted.

Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c