On 20.04.2016 16:32, Kevin Wolf wrote: > From: Fam Zheng <f...@redhat.com> > > The last sub-chunk is rounded up to the copy granularity in the target > image, resulting in a larger size than the source. > > Add a function to clip the copied sectors to the end. > > This undoes the "wrong" changes to tests/qemu-iotests/109.out in > e5b43573e28. The remaining two offset changes are okay. > > [ kwolf: Use DIV_ROUND_UP to calculate nb_chunks now ] > > Reported-by: Kevin Wolf <kw...@redhat.com> > Signed-off-by: Fam Zheng <f...@redhat.com> > Signed-off-by: Kevin Wolf <kw...@redhat.com> > --- > block/mirror.c | 19 +++++++++++++++---- > tests/qemu-iotests/109.out | 44 ++++++++++++++++++++++---------------------- > 2 files changed, 37 insertions(+), 26 deletions(-)
Reviewed-by: Max Reitz <mre...@redhat.com>
signature.asc
Description: OpenPGP digital signature