diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-25 04:58:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-25 04:58:24 +0200 |
commit | 77d5f105bf63330350c7bddacdeda914f945590f (patch) | |
tree | 3db8a21164833c8c0c48ffe6ee7820858d3d19b9 /src/cgroup-util.c | |
parent | ee2083d5cacd8b6065b6a38d284f3e28961775a4 (diff) |
cgroup: mount cgroup file systems to /sys/fs/cgroup instead of /cgroup
This requires the /sys/fs/cgroup to exist. Current git kernels have
this, released kernels need a backport of a single patch.
Diffstat (limited to 'src/cgroup-util.c')
-rw-r--r-- | src/cgroup-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgroup-util.c b/src/cgroup-util.c index 07e4e64fef..6abb6b549a 100644 --- a/src/cgroup-util.c +++ b/src/cgroup-util.c @@ -481,7 +481,7 @@ int cg_get_path(const char *controller, const char *path, const char *suffix, ch else p = controller; - if (asprintf(&mp, "/cgroup/%s", p) < 0) + if (asprintf(&mp, "/sys/fs/cgroup/%s", p) < 0) return -ENOMEM; if ((r = path_is_mount_point(mp)) <= 0) { @@ -927,7 +927,7 @@ int cg_fix_path(const char *path, char **result) { /* First check if it already is a filesystem path */ if (path_is_absolute(path) && - path_startswith(path, "/cgroup") && + path_startswith(path, "/sys/fs/cgroup") && access(path, F_OK) >= 0) { if (!(t = strdup(path))) |