summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-12-14 04:01:08 +0000
committerdillon <dillon@FreeBSD.org>2001-12-14 04:01:08 +0000
commit62f062ea62d7132dd74dff92996a3ad45f369b28 (patch)
tree50f6416962a277ae29ca2c039b0258dbdab38095
parenta552c60a9b354c4f2ab6714343821aef760152d6 (diff)
downloadFreeBSD-src-62f062ea62d7132dd74dff92996a3ad45f369b28.zip
FreeBSD-src-62f062ea62d7132dd74dff92996a3ad45f369b28.tar.gz
Too many people are compiling kernels with maxusers set to 0 without the new
config. Hack the kernel to force auto-sizing if the old config is used.
-rw-r--r--sys/kern/subr_param.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index 4d47f0f..e6d1498 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -133,7 +133,7 @@ init_param2(int physpages)
{
/* Base parameters */
- if ((maxusers = MAXUSERS) == 0) {
+ if ((maxusers = MAXUSERS) == 0 || maxusers == 8) {
maxusers = physpages / (1024 * 1024 / PAGE_SIZE);
if (maxusers < 32)
maxusers = 32;
OpenPOWER on IntegriCloud