[nfs-utils/f14/master] Initscripts changes needed to support NFS over RDMA
Steve Dickson
steved at fedoraproject.org
Sat Jan 15 19:04:33 UTC 2011
commit 6df9eadc28b70f918c721283e932ee3f7aac4d8e
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 b9a502e..2bd14d3 100644
--- a/nfs.sysconfig
+++ b/nfs.sysconfig
@@ -61,3 +61,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