The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/1568

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
This should save some debugging time.  Most often the user didn't *want* a non-standard setup, and it limits the use of unprivileged containers.

Signed-off-by: Serge Hallyn <[email protected]>
From 5059aae90584d7d80b3494088920da4ba73e2b2a Mon Sep 17 00:00:00 2001
From: Serge Hallyn <[email protected]>
Date: Wed, 17 May 2017 09:20:59 -0500
Subject: [PATCH] cgfsng: log when we defer to cgfsng

Signed-off-by: Serge Hallyn <[email protected]>
---
 src/lxc/cgroups/cgfsng.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c
index ebd548b..7c62722 100644
--- a/src/lxc/cgroups/cgfsng.c
+++ b/src/lxc/cgroups/cgfsng.c
@@ -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;
 }
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to