Re: [PATCH v2 4/5] block/io: fix bdrv_is_allocated_above

2020-05-19 Thread Eric Blake
On 5/19/20 2:55 PM, Vladimir Sementsov-Ogievskiy wrote: bdrv_is_allocated_above wrongly handles short backing files: it reports after-EOF space as UNALLOCATED which is wrong, You haven't convinced me of that claim. as on read the data is generated on the level of short backing file (if all ov

[PATCH v2 4/5] block/io: fix bdrv_is_allocated_above

2020-05-19 Thread Vladimir Sementsov-Ogievskiy
bdrv_is_allocated_above wrongly handles short backing files: it reports after-EOF space as UNALLOCATED which is wrong, as on read the data is generated on the level of short backing file (if all overlays has unallocated area at that place). Reusing bdrv_common_block_status_above fixes the issue an