]> git.ipfire.org Git - thirdparty/util-linux.git/commit
ipcs: make shmall overflow a bit less worse
authorRuediger Meier <ruediger.meier@ga-group.nl>
Fri, 31 Mar 2017 15:16:07 +0000 (17:16 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Mon, 3 Apr 2017 07:34:38 +0000 (09:34 +0200)
commit61e29ab44fc97bcf86c216ac66e3163739170198
treeb49d790a1741c3c8fa2191a63693cf8d62fd4d97
parenteff2c9a42621b4cba81a81bc78f431b00e8a2968
ipcs: make shmall overflow a bit less worse

Still no large integer support but on overflow we print now
the largest possible value, maybe even the largest one which
makes sense at all.

So on x86_64 systems we'll see now:
$ echo "4503599627370496" > /proc/sys/kernel/shmall
$ ipcs -m -l | grep "max total"
max total shared memory (kbytes) = 18014398509481980

rather than this:
$ ipcs -m -l | grep "max total"
max total shared memory (kbytes) = 0

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
sys-utils/ipcs.c
tests/ts/ipcs/functions.sh
tests/ts/ipcs/limits2