qemu-img: Set the ID of the block job in img_commit()
commita5d5a3bdbd4bd2ffb27f825dd8a39e1fbaf11ad3
authorAlberto Garcia <berto@igalia.com>
Tue, 5 Jul 2016 14:29:01 +0000 (5 17:29 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 13 Jul 2016 11:26:02 +0000 (13 13:26 +0200)
treef20a62135830444777adf07f270db4adf2dc9a15
parentfd62c609edb32ddaafbe84c466dd21603577a46d
qemu-img: Set the ID of the block job in img_commit()

img_commit() creates a block job without an ID. This is no longer
allowed now that we require it to be unique and well-formed. We were
solving this by having a fallback in block_job_create(), but now that
we extended the API of commit_active_start() we can finally set an
explicit ID and revert that change.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockjob.c
qemu-img.c