summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-01-26 11:58:53 +0800
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:30:23 -0600
commit5eb032f2be43c3343a1a88d5d711bc7e3a4b9094 (patch)
treedaf237058a85dea0b36a1f69c3a78ada50b45968
parentd1e28a75d58a7be7d1a3e91a47b71dfa5ad29835 (diff)
downloadhqemu-5eb032f2be43c3343a1a88d5d711bc7e3a4b9094.zip
hqemu-5eb032f2be43c3343a1a88d5d711bc7e3a4b9094.tar.gz
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>
-rw-r--r--block/parallels.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/parallels.c b/block/parallels.c
index e2de308..645521d 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;
}
OpenPOWER on IntegriCloud