]> git.proxmox.com Git - mirror_qemu.git/commit
jobs: canonize Error object
authorJohn Snow <jsnow@redhat.com>
Thu, 30 Aug 2018 01:57:27 +0000 (21:57 -0400)
committerMax Reitz <mreitz@redhat.com>
Fri, 31 Aug 2018 14:28:33 +0000 (16:28 +0200)
commit3d1f8b07a4c241f81949eff507d9f3a8fd73b87b
tree7331c18b0a63be6b97cb783320d9cbff485f7f14
parentf67432a2019caf05b57a146bf45c1024a5cb608e
jobs: canonize Error object

Jobs presently use both an Error object in the case of the create job,
and char strings in the case of generic errors elsewhere.

Unify the two paths as just j->err, and remove the extra argument from
job_completed. The integer error code for job_completed is kept for now,
to be removed shortly in a separate patch.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20180830015734.19765-3-jsnow@redhat.com
[mreitz: Dropped a superfluous g_strdup()]
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/backup.c
block/commit.c
block/create.c
block/mirror.c
block/stream.c
include/qemu/job.h
job-qmp.c
job.c
tests/test-bdrv-drain.c
tests/test-blockjob-txn.c
tests/test-blockjob.c