vdi: Assign bs->file->bs to file in vdi_co_get_block_status
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 1453780743-16806-10-git-send-email-famz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
d234c92931
commit
8bfb137152
|
@ -551,6 +551,7 @@ static int64_t coroutine_fn vdi_co_get_block_status(BlockDriverState *bs,
|
||||||
offset = s->header.offset_data +
|
offset = s->header.offset_data +
|
||||||
(uint64_t)bmap_entry * s->block_size +
|
(uint64_t)bmap_entry * s->block_size +
|
||||||
sector_in_block * SECTOR_SIZE;
|
sector_in_block * SECTOR_SIZE;
|
||||||
|
*file = bs->file->bs;
|
||||||
return BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | offset;
|
return BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue