Re: [PATCH v6 1/5] block/io: fix bdrv_co_block_status_above

2020-09-24 Thread Alberto Garcia
On Wed 16 Sep 2020 02:20:04 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > bdrv_co_block_status_above has several design problems with handling > short backing files: > > 1. With want_zeros=true, it may return ret with BDRV_BLOCK_ZERO but > without BDRV_BLOCK_ALLOCATED flag, when actually short b

[PATCH v6 1/5] block/io: fix bdrv_co_block_status_above

2020-09-16 Thread Vladimir Sementsov-Ogievskiy
bdrv_co_block_status_above has several design problems with handling short backing files: 1. With want_zeros=true, it may return ret with BDRV_BLOCK_ZERO but without BDRV_BLOCK_ALLOCATED flag, when actually short backing file which produces these after-EOF zeros is inside requested backing sequenc