render / rpms / libvirt

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