render / rpms / libvirt

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