Re: [Qemu-devel] [PATCH 1/3] mirror: Don't extend the last sub-chunk

2016-04-19 Thread Fam Zheng
On Tue, 04/19 22:33, Max Reitz wrote: > On 19.04.2016 12:09, Fam Zheng wrote: > > 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 "wr

Re: [Qemu-devel] [PATCH 1/3] mirror: Don't extend the last sub-chunk

2016-04-19 Thread Max Reitz
On 19.04.2016 12:09, Fam Zheng wrote: > 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 > e5b4

[Qemu-devel] [PATCH 1/3] mirror: Don't extend the last sub-chunk

2016-04-19 Thread Fam Zheng
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.