[libvirt] [PATCH v2 0/2] qemu_hotplug: introduce VIR_ERR_DEVICE_MISSING for failing to find the desired device

Chen Hanxiao posted 2 patches 6 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180105102808.31520-1-chen_han_xiao@126.com
include/libvirt/virterror.h |  1 +
src/libvirt_private.syms    |  2 ++
src/qemu/qemu_hotplug.c     | 54 +++++++++++++++++++++++++++++----------------
src/util/virerror.c         |  6 +++++
4 files changed, 44 insertions(+), 19 deletions(-)
[libvirt] [PATCH v2 0/2] qemu_hotplug: introduce VIR_ERR_DEVICE_MISSING for failing to find the desired device
Posted by Chen Hanxiao 6 years, 2 months ago
We used VIR_ERR_OPERATION_INVALID for failing to find the desired
device.
But this error code is widely used.
This brings troubles to the project(i.e nova) powered by libvirt,
they had to analyze error messages to find out what
had happened.

Chen Hanxiao (2):
  qemu_hotplug: more proper error messages when target detaching device
    is not found
  qemu_hotplug: introduce VIR_ERR_DEVICE_MISSING for failing to find
    desired device

 include/libvirt/virterror.h |  1 +
 src/libvirt_private.syms    |  2 ++
 src/qemu/qemu_hotplug.c     | 54 +++++++++++++++++++++++++++++----------------
 src/util/virerror.c         |  6 +++++
 4 files changed, 44 insertions(+), 19 deletions(-)

-- 
2.14.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list