]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgfsng: cg_is_pure_unified()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 18:20:54 +0000 (19:20 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 18:20:54 +0000 (19:20 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 7f6036b8784f37a0943c0ce667fa18e978a32b50..dd759a2b4632460a8dbfbf76fc1f786ac8743673 100644 (file)
@@ -1344,19 +1344,20 @@ static bool cg_hybrid_init(void)
        return true;
 }
 
-static int cg_is_pure_unified(void) {
+static int cg_is_pure_unified(void)
+{
 
        int ret;
-        struct statfs fs;
+       struct statfs fs;
 
-        ret = statfs("/sys/fs/cgroup", &fs);
-        if (ret < 0)
-                return -ENOMEDIUM;
+       ret = statfs("/sys/fs/cgroup", &fs);
+       if (ret < 0)
+               return -ENOMEDIUM;
 
-        if (is_fs_type(&fs, CGROUP2_SUPER_MAGIC))
+       if (is_fs_type(&fs, CGROUP2_SUPER_MAGIC))
                return CGROUP2_SUPER_MAGIC;
 
-        return 0;
+       return 0;
 }
 
 /* Get current cgroup from /proc/self/cgroup for the cgroupfs v2 hierarchy. */