render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
9119d9
From 88213ead58c8367ca3fa921c3a154e846fade51c Mon Sep 17 00:00:00 2001
9119d9
Message-Id: <88213ead58c8367ca3fa921c3a154e846fade51c@dist-git>
9119d9
From: Peter Krempa <pkrempa@redhat.com>
9119d9
Date: Wed, 1 Oct 2014 11:20:19 +0200
9119d9
Subject: [PATCH] lib: Document that virConnectGetAllDomainStats may omit some
9119d9
 stats fields
9119d9
9119d9
https://bugzilla.redhat.com/show_bug.cgi?id=1113116
9119d9
9119d9
Add a note to make the users aware that some stats groups or fields may
9119d9
be missing in certain cases.
9119d9
9119d9
(cherry picked from commit a6500ee4f2f0db3fb8c408075b7dbcd77f7669d2)
9119d9
9119d9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9119d9
---
9119d9
 src/libvirt.c | 5 +++++
9119d9
 1 file changed, 5 insertions(+)
9119d9
9119d9
diff --git a/src/libvirt.c b/src/libvirt.c
9119d9
index d6aee93..af89aa2 100644
9119d9
--- a/src/libvirt.c
9119d9
+++ b/src/libvirt.c
9119d9
@@ -21616,6 +21616,11 @@ virConnectGetDomainCapabilities(virConnectPtr conn,
9119d9
  * "block.<num>.errors" - Xen only: the 'oo_req' value as
9119d9
  *                        unsigned long long.
9119d9
  *
9119d9
+ * Note that entire stats groups or individual stat fields may be missing from
9119d9
+ * the output in case they are not supported by the given hypervisor, are not
9119d9
+ * applicable for the current state of the guest domain, or their retrieval
9119d9
+ * was not successful.
9119d9
+ *
9119d9
  * Using 0 for @stats returns all stats groups supported by the given
9119d9
  * hypervisor.
9119d9
  *
9119d9
-- 
9119d9
2.1.2
9119d9