From: Christian Brauner Date: Sat, 17 Feb 2018 18:25:20 +0000 (+0100) Subject: cgfsng: create_path_for_hierarchy() X-Git-Tag: lxc-3.0.0.beta1~22^2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b4205e388d4ae7c7088bd7bb4d722067b328cb8;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 bedaeb33d..8bb717fff 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1734,13 +1734,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; }