mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
blockjobs: Allow creating internal jobs
Add the ability to create jobs without an ID. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Message-id: 1477584421-1399-3-git-send-email-jsnow@redhat.com Signed-off-by: Jeff Cody <jcody@redhat.com>
This commit is contained in:
parent
559b935f8c
commit
f81e0b4532
8 changed files with 30 additions and 16 deletions
|
@ -31,7 +31,7 @@ static BlockJob *do_test_id(BlockBackend *blk, const char *id,
|
|||
Error *errp = NULL;
|
||||
|
||||
job = block_job_create(id, &test_block_job_driver, blk_bs(blk), 0,
|
||||
block_job_cb, NULL, &errp);
|
||||
BLOCK_JOB_DEFAULT, block_job_cb, NULL, &errp);
|
||||
if (should_succeed) {
|
||||
g_assert_null(errp);
|
||||
g_assert_nonnull(job);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue