summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2012-03-16 09:34:43 -0400
committerSteve Dickson <steved@redhat.com>2012-03-16 11:00:15 -0400
commit5397edac120350bd5fd8284819c1a900cb41546c (patch)
tree6a1a2bf967e01e0f46f147a6b1eec92e7d63abb0
parent3ce15aeaa66a2f523c6fa92bfe818734bdedfcea (diff)
downloadnfs-utils-5397edac120350bd5fd8284819c1a900cb41546c.tar.gz
nfs-utils-5397edac120350bd5fd8284819c1a900cb41546c.tar.xz
nfs-utils-5397edac120350bd5fd8284819c1a900cb41546c.zip
nfsd: Bump up the default to 8 nprocs
When the nproc argument is not given the rpc.nfsd a default number of processes is created. This patch bumps that default up from 1 to 8. Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/nfsd/nfsd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
index 8bc5d3a..2a3f5cc 100644
--- a/utils/nfsd/nfsd.c
+++ b/utils/nfsd/nfsd.c
@@ -27,6 +27,10 @@
#include "nfssvc.h"
#include "xlog.h"
+#ifndef NFSD_NPROC
+#define NFSD_NPROC 8
+#endif
+
static void usage(const char *);
static struct option longopts[] =
@@ -90,7 +94,7 @@ nfsd_enable_protos(unsigned int *proto4, unsigned int *proto6)
int
main(int argc, char **argv)
{
- int count = 1, c, error = 0, portnum = 0, fd, found_one;
+ int count = NFSD_NPROC, c, error = 0, portnum = 0, fd, found_one;
char *p, *progname, *port;
char *haddr = NULL;
int socket_up = 0;