diff options
| author | Fam Zheng <famz@redhat.com> | 2016-04-20 10:48:34 +0800 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2016-04-20 16:52:55 +0200 |
| commit | 4150ae60ebf9445d853186c72cf33383710f7360 (patch) | |
| tree | dac1b789fc149a7d5de94a20993b9550de6af0f9 /qapi/string-input-visitor.c | |
| parent | f27a27425901bacc69fb579e1dd8a5878eadd6e9 (diff) | |
| download | focaccia-qemu-4150ae60ebf9445d853186c72cf33383710f7360.tar.gz focaccia-qemu-4150ae60ebf9445d853186c72cf33383710f7360.zip | |
mirror: Don't extend the last sub-chunk
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 <kwolf@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'qapi/string-input-visitor.c')
0 files changed, 0 insertions, 0 deletions