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 +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 + +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 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 1.2.5-12 - require kmod instead of modutils (bz 788571)