a6650d3
commit 5397edac120350bd5fd8284819c1a900cb41546c
a6650d3
Author: Steve Dickson <steved@redhat.com>
a6650d3
Date:   Fri Mar 16 09:34:43 2012 -0400
a6650d3
a6650d3
    nfsd: Bump up the default to 8 nprocs
a6650d3
    
a6650d3
    When the nproc argument is not given the rpc.nfsd
a6650d3
    a default number of processes is created. This
a6650d3
    patch bumps that default up from 1 to 8.
a6650d3
    
a6650d3
    Signed-off-by: Steve Dickson <steved@redhat.com>
a6650d3
a6650d3
diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
a6650d3
index 8bc5d3a..2a3f5cc 100644
a6650d3
--- a/utils/nfsd/nfsd.c
a6650d3
+++ b/utils/nfsd/nfsd.c
a6650d3
@@ -27,6 +27,10 @@
a6650d3
 #include "nfssvc.h"
a6650d3
 #include "xlog.h"
a6650d3
 
a6650d3
+#ifndef NFSD_NPROC
a6650d3
+#define NFSD_NPROC 8
a6650d3
+#endif
a6650d3
+
a6650d3
 static void	usage(const char *);
a6650d3
 
a6650d3
 static struct option longopts[] =
a6650d3
@@ -90,7 +94,7 @@ nfsd_enable_protos(unsigned int *proto4, unsigned int *proto6)
a6650d3
 int
a6650d3
 main(int argc, char **argv)
a6650d3
 {
a6650d3
-	int	count = 1, c, error = 0, portnum = 0, fd, found_one;
a6650d3
+	int	count = NFSD_NPROC, c, error = 0, portnum = 0, fd, found_one;
a6650d3
 	char *p, *progname, *port;
a6650d3
 	char *haddr = NULL;
a6650d3
 	int	socket_up = 0;