cgfsng: all_controllers_found()

parent f57ac67f
...@@ -826,14 +826,14 @@ static bool controller_found(struct hierarchy **hlist, char *entry) ...@@ -826,14 +826,14 @@ static bool controller_found(struct hierarchy **hlist, char *entry)
return false; return false;
} }
/* /* Return true if all of the controllers which we require have been found. The
* Return true if all of the controllers which we require have been found. * required list is freezer and anything in lxc.cgroup.use.
* The required list is freezer and anything in * lxc.cgroup.use.
*/ */
static bool all_controllers_found(void) static bool all_controllers_found(void)
{ {
char *p, *saveptr = NULL; char *p;
struct hierarchy ** hlist = hierarchies; char *saveptr = NULL;
struct hierarchy **hlist = hierarchies;
if (!controller_found(hlist, "freezer")) { if (!controller_found(hlist, "freezer")) {
CGFSNG_DEBUG("No freezer controller mountpoint found\n"); CGFSNG_DEBUG("No freezer controller mountpoint found\n");
...@@ -844,7 +844,7 @@ static bool all_controllers_found(void) ...@@ -844,7 +844,7 @@ static bool all_controllers_found(void)
return true; return true;
for (p = strtok_r(cgroup_use, ",", &saveptr); p; for (p = strtok_r(cgroup_use, ",", &saveptr); p;
p = strtok_r(NULL, ",", &saveptr)) { p = strtok_r(NULL, ",", &saveptr)) {
if (!controller_found(hlist, p)) { if (!controller_found(hlist, p)) {
CGFSNG_DEBUG("No %s controller mountpoint found\n", p); CGFSNG_DEBUG("No %s controller mountpoint found\n", p);
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment