diff options
| author | Denis V. Lunev <den@openvz.org> | 2016-05-17 12:15:42 +0300 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2016-05-19 16:45:31 +0200 |
| commit | f575f145f4fa97fdbb9bbb4df62dfeada3f15dc4 (patch) | |
| tree | 0e4ddab1eabc09e27f33e78a9dce275996526b00 /hw/misc/mips_cpc.c | |
| parent | b97511c7bc88bc487cacbfab349eb6023ae4f49b (diff) | |
| download | focaccia-qemu-f575f145f4fa97fdbb9bbb4df62dfeada3f15dc4.tar.gz focaccia-qemu-f575f145f4fa97fdbb9bbb4df62dfeada3f15dc4.zip | |
qcow2: fix condition in is_zero_cluster
We should check for (res & BDRV_BLOCK_ZERO) only. The situation when we will have !(res & BDRV_BLOCK_DATA) and will not have BDRV_BLOCK_ZERO is not possible for images with bdi.unallocated_blocks_are_zero == true. For those images where it's false, however, it can happen and we must not consider the data zeroed then or we would corrupt the image. Signed-off-by: Denis V. Lunev <den@openvz.org> CC: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/misc/mips_cpc.c')
0 files changed, 0 insertions, 0 deletions