From: Christian Brauner Date: Sat, 17 Feb 2018 18:25:20 +0000 (+0100) Subject: cgfsng: create_path_for_hierarchy() X-Git-Tag: lxc-2.0.10~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=923049675d1ad880e64f4b7b204aa7f43b57e1a3;p=thirdparty%2Flxc.git cgfsng: create_path_for_hierarchy() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 58d84a322..d15990441 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1715,13 +1715,13 @@ static bool create_path_for_hierarchy(struct hierarchy *h, char *cgname) int ret; h->fullcgpath = must_make_path(h->mountpoint, h->base_cgroup, cgname, NULL); - if (dir_exists(h->fullcgpath)) { /* it must not already exist */ - ERROR("cgroup \"%s\" already existed", h->fullcgpath); + if (dir_exists(h->fullcgpath)) { + ERROR("The cgroup \"%s\" already existed", h->fullcgpath); return false; } if (!cg_legacy_handle_cpuset_hierarchy(h, cgname)) { - ERROR("Failed to handle cgroupfs v1 cpuset controller"); + ERROR("Failed to handle legacy cpuset controller"); return false; }