diff options
author | Kevin Wolf | 2016-04-18 17:30:17 +0200 |
---|---|---|
committer | Kevin Wolf | 2016-05-25 19:04:21 +0200 |
commit | b75536c9fa742f887304769d0608557bb8e3a27f (patch) | |
tree | 7a7d7164a6f6afa8f4fd11525ea48ec60976b4a5 /tests | |
parent | commit: Use BlockBackend for I/O (diff) | |
download | qemu-b75536c9fa742f887304769d0608557bb8e3a27f.tar.gz qemu-b75536c9fa742f887304769d0608557bb8e3a27f.tar.xz qemu-b75536c9fa742f887304769d0608557bb8e3a27f.zip |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-blockjob-txn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-blockjob-txn.c b/tests/test-blockjob-txn.c index 55fad9507a..828389bb45 100644 --- a/tests/test-blockjob-txn.c +++ b/tests/test-blockjob-txn.c @@ -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)) { |