Fam Zheng 5416a11eb5 block: Fix bdrv_co_truncate overlap check
If we are growing the image and potentially using preallocation for the
new area, we need to make sure that no write requests are made to the
"preallocated" area which is [@old_size, @offset), not
[@offset, offset * 2 - @old_size).

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2018-07-10 16:46:22 +02:00
..
2018-07-10 16:01:52 +02:00
2018-07-10 16:01:52 +02:00
2018-07-10 16:01:52 +02:00
2018-07-10 16:01:52 +02:00
2018-07-10 16:46:22 +02:00
2018-07-05 10:29:19 +02:00
2018-07-10 16:01:52 +02:00
2018-07-10 13:04:25 +02:00
2018-07-05 10:29:19 +02:00
2018-07-10 16:01:52 +02:00
2018-07-10 16:01:52 +02:00