]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgfsng: log when we defer to cgfsng 1568/head
authorSerge Hallyn <serge@hallyn.com>
Wed, 17 May 2017 14:20:59 +0000 (09:20 -0500)
committerSerge Hallyn <serge@hallyn.com>
Wed, 17 May 2017 14:23:38 +0000 (09:23 -0500)
Signed-off-by: Serge Hallyn <serge@hallyn.com>
src/lxc/cgroups/cgfsng.c

index ebd548b9f8e7d7cb50558c7d083480cfeaec396c..7c627229ec4fc63459536dd515923e2a5a376e81 100644 (file)
@@ -783,8 +783,10 @@ static char **get_controllers(char **klist, char **nlist, char *line)
                return NULL;
        /* note - if we change how mountinfo works, then our caller
         * will need to verify /sys/fs/cgroup/ in this field */
-       if (strncmp(p, "/sys/fs/cgroup/", 15) != 0)
+       if (strncmp(p, "/sys/fs/cgroup/", 15) != 0) {
+               INFO("cgfsng: found hierarchy not under /sys/fs/cgroup: \"%s\"", p);
                return NULL;
+       }
        p += 15;
        p2 = strchr(p, ' ');
        if (!p2) {
@@ -1136,8 +1138,10 @@ static bool parse_hierarchies(void)
        /* verify that all controllers in cgroup.use and all crucial
         * controllers are accounted for
         */
-       if (!all_controllers_found())
+       if (!all_controllers_found()) {
+               INFO("cgfsng: not all controllers were find, deferring to cgfs driver");
                return false;
+       }
 
        return true;
 }