diff options
| author | John Snow | 2016-10-27 18:06:57 +0200 |
|---|---|---|
| committer | Jeff Cody | 2016-11-01 12:55:57 +0100 |
| commit | 47970dfb0a611f6468a0ba44781b4610525d1af1 (patch) | |
| tree | 392c59e1601b8ab977243240941e8d4fc25a5896 /qemu-img.c | |
| parent | blockjobs: Allow creating internal jobs (diff) | |
| download | qemu-47970dfb0a611f6468a0ba44781b4610525d1af1.tar.gz qemu-47970dfb0a611f6468a0ba44781b4610525d1af1.tar.xz qemu-47970dfb0a611f6468a0ba44781b4610525d1af1.zip | |
Replication/Blockjobs: Create replication jobs as internal
Bubble up the internal interface to commit and backup jobs, then switch
replication tasks over to using this methodology.
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-4-git-send-email-jsnow@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'qemu-img.c')
| -rw-r--r-- | qemu-img.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qemu-img.c b/qemu-img.c index ac7f40d91a..6949b73ca5 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -933,8 +933,9 @@ static int img_commit(int argc, char **argv) aio_context = bdrv_get_aio_context(bs); aio_context_acquire(aio_context); - commit_active_start("commit", bs, base_bs, 0, BLOCKDEV_ON_ERROR_REPORT, - common_block_job_cb, &cbi, &local_err, false); + commit_active_start("commit", bs, base_bs, BLOCK_JOB_DEFAULT, 0, + BLOCKDEV_ON_ERROR_REPORT, common_block_job_cb, &cbi, + &local_err, false); aio_context_release(aio_context); if (local_err) { goto done; |
