Re: [Qemu-devel] [PATCH v5 1/8] block: Add bdrv_get_block_status_above

2015-05-26 Thread Fam Zheng
On Tue, 05/26 11:22, Paolo Bonzini wrote: > > > On 26/05/2015 05:36, Fam Zheng wrote: > > Like bdrv_is_allocated_above, this function follows the backing chain until > > seeing > > BDRV_BLOCK_ALLOCATED. Base is not included. > > > > Reimplement bdrv_is_allocated on top. > > > > Signed-off-by:

Re: [Qemu-devel] [PATCH v5 1/8] block: Add bdrv_get_block_status_above

2015-05-26 Thread Paolo Bonzini
On 26/05/2015 05:36, Fam Zheng wrote: > Like bdrv_is_allocated_above, this function follows the backing chain until > seeing > BDRV_BLOCK_ALLOCATED. Base is not included. > > Reimplement bdrv_is_allocated on top. > > Signed-off-by: Fam Zheng > --- > block/io.c| 53 > +++

[Qemu-devel] [PATCH v5 1/8] block: Add bdrv_get_block_status_above

2015-05-25 Thread Fam Zheng
Like bdrv_is_allocated_above, this function follows the backing chain until seeing BDRV_BLOCK_ALLOCATED. Base is not included. Reimplement bdrv_is_allocated on top. Signed-off-by: Fam Zheng --- block/io.c| 53 --- include/block/block