In case we have devices hierarchies mounted in named cgroup or together with other hierarchy regexp parse will fail. So after "devices" and before ":" can be name of cgroup or other hierarchies names. E.g.: 1) remount cgroups: umount /sys/fs/cgroup/devices mkdir /sys/fs/cgroup/named_cgroup mount -n -t cgroup -o devices,name=named_cgroup cgroup /sys/fs/cgroup/named_cgroup 2) add some task to nested device cgroup and check ps output mkdir /sys/fs/cgroup/named_cgroup/test.slice sleep 1000 & [1] 22734 echo 22734 > /sys/fs/cgroup/named_cgroup/test.slice/tasks ps -ao pid,cgroup | grep 22734 22734 14:devices,name=named_cgroup:/test.slice,1:name=systemd:/user.slice/user-1000.slice/session-1.scope Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com> |
||
---|---|---|
.. | ||
container_test.go | ||
container.go | ||
machine.go | ||
manager_mock.go | ||
manager_test.go | ||
manager.go |