Re: [Qemu-devel] [PATCH 1/3] qcow2: fix condition in is_zero_cluster

2016-05-17 Thread Eric Blake
On 05/17/2016 10:51 AM, Kevin Wolf wrote: > From: "Denis V. Lunev" > > 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

[Qemu-devel] [PATCH 1/3] qcow2: fix condition in is_zero_cluster

2016-05-17 Thread Kevin Wolf
From: "Denis V. Lunev" 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 a