]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups/cgfsng: remove is_lxcfs()
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 1 Nov 2017 10:13:18 +0000 (11:13 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 9 Nov 2017 00:23:56 +0000 (01:23 +0100)
We don't need to parse fuse.lxcfs entries.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 9427a9a5f58a997b2637a4aada8fff78b9e5926e..1d0f7b39ee60309fa3809bbb85d804e56dc867d9 100644 (file)
@@ -733,15 +733,6 @@ static bool all_controllers_found(void)
        return true;
 }
 
-/* Return true if the fs type is fuse.lxcfs */
-static bool is_lxcfs(const char *line)
-{
-       char *p = strstr(line, " - ");
-       if (!p)
-               return false;
-       return strncmp(p, " - fuse.lxcfs ", 14) == 0;
-}
-
 /*
  * Get the controllers from a mountinfo line
  * There are other ways we could get this info.  For lxcfs, field 3
@@ -1082,7 +1073,7 @@ static bool parse_hierarchies(void)
                bool is_cgroup_v2, writeable;
 
                is_cgroup_v2 = is_cgroupfs_v2(line);
-               if (!is_lxcfs(line) && !is_cgroupfs_v1(line) && !is_cgroup_v2)
+               if (!is_cgroupfs_v1(line) && !is_cgroup_v2)
                        continue;
 
                controller_list = get_controllers(klist, nlist, line);