diff options
author | Fam Zheng <famz@redhat.com> | 2016-01-26 11:58:50 +0800 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:30:23 -0600 |
commit | fa843748f74937c50dcedf1ac1a08ed37030b82b (patch) | |
tree | a038434c46f954e7304afef5f09a48bde5779a68 | |
parent | 311fdbd0fd5d4d7dfd1e133ed0ff939db373b8e5 (diff) | |
download | hqemu-fa843748f74937c50dcedf1ac1a08ed37030b82b.zip hqemu-fa843748f74937c50dcedf1ac1a08ed37030b82b.tar.gz |
qcow2: Assign bs->file->bs to file in qcow2_co_get_block_status
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1453780743-16806-4-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
-rw-r--r-- | block/qcow2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/qcow2.c b/block/qcow2.c index d4ea6b4..8babecd 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1349,6 +1349,7 @@ static int64_t coroutine_fn qcow2_co_get_block_status(BlockDriverState *bs, !s->cipher) { index_in_cluster = sector_num & (s->cluster_sectors - 1); cluster_offset |= (index_in_cluster << BDRV_SECTOR_BITS); + *file = bs->file->bs; status |= BDRV_BLOCK_OFFSET_VALID | cluster_offset; } if (ret == QCOW2_CLUSTER_ZERO) { |