[nfs-utils] Initscripts changes needed to support NFS over RDMA

Steve Dickson steved at fedoraproject.org
Sat Jan 15 18:02:19 UTC 2011


commit f517c363e8f1cc5eeadb462335e7597a1b7c3862
Author: Steve Dickson <steved at redhat.com>
Date:   Sat Jan 15 09:23:05 2011 -0500

    Initscripts changes needed to support NFS over RDMA
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

 nfs.init      |    7 +++++--
 nfs.sysconfig |    3 +++
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/nfs.init b/nfs.init
index afac520..099d393 100755
--- a/nfs.init
+++ b/nfs.init
@@ -81,8 +81,9 @@ case "$1" in
 	fi
 
 	# Load the nfsd module so /proc/fs/nfsd will exist
-	[ "$NFSD_MODULE" != "noload" ] && {
-		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
+	[ "$NFSD_MODULE" != "noload" -a -x /sbin/modprobe ] && {
+		/sbin/modprobe nfsd
+		[ -n "$RDMA_PORT" ] && /sbin/modprobe svcrdma
 	}
 	action $"Starting NFS services: " /usr/sbin/exportfs -r
 
@@ -101,6 +102,8 @@ case "$1" in
 	echo
 	[ $RETVAL -ne 0 ] && exit $RETVAL
 
+	[ -n "$RDMA_PORT" ] && echo "rdma $RDMA_PORT" > /proc/fs/nfsd/portlist
+
 	[ -n "$MOUNTD_PORT" ] \
 	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"
 
diff --git a/nfs.sysconfig b/nfs.sysconfig
index a77135f..c58cd33 100644
--- a/nfs.sysconfig
+++ b/nfs.sysconfig
@@ -60,3 +60,6 @@
 # Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8)
 #RPCSVCGSSDARGS=""
 #
+# To enable RDMA support on the server by setting this to
+# the port the server should listen on
+#RDMA_PORT=20049 


More information about the scm-commits mailing list