vircgrouptest: prepare testCgroupDetectMounts for cgroup v2

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2018-09-24 12:28:04 +02:00
parent 9b9c6528a2
commit 9f8d170dab
11 changed files with 12 additions and 0 deletions

View File

@ -8,3 +8,4 @@ blkio /not/really/sys/fs/cgroup
net_cls <null> net_cls <null>
perf_event <null> perf_event <null>
name=systemd <null> name=systemd <null>
unified <null>

View File

@ -8,3 +8,4 @@ blkio /sys/fs/cgroup/blkio
net_cls /sys/fs/cgroup/net_cls net_cls /sys/fs/cgroup/net_cls
perf_event <null> perf_event <null>
name=systemd <null> name=systemd <null>
unified <null>

View File

@ -8,3 +8,4 @@ blkio /sys/fs/cgroup/blkio
net_cls <null> net_cls <null>
perf_event /sys/fs/cgroup/perf_event perf_event /sys/fs/cgroup/perf_event
name=systemd <null> name=systemd <null>
unified <null>

View File

@ -8,3 +8,4 @@ blkio /sys/fs/cgroup/blkio
net_cls /sys/fs/cgroup/net_cls net_cls /sys/fs/cgroup/net_cls
perf_event /sys/fs/cgroup/perf_event perf_event /sys/fs/cgroup/perf_event
name=systemd <null> name=systemd <null>
unified <null>

View File

@ -8,3 +8,4 @@ blkio /sys/fs/cgroup/blkio
net_cls /sys/fs/cgroup/net_cls net_cls /sys/fs/cgroup/net_cls
perf_event /sys/fs/cgroup/perf_event perf_event /sys/fs/cgroup/perf_event
name=systemd /sys/fs/cgroup/systemd name=systemd /sys/fs/cgroup/systemd
unified <null>

View File

@ -8,3 +8,4 @@ blkio /sys/fs/cgroup/blkio
net_cls /sys/fs/cgroup/net_cls,net_prio net_cls /sys/fs/cgroup/net_cls,net_prio
perf_event /sys/fs/cgroup/perf_event perf_event /sys/fs/cgroup/perf_event
name=systemd /sys/fs/cgroup/systemd name=systemd /sys/fs/cgroup/systemd
unified <null>

View File

@ -8,3 +8,4 @@ blkio /sys/fs/cgroup/blkio
net_cls <null> net_cls <null>
perf_event /sys/fs/cgroup/perf_event perf_event /sys/fs/cgroup/perf_event
name=systemd <null> name=systemd <null>
unified <null>

View File

@ -8,3 +8,4 @@ blkio /cgroup/blkio
net_cls /cgroup/net_cls net_cls /cgroup/net_cls
perf_event <null> perf_event <null>
name=systemd <null> name=systemd <null>
unified <null>

View File

@ -8,3 +8,4 @@ blkio /sys/fs/cgroup/blkio
net_cls /sys/fs/cgroup/net_cls net_cls /sys/fs/cgroup/net_cls
perf_event /sys/fs/cgroup/perf_event perf_event /sys/fs/cgroup/perf_event
name=systemd /sys/fs/cgroup/systemd name=systemd /sys/fs/cgroup/systemd
unified <null>

View File

@ -8,3 +8,4 @@ blkio /sys/fs/cgroup/blkio
net_cls /sys/fs/cgroup/net_cls net_cls /sys/fs/cgroup/net_cls
perf_event /sys/fs/cgroup/perf_event perf_event /sys/fs/cgroup/perf_event
name=systemd /sys/fs/cgroup/systemd name=systemd /sys/fs/cgroup/systemd
unified <null>

View File

@ -175,6 +175,8 @@ testCgroupDetectMounts(const void *args)
virCgroupControllerTypeToString(i), virCgroupControllerTypeToString(i),
NULLSTR(group->legacy[i].mountPoint)); NULLSTR(group->legacy[i].mountPoint));
} }
virBufferAsprintf(&buf, "%-12s %s\n",
"unified", NULLSTR(group->unified.mountPoint));
if (virBufferCheckError(&buf) < 0) if (virBufferCheckError(&buf) < 0)
goto cleanup; goto cleanup;