Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Created May 4, 2018 13:24
Show Gist options
  • Save ianblenke/cff480058af4adcc39609b86af58ddd6 to your computer and use it in GitHub Desktop.
Save ianblenke/cff480058af4adcc39609b86af58ddd6 to your computer and use it in GitHub Desktop.
cgroup prefix option
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 5ed7fc3..c1cc306 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -1658,6 +1658,10 @@ static int parse_cgroupfs_options(char *data, struct cgroup_sb_opts *opts)
opts->flags |= CGRP_ROOT_SANE_BEHAVIOR;
continue;
}
+ if (!strcmp(token, "prefix")) {
+ opts->flags &= ~CGRP_ROOT_NOPREFIX;
+ continue;
+ }
if (!strcmp(token, "noprefix")) {
opts->flags |= CGRP_ROOT_NOPREFIX;
continue;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment