Skip to content

v2: ToggleControllers() should toggle ancestors of c.path, not c.path itself #121

@AkihiroSuda

Description

@AkihiroSuda

func (c *Manager) ToggleControllers(controllers []string, t ControllerToggle) error {

ToggleControllers() should toggle ancestors of c.path, not c.path itself.

e.g. when c.path is like /foo/bar/baz, the following files need to be written:

  • /sys/fs/cgroup/foo/cgroup.subtree_control
  • /sys/fs/cgroup/foo/bar/cgroup.subtree_control

Note that /sys/fs/cgroup/foo/bar/baz/cgroup.subtree_control does not need to be written.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions