Re: [libvirt] [PATCH] qemu_hotplug: use VIR_ERR_NO_DEVICE when target detaching device is not found

2018-01-04 Thread John Ferlan
On 12/20/2017 04:29 AM, Chen Hanxiao wrote: > From: Chen Hanxiao > > We used VIR_ERR_OPERATION_FAILED when target detaching device > is not found. > That error code VIR_ERR_OPERATION_FAILED is widely used, > so the tools powered by libvirt, such as nova, > can't catch the exact errors from libv

[libvirt] [PATCH] qemu_hotplug: use VIR_ERR_NO_DEVICE when target detaching device is not found

2017-12-20 Thread Chen Hanxiao
From: Chen Hanxiao We used VIR_ERR_OPERATION_FAILED when target detaching device is not found. That error code VIR_ERR_OPERATION_FAILED is widely used, so the tools powered by libvirt, such as nova, can't catch the exact errors from libvirt. This patch uses VIR_ERR_NO_DEVICE instead. Signed-off-