]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
api: Increase MAX_MNT_ELEMENTS to 16
authorTom Hromatka <tom.hromatka@oracle.com>
Mon, 18 Nov 2019 16:32:08 +0000 (16:32 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 12 Dec 2019 22:10:28 +0000 (15:10 -0700)
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 <tom.hromatka@oracle.com>
src/libcgroup-internal.h

index 37c1f4592865c39ec902783ba66b896056ad3d50..3ee8c1baa89dfd40018351b63af74fd233f76559 100644 (file)
@@ -28,7 +28,7 @@ __BEGIN_DECLS
 #include <setjmp.h>
 
 /* 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