aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-01-26 11:58:56 +0800
committerMax Reitz <mreitz@redhat.com>2016-02-02 17:50:47 +0100
commit8bfb137152d2195c70e99ed3269a3f4825ffc614 (patch)
tree0d8f377b8abdbd7122e57fd53dff85d84c7e6def
parentd234c929310a322357ed4323c7014605449f5802 (diff)
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>
-rw-r--r--block/vdi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/vdi.c b/block/vdi.c
index 294c43877a..b403243604 100644
--- a/block/vdi.c
+++ b/block/vdi.c
@@ -551,6 +551,7 @@ static int64_t coroutine_fn vdi_co_get_block_status(BlockDriverState *bs,
offset = s->header.offset_data +
(uint64_t)bmap_entry * s->block_size +
sector_in_block * SECTOR_SIZE;
+ *file = bs->file->bs;
return BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | offset;
}