]> git.proxmox.com Git - mirror_qemu.git/commit - block/mirror.c
block/mirror: Improve progress report
authorMax Reitz <mreitz@redhat.com>
Fri, 24 Oct 2014 13:57:36 +0000 (15:57 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Nov 2014 11:41:48 +0000 (11:41 +0000)
commitb21c76529d55bf7bb02ac736b312f5f8bf033ea2
tree437d348c83d9cccbc1507324b009ba2ef67df864
parent1d3ba15accf56b08f436d8ca92f5a0abce2d54ee
block/mirror: Improve progress report

Instead of taking the total length of the block device as the block
job's length, use the number of dirty sectors. The progress is now the
number of sectors mirrored to the target block device. Note that this
may result in the job's length increasing during operation, which is
however in fact desirable.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1414159063-25977-8-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/mirror.c