-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sandbox/cgroup: improve lookup for memory controller support with v2 (#…
…14766) * sandbox/cgroup: improve lookup for memory controller support with v2 With cgroup v2, we should not be looking at /proc/cgroups looking for memory controller, but rather at the list of availble controllers at the root of the hierarchy. Signed-off-by: Maciej Borzecki <[email protected]> * sandbox/cgroup: scan with word splitting Signed-off-by: Maciej Borzecki <[email protected]> * sandbox/cgroup: tweak errors and comments Signed-off-by: Maciej Borzecki <[email protected]> * tests/core/mem-cgroup-disabled: account for changed error message Signed-off-by: Maciej Borzecki <[email protected]> * sandbox/cgroup: use specific error value, wrap errors Signed-off-by: Maciej Borzecki <[email protected]> --------- Signed-off-by: Maciej Borzecki <[email protected]>
- Loading branch information
Showing
4 changed files
with
142 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters