982648
From 7f5678ed68f81e6e4a308518aa985af2d3afee04 Mon Sep 17 00:00:00 2001
982648
Message-Id: <7f5678ed68f81e6e4a308518aa985af2d3afee04@dist-git>
982648
From: Michal Privoznik <mprivozn@redhat.com>
982648
Date: Wed, 4 Jul 2018 14:51:18 +0200
982648
Subject: [PATCH] src: Mention DEVICE_REMOVAL_FAILED event in
982648
 virDomainDetachDeviceAlias docs
982648
982648
https://bugzilla.redhat.com/show_bug.cgi?id=1598087
982648
982648
We are mentioning the positive outcome of the function and not
982648
the case when live detaching a device is denied and event is
982648
issued.
982648
982648
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
982648
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
982648
(cherry picked from commit 7152b12c45f69861f41f87916e4b950d2c1ff9fd)
982648
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
982648
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
982648
---
982648
 src/libvirt-domain.c | 4 +++-
982648
 1 file changed, 3 insertions(+), 1 deletion(-)
982648
982648
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
982648
index c71f2e6877..ab7266dc19 100644
982648
--- a/src/libvirt-domain.c
982648
+++ b/src/libvirt-domain.c
982648
@@ -8365,7 +8365,9 @@ virDomainUpdateDeviceFlags(virDomainPtr domain,
982648
  * asynchronous - it returns immediately after sending the detach
982648
  * request to the hypervisor. It's caller's responsibility to
982648
  * wait for VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED event to signal
982648
- * actual device removal.
982648
+ * actual device removal or for
982648
+ * VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED to signal rejected
982648
+ * device removal.
982648
  *
982648
  * Returns 0 in case of success, -1 in case of failure.
982648
  */
982648
-- 
982648
2.18.0
982648