-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2: ToggleControllers() should toggle ancestors of c.path, not c.path itself #121
Comments
Aside from this, |
14 tasks
Noooo, map[string]error is a horrible ux, there are better ways to handle this |
like this then? // toggleError implements error interface
type toggleError struct {
failed map[string]struct{}
}
func (e toggleError) Error() string{
}
func (e toggleError) FailedControllers() map[string]struct{}{
} |
AkihiroSuda
added a commit
to AkihiroSuda/containerd-cgroups
that referenced
this issue
Nov 15, 2019
Fix containerd#121 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
AkihiroSuda
added a commit
to AkihiroSuda/containerd-cgroups
that referenced
this issue
Nov 15, 2019
Fix containerd#121 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
AkihiroSuda
added a commit
to AkihiroSuda/containerd-cgroups
that referenced
this issue
Nov 15, 2019
Fix containerd#121 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
AkihiroSuda
added a commit
to AkihiroSuda/containerd-cgroups
that referenced
this issue
Nov 18, 2019
Fix containerd#121 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cgroups/v2/manager.go
Line 192 in e56683d
ToggleControllers()
should toggle ancestors ofc.path
, notc.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.The text was updated successfully, but these errors were encountered: