Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/nfsd Increase userspace (/usr/sbin/nfsd) limit on n...
details: https://anonhg.NetBSD.org/src/rev/d4cb7115800b
branches: trunk
changeset: 556019:d4cb7115800b
user: jonathan <jonathan%NetBSD.org@localhost>
date: Sat Dec 06 03:01:16 2003 +0000
description:
Increase userspace (/usr/sbin/nfsd) limit on nfsd count from 20 to 1024.
Jason Thorpe suggests removing the limit altogether; anyone who needs
more than 1024 nfsds can still do "nfsd -n 1024" multiple times, and
this provides _some_ saftey-net against nfsd (issued by root) from
eating all the avaiable process slots.
diffstat:
usr.sbin/nfsd/nfsd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 69bd97c1a779 -r d4cb7115800b usr.sbin/nfsd/nfsd.c
--- a/usr.sbin/nfsd/nfsd.c Sat Dec 06 02:52:29 2003 +0000
+++ b/usr.sbin/nfsd/nfsd.c Sat Dec 06 03:01:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfsd.c,v 1.43 2003/08/07 11:25:37 agc Exp $ */
+/* $NetBSD: nfsd.c,v 1.44 2003/12/06 03:01:16 jonathan Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
#else
-__RCSID("$NetBSD: nfsd.c,v 1.43 2003/08/07 11:25:37 agc Exp $");
+__RCSID("$NetBSD: nfsd.c,v 1.44 2003/12/06 03:01:16 jonathan Exp $");
#endif
#endif /* not lint */
@@ -160,7 +160,7 @@
char *cp, **cpp;
#endif
-#define MAXNFSDCNT 20
+#define MAXNFSDCNT 1024
#define DEFNFSDCNT 4
nfsdcnt = DEFNFSDCNT;
cltpflag = reregister = tcpflag = tp4cnt = tp4flag = tpipcnt = 0;
Home |
Main Index |
Thread Index |
Old Index