Re: [PATCH 2/8] block/vpc: return ZERO block-status when appropriate

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
07.05.2020 0:18, Eric Blake wrote: On 5/6/20 4:25 AM, Vladimir Sementsov-Ogievskiy wrote: In case when get_image_offset() returns -1, we do zero out the corresponding chunk of qiov. So, this should be reported as ZERO. After block-status update, it never reports 0, so setting unallocated_blocks

Re: [PATCH 2/8] block/vpc: return ZERO block-status when appropriate

2020-05-06 Thread Eric Blake
On 5/6/20 4:25 AM, Vladimir Sementsov-Ogievskiy wrote: In case when get_image_offset() returns -1, we do zero out the corresponding chunk of qiov. So, this should be reported as ZERO. After block-status update, it never reports 0, so setting unallocated_blocks_are_zero doesn't make sense. Drop i

[PATCH 2/8] block/vpc: return ZERO block-status when appropriate

2020-05-06 Thread Vladimir Sementsov-Ogievskiy
In case when get_image_offset() returns -1, we do zero out the corresponding chunk of qiov. So, this should be reported as ZERO. After block-status update, it never reports 0, so setting unallocated_blocks_are_zero doesn't make sense. Drop it. Signed-off-by: Vladimir Sementsov-Ogievskiy --- blo