On Tue, Sep 18, 2018 at 05:45:44PM +0200, Pavel Hrdina wrote:
Signed-off-by: Pavel Hrdina <phrd...@redhat.com>
---
src/util/vircgroup.c        | 83 ++--------------------------------
src/util/vircgroupbackend.h |  9 ++++
src/util/vircgrouppriv.h    |  2 +
src/util/vircgroupv1.c      | 89 +++++++++++++++++++++++++++++++++++++
4 files changed, 104 insertions(+), 79 deletions(-)


diff --git a/src/util/vircgroupv1.c b/src/util/vircgroupv1.c
index 4b9c03830c..206318d436 100644
--- a/src/util/vircgroupv1.c
+++ b/src/util/vircgroupv1.c
@@ -1049,6 +1049,94 @@ virCgroupV1GetBlkioIoServiced(virCgroupPtr group,
}


+static int
+virCgroupV1GetBlkioIoDeviceServiced(virCgroupPtr group,
+                                    const char *path,
+                                    long long *bytes_read,
+                                    long long *bytes_write,
+                                    long long *requests_read,
+                                    long long *requests_write)
+{
+    VIR_AUTOFREE(char *) str1 = NULL;
+    VIR_AUTOFREE(char *) str2 = NULL;
+    VIR_AUTOFREE(char *) str3 = NULL;

Just like in the last patch. Instead of:
+    char *p1, *p2;

use:

-    char *p1 = NULL;
-    char *p2 = NULL;

+    size_t i;
+
+    const char *value_names[] = {
+        "Read ",
+        "Write "
+    };

Reviewed-by: Ján Tomko <jto...@redhat.com>

Jano

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to