diff options
author | Fam Zheng <famz@redhat.com> | 2016-01-26 11:58:53 +0800 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2016-02-02 17:50:47 +0100 |
commit | ddf4987d76ebc356da96f6901c1af970ef421da6 (patch) | |
tree | 0d7eaf631a8c49d9c08356db84d785c3d9fa96e8 | |
parent | 3399833f1412e72e6f9e6997775dfdf12d624eaf (diff) | |
download | qemu-ddf4987d76ebc356da96f6901c1af970ef421da6.zip qemu-ddf4987d76ebc356da96f6901c1af970ef421da6.tar.gz qemu-ddf4987d76ebc356da96f6901c1af970ef421da6.tar.bz2 |
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.c | 1 |
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; } |