Fam Zheng
4150ae60eb
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>
2016-04-20 16:52:55 +02:00
..
2016-01-20 13:36:23 +01:00
2016-03-22 22:20:17 +01:00
2016-03-30 12:16:03 +02:00
2016-03-22 22:20:17 +01:00
2016-03-30 12:15:57 +02:00
2016-03-22 22:20:17 +01:00
2016-04-15 17:22:12 +02:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-04-05 17:23:21 +02:00
2016-03-22 22:20:17 +01:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-04-19 12:24:59 -04:00
2016-04-11 16:59:09 +01:00
2016-03-30 12:16:02 +02:00
2016-01-20 13:36:23 +01:00
2016-03-30 12:15:57 +02:00
2016-04-20 16:52:55 +02:00
2016-04-05 11:46:52 +02:00
2016-03-30 12:16:02 +02:00
2016-03-30 12:16:02 +02:00
2016-03-30 16:50:39 -04:00
2016-03-30 12:16:04 +02:00
2016-03-30 12:16:01 +02:00
2016-03-30 12:16:02 +02:00
2016-01-20 13:36:23 +01:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:17 +01:00
2016-04-12 18:06:51 +02:00
2016-03-30 12:16:01 +02:00
2016-01-20 13:36:23 +01:00
2016-01-20 13:36:23 +01:00
2016-01-20 13:36:23 +01:00
2016-01-20 13:36:23 +01:00
2016-01-20 13:36:23 +01:00
2016-03-30 12:16:01 +02:00
2016-03-22 22:20:17 +01:00
2016-03-17 16:43:30 +01:00
2016-03-30 12:16:02 +02:00
2016-03-22 22:20:16 +01:00
2016-03-30 11:59:32 +02:00
2016-03-22 22:20:17 +01:00
2016-03-22 22:20:17 +01:00
2016-03-30 12:16:01 +02:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-03-29 19:54:49 +01:00
2016-01-20 13:36:23 +01:00
2016-03-30 12:16:01 +02:00
2016-01-20 13:36:23 +01:00
2016-03-22 22:20:15 +01:00
2016-03-30 12:16:01 +02:00
2016-03-30 12:16:01 +02:00
2016-04-15 17:22:12 +02:00
2016-03-30 12:16:03 +02:00
2016-01-20 13:36:23 +01:00
2016-01-20 13:36:23 +01:00