OSDN Git Service

qemu-img: make progress output more accurate during convert
authorPeter Lieven <pl@kamp.de>
Thu, 5 Dec 2013 14:54:53 +0000 (15:54 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 13 Dec 2013 15:45:04 +0000 (16:45 +0100)
commit802c3d4ccc9853ee11c742bc206f284f04259426
treeb49da0eb7bb307bc34c971fe7cb2667f3e3562cb
parent3d94ce60ae7ad7c31dc143fdd9da95c61b4e529e
qemu-img: make progress output more accurate during convert

the progress output is very bumpy if the input images contains
a significant portion of unallocated sectors. This patch
checks how much sectors are allocated a priori if progress
output is selected.

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