render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
c313de
From 541ede1193bfb32f73d76918d755c0f3d403e5ce Mon Sep 17 00:00:00 2001
c313de
Message-Id: <541ede1193bfb32f73d76918d755c0f3d403e5ce@dist-git>
c313de
From: Pavel Hrdina <phrdina@redhat.com>
c313de
Date: Mon, 1 Jul 2019 17:07:57 +0200
c313de
Subject: [PATCH] vircgrouptest: prepare testCgroupDetectMounts for cgroup v2
c313de
MIME-Version: 1.0
c313de
Content-Type: text/plain; charset=UTF-8
c313de
Content-Transfer-Encoding: 8bit
c313de
c313de
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c313de
(cherry picked from commit 9f8d170dab8dc30d4563cb038e5aef393b0d1128)
c313de
c313de
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
c313de
c313de
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c313de
Message-Id: <f9905a25dc85ad266308c81afeeab379ca20a8ba.1561993100.git.phrdina@redhat.com>
c313de
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c313de
---
c313de
 tests/vircgroupdata/all-in-one.parsed     | 1 +
c313de
 tests/vircgroupdata/cgroups1.parsed       | 1 +
c313de
 tests/vircgroupdata/cgroups2.parsed       | 1 +
c313de
 tests/vircgroupdata/cgroups3.parsed       | 1 +
c313de
 tests/vircgroupdata/fedora-18.parsed      | 1 +
c313de
 tests/vircgroupdata/fedora-21.parsed      | 1 +
c313de
 tests/vircgroupdata/kubevirt.parsed       | 1 +
c313de
 tests/vircgroupdata/ovirt-node-6.6.parsed | 1 +
c313de
 tests/vircgroupdata/ovirt-node-7.1.parsed | 1 +
c313de
 tests/vircgroupdata/rhel-7.1.parsed       | 1 +
c313de
 tests/vircgrouptest.c                     | 2 ++
c313de
 11 files changed, 12 insertions(+)
c313de
c313de
diff --git a/tests/vircgroupdata/all-in-one.parsed b/tests/vircgroupdata/all-in-one.parsed
c313de
index d703d08fb9..97c96e8ecd 100644
c313de
--- a/tests/vircgroupdata/all-in-one.parsed
c313de
+++ b/tests/vircgroupdata/all-in-one.parsed
c313de
@@ -8,3 +8,4 @@ blkio        /not/really/sys/fs/cgroup
c313de
 net_cls      <null>
c313de
 perf_event   <null>
c313de
 name=systemd <null>
c313de
+unified      <null>
c313de
diff --git a/tests/vircgroupdata/cgroups1.parsed b/tests/vircgroupdata/cgroups1.parsed
c313de
index b6916f17a1..16431aa006 100644
c313de
--- a/tests/vircgroupdata/cgroups1.parsed
c313de
+++ b/tests/vircgroupdata/cgroups1.parsed
c313de
@@ -8,3 +8,4 @@ blkio        /sys/fs/cgroup/blkio
c313de
 net_cls      /sys/fs/cgroup/net_cls
c313de
 perf_event   <null>
c313de
 name=systemd <null>
c313de
+unified      <null>
c313de
diff --git a/tests/vircgroupdata/cgroups2.parsed b/tests/vircgroupdata/cgroups2.parsed
c313de
index 5eb2bc7bb2..d1bb0dcb7c 100644
c313de
--- a/tests/vircgroupdata/cgroups2.parsed
c313de
+++ b/tests/vircgroupdata/cgroups2.parsed
c313de
@@ -8,3 +8,4 @@ blkio        /sys/fs/cgroup/blkio
c313de
 net_cls      <null>
c313de
 perf_event   /sys/fs/cgroup/perf_event
c313de
 name=systemd <null>
c313de
+unified      <null>
c313de
diff --git a/tests/vircgroupdata/cgroups3.parsed b/tests/vircgroupdata/cgroups3.parsed
c313de
index 2b1f3825c1..44e475c9d2 100644
c313de
--- a/tests/vircgroupdata/cgroups3.parsed
c313de
+++ b/tests/vircgroupdata/cgroups3.parsed
c313de
@@ -8,3 +8,4 @@ blkio        /sys/fs/cgroup/blkio
c313de
 net_cls      /sys/fs/cgroup/net_cls
c313de
 perf_event   /sys/fs/cgroup/perf_event
c313de
 name=systemd <null>
c313de
+unified      <null>
c313de
diff --git a/tests/vircgroupdata/fedora-18.parsed b/tests/vircgroupdata/fedora-18.parsed
c313de
index 8d5ba75c7e..662a38a9e8 100644
c313de
--- a/tests/vircgroupdata/fedora-18.parsed
c313de
+++ b/tests/vircgroupdata/fedora-18.parsed
c313de
@@ -8,3 +8,4 @@ blkio        /sys/fs/cgroup/blkio
c313de
 net_cls      /sys/fs/cgroup/net_cls
c313de
 perf_event   /sys/fs/cgroup/perf_event
c313de
 name=systemd /sys/fs/cgroup/systemd
c313de
+unified      <null>
c313de
diff --git a/tests/vircgroupdata/fedora-21.parsed b/tests/vircgroupdata/fedora-21.parsed
c313de
index 3377af0382..4e447fd7bd 100644
c313de
--- a/tests/vircgroupdata/fedora-21.parsed
c313de
+++ b/tests/vircgroupdata/fedora-21.parsed
c313de
@@ -8,3 +8,4 @@ blkio        /sys/fs/cgroup/blkio
c313de
 net_cls      /sys/fs/cgroup/net_cls,net_prio
c313de
 perf_event   /sys/fs/cgroup/perf_event
c313de
 name=systemd /sys/fs/cgroup/systemd
c313de
+unified      <null>
c313de
diff --git a/tests/vircgroupdata/kubevirt.parsed b/tests/vircgroupdata/kubevirt.parsed
c313de
index 6948707238..bf977f8363 100644
c313de
--- a/tests/vircgroupdata/kubevirt.parsed
c313de
+++ b/tests/vircgroupdata/kubevirt.parsed
c313de
@@ -8,3 +8,4 @@ blkio        /sys/fs/cgroup/blkio
c313de
 net_cls      <null>
c313de
 perf_event   /sys/fs/cgroup/perf_event
c313de
 name=systemd <null>
c313de
+unified      <null>
c313de
diff --git a/tests/vircgroupdata/ovirt-node-6.6.parsed b/tests/vircgroupdata/ovirt-node-6.6.parsed
c313de
index 01bf466be6..9d10813d8c 100644
c313de
--- a/tests/vircgroupdata/ovirt-node-6.6.parsed
c313de
+++ b/tests/vircgroupdata/ovirt-node-6.6.parsed
c313de
@@ -8,3 +8,4 @@ blkio        /cgroup/blkio
c313de
 net_cls      /cgroup/net_cls
c313de
 perf_event   <null>
c313de
 name=systemd <null>
c313de
+unified      <null>
c313de
diff --git a/tests/vircgroupdata/ovirt-node-7.1.parsed b/tests/vircgroupdata/ovirt-node-7.1.parsed
c313de
index 8d5ba75c7e..662a38a9e8 100644
c313de
--- a/tests/vircgroupdata/ovirt-node-7.1.parsed
c313de
+++ b/tests/vircgroupdata/ovirt-node-7.1.parsed
c313de
@@ -8,3 +8,4 @@ blkio        /sys/fs/cgroup/blkio
c313de
 net_cls      /sys/fs/cgroup/net_cls
c313de
 perf_event   /sys/fs/cgroup/perf_event
c313de
 name=systemd /sys/fs/cgroup/systemd
c313de
+unified      <null>
c313de
diff --git a/tests/vircgroupdata/rhel-7.1.parsed b/tests/vircgroupdata/rhel-7.1.parsed
c313de
index 8d5ba75c7e..662a38a9e8 100644
c313de
--- a/tests/vircgroupdata/rhel-7.1.parsed
c313de
+++ b/tests/vircgroupdata/rhel-7.1.parsed
c313de
@@ -8,3 +8,4 @@ blkio        /sys/fs/cgroup/blkio
c313de
 net_cls      /sys/fs/cgroup/net_cls
c313de
 perf_event   /sys/fs/cgroup/perf_event
c313de
 name=systemd /sys/fs/cgroup/systemd
c313de
+unified      <null>
c313de
diff --git a/tests/vircgrouptest.c b/tests/vircgrouptest.c
c313de
index 1837383e61..b66682e6c8 100644
c313de
--- a/tests/vircgrouptest.c
c313de
+++ b/tests/vircgrouptest.c
c313de
@@ -176,6 +176,8 @@ testCgroupDetectMounts(const void *args)
c313de
                           virCgroupControllerTypeToString(i),
c313de
                           NULLSTR(group->legacy[i].mountPoint));
c313de
     }
c313de
+    virBufferAsprintf(&buf, "%-12s %s\n",
c313de
+                      "unified", NULLSTR(group->unified.mountPoint));
c313de
     if (virBufferCheckError(&buf) < 0)
c313de
         goto cleanup;
c313de
 
c313de
-- 
c313de
2.22.0
c313de