Re: [Qemu-block] [PATCH v9 01/16] block: Add "file" output parameter to block status query functions

2016-01-27 Thread Max Reitz
On 26.01.2016 04:58, Fam Zheng wrote: > The added parameter can be used to return the BDS pointer which the > valid offset is referring to. Its value should be ignored unless > BDRV_BLOCK_OFFSET_VALID in ret is set. > > Until block drivers fill in the right value, let's clear it explicitly > right

[Qemu-block] [PATCH v9 01/16] block: Add "file" output parameter to block status query functions

2016-01-25 Thread Fam Zheng
The added parameter can be used to return the BDS pointer which the valid offset is referring to. Its value should be ignored unless BDRV_BLOCK_OFFSET_VALID in ret is set. Until block drivers fill in the right value, let's clear it explicitly right before calling .bdrv_get_block_status. The "bs->