Kevin Wolf 5efdf53227 qcow2: Fix write_zeroes with partially allocated backing file cluster
In order to correctly check whether a given cluster is read as zero, we
don't only need to check whether bdrv_get_block_status_above() sets
BDRV_BLOCK_ZERO, but also if all sectors for the whole cluster have the
same status.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
2016-05-19 16:45:31 +02:00
..
2016-01-20 13:36:23 +01:00
2016-05-19 16:45:31 +02:00
2016-05-19 16:45:31 +02:00
2016-05-12 16:33:40 +01:00
2016-05-19 16:45:31 +02:00
2016-05-12 15:22:07 +02:00
2016-05-19 16:45:31 +02:00
2016-05-12 15:22:09 +02:00
2016-05-12 15:22:09 +02:00
2016-05-12 15:22:09 +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-01-20 13:36:23 +01:00
2016-05-12 15:22:07 +02:00
2016-05-19 16:45:31 +02:00
2016-05-19 16:45:31 +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