]> git.ipfire.org Git - thirdparty/qemu.git/commit
blockjob: expose error string via query
authorJohn Snow <jsnow@redhat.com>
Tue, 8 May 2018 23:36:59 +0000 (19:36 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 18 Jul 2018 15:35:53 +0000 (10:35 -0500)
commit0779afdc8979e86d9c9723c898249e4571df45fe
treeab5ad9ab8e3efe41a489babff3eee0f6d0d5842d
parent4a67f4a9536582e066639387b6610f0b98b195c8
blockjob: expose error string via query

When we've reached the concluded state, we need to expose the error
state if applicable. Add the new field.

This should be sufficient for determining if a job completed
successfully or not after concluding; if we want to discriminate
based on how it failed more mechanically, we can always add an
explicit return code enumeration later.

I didn't bother to make it only show up if we are in the concluded
state; I don't think it's necessary.

Cc: qemu-stable@nongnu.org
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit ab9ba614556ac5b0f8d96b99e0dba19f1e28d6c2)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
blockjob.c
qapi/block-core.json