Il 07/07/2014 21:13, Eric Blake ha scritto:
On 07/05/2014 11:47 AM, Max Reitz wrote:
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 <mre...@redhat.com>
---
 block/mirror.c | 34 ++++++++++++++++++++++------------
 1 file changed, 22 insertions(+), 12 deletions(-)

Reviewed-by: Eric Blake <ebl...@redhat.com>

This is an API change... IIUC the length can become bigger than the underlying device's size. Eric, how would libvirt expose this to clients and what are the chances that they get confused?

Paolo


Reply via email to