c3b0b13fe9
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> |
||
---|---|---|
.. | ||
cpu.go | ||
cpuset.go | ||
create.go | ||
defaultpath.go | ||
defaultpath_test.go | ||
devices.go | ||
freezer.go | ||
fs2.go | ||
hugetlb.go | ||
io.go | ||
memory.go | ||
pids.go |