summaryrefslogtreecommitdiff
path: root/block/qcow.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-01-26 11:58:49 +0800
committerMax Reitz <mreitz@redhat.com>2016-02-02 17:50:47 +0100
commit3064bf6fffe4705d983b8cecfbbe3de3e5a75312 (patch)
tree908ab14a4350ad07af084410944db64d4edfc00e /block/qcow.c
parent67a0fd2a9bca204d2b39f910a97c7137636a0715 (diff)
downloadqemu-3064bf6fffe4705d983b8cecfbbe3de3e5a75312.tar.gz
qcow: Assign bs->file->bs to file in qcow_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-3-git-send-email-famz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/qcow.c')
-rw-r--r--block/qcow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/qcow.c b/block/qcow.c
index 4202797a11..251910cc9d 100644
--- a/block/qcow.c
+++ b/block/qcow.c
@@ -510,6 +510,7 @@ static int64_t coroutine_fn qcow_co_get_block_status(BlockDriverState *bs,
return BDRV_BLOCK_DATA;
}
cluster_offset |= (index_in_cluster << BDRV_SECTOR_BITS);
+ *file = bs->file->bs;
return BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | cluster_offset;
}