aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-01-26 11:58:53 +0800
committerMax Reitz <mreitz@redhat.com>2016-02-02 17:50:47 +0100
commitddf4987d76ebc356da96f6901c1af970ef421da6 (patch)
tree0d7eaf631a8c49d9c08356db84d785c3d9fa96e8 /block
parent3399833f1412e72e6f9e6997775dfdf12d624eaf (diff)
parallels: Assign bs->file->bs to file in parallels_co_get_block_status
Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 1453780743-16806-7-git-send-email-famz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/parallels.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/parallels.c b/block/parallels.c
index e2de308efa..645521d783 100644
--- a/block/parallels.c
+++ b/block/parallels.c
@@ -274,6 +274,7 @@ static int64_t coroutine_fn parallels_co_get_block_status(BlockDriverState *bs,
return 0;
}
+ *file = bs->file->bs;
return (offset << BDRV_SECTOR_BITS) |
BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID;
}