[nfs-utils] nfsd: Bump up the default to 8 nprocs (bz 757452)

Steve Dickson steved at fedoraproject.org
Fri Mar 16 15:16:29 UTC 2012


commit a6650d33ff18a4be7a83228870df6ebd2f7d990a
Author: Steve Dickson <steved at redhat.com>
Date:   Fri Mar 16 11:13:28 2012 -0400

    nfsd: Bump up the default to 8 nprocs (bz 757452)
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

 nfs-utils-1.2.5-nfsd-new-default.patch |   36 ++++++++++++++++++++++++++++++++
 nfs-utils.spec                         |    3 ++
 2 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/nfs-utils-1.2.5-nfsd-new-default.patch b/nfs-utils-1.2.5-nfsd-new-default.patch
new file mode 100644
index 0000000..729f6de
--- /dev/null
+++ b/nfs-utils-1.2.5-nfsd-new-default.patch
@@ -0,0 +1,36 @@
+commit 5397edac120350bd5fd8284819c1a900cb41546c
+Author: Steve Dickson <steved at redhat.com>
+Date:   Fri Mar 16 09:34:43 2012 -0400
+
+    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 at redhat.com>
+
+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;
diff --git a/nfs-utils.spec b/nfs-utils.spec
index 817fa77..bca7cba 100644
--- a/nfs-utils.spec
+++ b/nfs-utils.spec
@@ -31,6 +31,7 @@ Source52: nfs-server.postconfig
 Patch001: nfs-utils-1.2.6-rc6.patch
 Patch002: nfs-utils-1.2.4-mountshortcut.patch
 Patch003: nfs-utils-1.2.5-libidmap-hide-syms.patch
+Patch004: nfs-utils-1.2.5-nfsd-new-default.patch
 
 Patch100: nfs-utils-1.2.1-statdpath-man.patch
 Patch101: nfs-utils-1.2.1-exp-subtree-warn-off.patch
@@ -90,6 +91,7 @@ This package also contains the mount.nfs and umount.nfs program.
 %patch001 -p1
 %patch002 -p1
 %patch003 -p1
+%patch004 -p1
 
 %patch100 -p1
 %patch101 -p1
@@ -282,6 +284,7 @@ fi
 * Fri Mar 16 2012 Steve Dickson <steved at redhat.com> 1.2.5-13
 - Make sure statd is start before NFS mounts (bz 786050)
 - rpc.idmap: Hide global symbols from libidmap plugins (bz 797332)
+- nfsd: Bump up the default to 8 nprocs (bz 757452)
 
 * Wed Feb 08 2012 Harald Hoyer <harald at redhat.com> 1.2.5-12
 - require kmod instead of modutils (bz 788571)


More information about the scm-commits mailing list