mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
blockjob: Remove BlockJob.bs
There is a single remaining user in qemu-img, and another one in a test case, both of which can be trivially converted to using BlockJob.blk instead. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
4653456a5f
commit
b75536c9fa
4 changed files with 3 additions and 4 deletions
|
@ -15,6 +15,7 @@
|
|||
#include "qapi/error.h"
|
||||
#include "qemu/main-loop.h"
|
||||
#include "block/blockjob.h"
|
||||
#include "sysemu/block-backend.h"
|
||||
|
||||
typedef struct {
|
||||
BlockJob common;
|
||||
|
@ -30,7 +31,7 @@ static const BlockJobDriver test_block_job_driver = {
|
|||
|
||||
static void test_block_job_complete(BlockJob *job, void *opaque)
|
||||
{
|
||||
BlockDriverState *bs = job->bs;
|
||||
BlockDriverState *bs = blk_bs(job->blk);
|
||||
int rc = (intptr_t)opaque;
|
||||
|
||||
if (block_job_is_cancelled(job)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue