render / rpms / libvirt

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