On 29/06/20 18:02, Eric Blake wrote:
> - allocation implies that data comes from this layer of a backing chain,
> rather than deferring to a backing image
>
> - allocation implies that storage is reserved (that is, not sparse)
>
> It sounds like we are trying to represent the second question fo
On 6/29/20 5:39 AM, Stefan Hajnoczi wrote:
SCSI defines 3 values and QEMU can represent all of them:
0 - mapped or unknown
1 - deallocated
2 - anchored
See the BDRV_BLOCK_* constants in include/block/block.h. The
is_deallocated boolean is not enough to represent this state, but the
bdrv_block_
On 29/06/20 12:39, Stefan Hajnoczi wrote:
>> I don't know which one in BDRV_BLOCK_* can be used to represent 'anchored'.
>> It seems that I need to use BDRV_BLOCK_* combination to recognized
>> 'anchored',
>>
>> I'd like to use these combinations to analyze the bdrv_block_status() return
>> value
On Thu, Jun 25, 2020 at 01:31:56PM +, Lin Ma wrote:
> On 2020-06-25 21:25, Lin Ma wrote:
> >> +/*
> >> + * 8 + 16 is the length in bytes of response header and
> >> + * one LBA status descriptor
> >> + */
> >> +memset(outbuf, 0, 8 + 16);
> >> +outbuf[3] = 20;
> >> +o
On 2020-06-25 21:25, Lin Ma wrote:
> From: Stefan Hajnoczi
> Sent: Monday, June 22, 2020 8:14 PM
> ...
>> diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
>> index 387503e11b..9e3002ddaf 100644
>> --- a/hw/scsi/scsi-disk.c
>> +++ b/hw/scsi/scsi-disk.c
>> @@ -1866,6 +1866,89 @@ static void scs
On Wed, Jun 17, 2020 at 06:30:18PM +0800, Lin Ma wrote:
> Signed-off-by: Lin Ma
> ---
> hw/scsi/scsi-disk.c| 90 ++
> include/block/accounting.h | 1 +
> include/scsi/constants.h | 1 +
> 3 files changed, 92 insertions(+)
>
> diff --git a/hw/scsi/s