Re: [PATCH v2 4/9] block/vpc: return ZERO block-status when appropriate

2020-05-07 Thread Eric Blake
On 5/7/20 3:47 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. Note that this changes visible output of "qemu-img map --output=json" and "qemu-io -c map" commands. For qemu-im

[PATCH v2 4/9] block/vpc: return ZERO block-status when appropriate

2020-05-07 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. Note that this changes visible output of "qemu-img map --output=json" and "qemu-io -c map" commands. For qemu-img map, the change is obvious: we just mark as zero what i