[lxc-devel] [lxc/master] cgfsng: remove the old workdaround code
0x0916 on Github
lxc-bot at linuxcontainers.org
Wed Jul 12 07:36:36 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 343 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170712/2fe30058/attachment.bin>
-------------- next part --------------
From a7896f583645513faa931b4d3a67fac85016be94 Mon Sep 17 00:00:00 2001
From: Long Wang <w at laoqinren.net>
Date: Wed, 12 Jul 2017 15:34:36 +0800
Subject: [PATCH] cgfsng: remove the old workdaround code
Signed-off-by: Long Wang <w at laoqinren.net>
---
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);
}
More information about the lxc-devel
mailing list