runc/libcontainer/cgroups/fs2
Kir Kolyshkin c3b0b13fe9 cgroups/fs2: don't always parse /proc/self/cgroup
Function defaultPath always parses /proc/self/cgroup, but
the resulting value is not always used.

Avoid unnecessary reading/parsing by moving the code
to just before its use.

Modify the test case accordingly.

[v2: test: use UnifiedMountpoint, skip test if not on v2]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-04-28 22:16:36 -07:00
..
cpu.go CreateCgroupPath: only enable needed controllers 2020-04-19 16:27:40 -07:00
cpuset.go CreateCgroupPath: only enable needed controllers 2020-04-19 16:27:40 -07:00
create.go fs2: fix cgroup.subtree_control EPERM on rootless + add CI 2020-04-27 13:30:15 +09:00
defaultpath.go cgroups/fs2: don't always parse /proc/self/cgroup 2020-04-28 22:16:36 -07:00
defaultpath_test.go cgroups/fs2: don't always parse /proc/self/cgroup 2020-04-28 22:16:36 -07:00
devices.go cgroupv2: allow to set EnableAllDevices=true 2020-04-22 11:05:36 -07:00
freezer.go cgroup2: split fs2 from fs 2019-12-06 15:42:10 +09:00
fs2.go fs2: fix cgroup.subtree_control EPERM on rootless + add CI 2020-04-27 13:30:15 +09:00
hugetlb.go CreateCgroupPath: only enable needed controllers 2020-04-19 16:27:40 -07:00
io.go CreateCgroupPath: only enable needed controllers 2020-04-19 16:27:40 -07:00
memory.go CreateCgroupPath: only enable needed controllers 2020-04-19 16:27:40 -07:00
pids.go CreateCgroupPath: only enable needed controllers 2020-04-19 16:27:40 -07:00