]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_hotplug: Report VIR_ERR_DEVICE_MISSING when device is not found
authorLee Yarwood <lyarwood@redhat.com>
Mon, 14 Jun 2021 10:18:37 +0000 (11:18 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 16 Jun 2021 11:01:36 +0000 (13:01 +0200)
commitb722f36e92f11a6a062fe6a977ace7b611533ad7
treebde8c2ff796b00cb276cc9ab3232ef85bf1e23f9
parent16c43b2d49fd622aa7b3a8f9e353050d414b0674
qemu_hotplug: Report VIR_ERR_DEVICE_MISSING when device is not found

126db34a81bc9f9f9710408f88cceaa1e34bbbd7 had previously switched various
flows over to this from VIR_ERR_OPERATION_FAILED.

This change simply does the same for qemuDomainDetachPrepDisk,
qemuDomainDetachPrepInput and qemuDomainDetachPrepVsock to allow
management apps to centralise their error handling on just
VIR_ERR_DEVICE_MISSING for missing devices during a detach.

Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_hotplug.c