Re: [libvirt] [PATCH V2] blockjob: Fix error checking of blockjob status

2018-01-04 Thread Eric Blake
On 01/04/2018 10:12 AM, Jie Wang wrote: > offset and len can also be equal to 0 on failed if blockjob return > status:"BLOCK_JOB_COMPLETED" with error:"File descriptor in bad state", > so it's better to make our decision based on whether 'error' is non-NULL. > --- > src/qemu/qemu_monitor_json.c |

[libvirt] [PATCH V2] blockjob: Fix error checking of blockjob status

2018-01-04 Thread Jie Wang
offset and len can also be equal to 0 on failed if blockjob return status:"BLOCK_JOB_COMPLETED" with error:"File descriptor in bad state", so it's better to make our decision based on whether 'error' is non-NULL. --- src/qemu/qemu_monitor_json.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions