From: Tom Hromatka Date: Mon, 18 Nov 2019 16:32:08 +0000 (+0000) Subject: api: Increase MAX_MNT_ELEMENTS to 16 X-Git-Tag: v0.42.rc1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdd4468fe3781bb51d30e3b23848cc00081122dc;p=thirdparty%2Flibcgroup.git api: Increase MAX_MNT_ELEMENTS to 16 Newer kernels now support many cgroup controllers; thus we need to increase the number of elements we can safely read from /proc/{pid}/cgroup. This commit increases the number of elements from 8 to 16. Signed-off-by: Tom Hromatka --- diff --git a/src/libcgroup-internal.h b/src/libcgroup-internal.h index 37c1f459..3ee8c1ba 100644 --- a/src/libcgroup-internal.h +++ b/src/libcgroup-internal.h @@ -28,7 +28,7 @@ __BEGIN_DECLS #include /* Maximum number of mount points/controllers */ -#define MAX_MNT_ELEMENTS 8 +#define MAX_MNT_ELEMENTS 16 /* Estimated number of groups created */ #define MAX_GROUP_ELEMENTS 128