From a7896f583645513faa931b4d3a67fac85016be94 Mon Sep 17 00:00:00 2001 From: Long Wang Date: Wed, 12 Jul 2017 15:34:36 +0800 Subject: [PATCH] cgfsng: remove the old workdaround code Signed-off-by: Long Wang --- src/lxc/cgroups/cgfsng.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index df7615c60..1192d575f 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1821,13 +1821,6 @@ static char *build_full_cgpath_from_monitorpath(struct hierarchy *h, const char *inpath, const char *filename) { - /* - * XXX Remove this case after 2.0 release. It's for dealing with - * containers spawned under the old buggy cgfsng which wasn't around - * for long. - */ - if (strncmp(inpath, "/sys/fs/cgroup/", 15) == 0) - return must_make_path(inpath, filename, NULL); return must_make_path(h->mountpoint, inpath, filename, NULL); } -- 2.47.2