]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Increase maximal size of controller values 6/head
authorNikola Forró <nforro@redhat.com>
Thu, 16 Jan 2020 17:43:54 +0000 (18:43 +0100)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 31 Jan 2020 20:59:52 +0000 (20:59 +0000)
commitd0f9d063c95fadfb56429d6a022e414438af19ef
tree28fa2ed16d03ae1d1ceecd27f3b4d211afaff8c2
parentc9b7ada42cb98e9225e200535963518c90b6dfb1
Increase maximal size of controller values

Maximal length of a controller value is determined by CG_VALUE_MAX,
which is equal to 100. That is not sufficient in some cases.

Add new constant CG_CONTROL_VALUE_MAX (to prevent breaking current API)
and set it to 4096, which is usually equal to the amount of bytes that
can be written to a sysctl file directly.

Add warning message about exceeding the limit while parsing
configuration file.

Signed-off-by: Nikola Forró <nforro@redhat.com>
Reviewed-by: Tom Hromatka <tom.hromatka@oracle.com>
src/api.c
src/libcgroup-internal.h
src/tools/cgset.c
src/wrapper.c