]> git.ipfire.org Git - thirdparty/libvirt.git/commit
blockjob: Fix a error checking of blockjob status in some case
authorJie Wang <wangjie88@huawei.com>
Fri, 19 Jan 2018 14:03:05 +0000 (22:03 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 1 Feb 2018 14:48:17 +0000 (09:48 -0500)
commit75fd48b945eee56b8e68534bd54363dbe261484f
tree9265a26fc636cafaf581a58ea8639aeca3744ee2
parent10e1d5e276798a06218dee26e56811252cb99723
blockjob: Fix a error checking of blockjob status in some case

Commit id 'bc444666f' added a check if the returned data
buffer had an error, but failed to adjust the event from
VIR_DOMAIN_BLOCK_JOB_COMPLETED to VIR_DOMAIN_BLOCK_JOB_FAILED
in order to propagate an error such as "File descriptor in bad
state" that may be returned from QEMU when both @offset and
@len are set to 0 such as is the case when performing an async
block job read on a read only filesystem.

Signed-off-by: Jie Wang <wangjie88@huawei.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_monitor_json.c