aboutsummaryrefslogtreecommitdiff
path: root/block/mirror.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2016-10-27 12:06:56 -0400
committerJeff Cody <jcody@redhat.com>2016-11-01 07:55:57 -0400
commitf81e0b453275f7b59a4018093eb93d2173790665 (patch)
treeb1b50b19a456877718965a85f143249b44476181 /block/mirror.c
parent559b935f8c5c3139c2e275651da719ffa425cc14 (diff)
downloadqemu-f81e0b453275f7b59a4018093eb93d2173790665.zip
qemu-f81e0b453275f7b59a4018093eb93d2173790665.tar.gz
qemu-f81e0b453275f7b59a4018093eb93d2173790665.tar.bz2
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>
Diffstat (limited to 'block/mirror.c')
-rw-r--r--block/mirror.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/mirror.c b/block/mirror.c
index 82a9529..e9fba9b 100644
--- a/block/mirror.c
+++ b/block/mirror.c
@@ -967,7 +967,8 @@ static void mirror_start_job(const char *job_id, BlockDriverState *bs,
buf_size = DEFAULT_MIRROR_BUF_SIZE;
}
- s = block_job_create(job_id, driver, bs, speed, cb, opaque, errp);
+ s = block_job_create(job_id, driver, bs, speed,
+ BLOCK_JOB_DEFAULT, cb, opaque, errp);
if (!s) {
return;
}