[ofa-general] [Fwd: [PATCH] Add nfsrdma_mod to config/build options]

Jeff Becker Jeffrey.C.Becker at nasa.gov
Thu Jul 10 15:57:51 PDT 2008


Hi all. I tried git-send-email to send this, and I thought it would give 
me a chance to edit the patch. This is the first patch to integrate 
NFSRDMA into OFED 1.4. I tested that it builds correctly with 2.6.26-rc6 
(current OFED 1.4 base). Now onto the backports!

-jeff

Add nfsrdma_mod to config/build options

Signed-off-by:   Jeff Becker <Jeffrey.C.Becker at nasa.gov>

---
 ofed_scripts/Makefile         |    7 ++
 ofed_scripts/configure        |  170 +++++++++++++++++++++++++++++++++++++++++
 ofed_scripts/makefile         |   66 ++++++++++++++++
 ofed_scripts/ofed_checkout.sh |   24 ++++++
 4 files changed, 267 insertions(+), 0 deletions(-)

diff --git a/ofed_scripts/Makefile b/ofed_scripts/Makefile
index dde593d..27b02eb 100644
--- a/ofed_scripts/Makefile
+++ b/ofed_scripts/Makefile
@@ -14,3 +14,10 @@ obj-$(CONFIG_CHELSIO_T3)        += drivers/net/cxgb3/
 obj-$(CONFIG_MLX4_CORE)         += drivers/net/mlx4/
 obj-$(CONFIG_RDS)               += net/rds/
 obj-$(CONFIG_MEMTRACK)          += drivers/infiniband/debug/
+obj-$(CONFIG_SUNRPC_XPRT_RDMA)  += net/sunrpc/
+obj-$(CONFIG_SUNRPC_XPRT_RDMA)  += net/sunrpc/auth_gss
+obj-$(CONFIG_SUNRPC_XPRT_RDMA)  += net/sunrpc/xprtrdma/
+obj-$(CONFIG_SUNRPC_XPRT_RDMA)  += fs/nfs/
+obj-$(CONFIG_SUNRPC_XPRT_RDMA)  += fs/lockd/
+obj-$(CONFIG_SUNRPC_XPRT_RDMA)  += fs/nfs_common/
+obj-$(CONFIG_SUNRPC_XPRT_RDMA)  += fs/nfsd/
diff --git a/ofed_scripts/configure b/ofed_scripts/configure
index f468b85..2e31ee3 100755
--- a/ofed_scripts/configure
+++ b/ofed_scripts/configure
@@ -145,6 +145,9 @@ Usage:  `basename $0` [options]
     --with-debug-info  make CONFIG_DEBUG_INFO=y [yes]
     --without-debug-info [no]
 
+    --with-nfsrdma-mod    make CONFIG_SUNRPC_XPRT_RDMA=m [no]
+    --without-nfsrdma-mod    [yes]
+
     --help - print out options
 
 
@@ -506,6 +509,48 @@ main()
                         --without-nes_debug-mod)
                             CONFIG_INFINIBAND_NES_DEBUG=
                         ;;
+                        --with-nfsrdma-mod)
+			    CONFIG_SUNRPC="m"
+			    CONFIG_SUNRPC_GSS="m"
+			    CONFIG_RPCSEC_GSS_KRB5="m"
+			    CONFIG_RPCSEC_GSS_SPKM3="m"
+                            CONFIG_SUNRPC_XPRT_RDMA="m"
+			    CONFIG_NFS_FS="m"
+			    CONFIG_NFS_V3="y"
+			    CONFIG_NFS_V3_ACL="y"
+			    CONFIG_NFS_ACL_SUPPORT="m"
+			    CONFIG_NFS_DIRECTIO="y"
+			    CONFIG_SYSCTL="y"
+			    CONFIG_LOCKD="m"
+			    CONFIG_LOCKD_V4="y"
+			    CONFIG_NFSD="m"
+			    CONFIG_NFSD_V2_ACL="y"
+			    CONFIG_NFSD_V3="y"
+			    CONFIG_NFSD_V3_ACL="y"
+			    CONFIG_NFSD_V4="y"
+			    CONFIG_NFSD_RDMA="y"
+                        ;;
+                        --without-nfsrdma-mod)
+                            CONFIG_SUNRPC=
+                            CONFIG_SUNRPC_GSS=
+                            CONFIG_RPCSEC_GSS_KRB5=
+                            CONFIG_RPCSEC_GSS_SPKM3=
+                            CONFIG_SUNRPC_XPRT_RDMA=
+			    CONFIG_NFS_FS=
+			    CONFIG_NFS_V3=
+			    CONFIG_NFS_V3_ACL=
+			    CONFIG_NFS_ACL_SUPPORT=
+			    CONFIG_NFS_DIRECTIO=
+			    CONFIG_SYSCTL=
+			    CONFIG_LOCKD=
+			    CONFIG_LOCKD_V4=
+			    CONFIG_NFSD=
+			    CONFIG_NFSD_V2_ACL=
+			    CONFIG_NFSD_V3=
+			    CONFIG_NFSD_V3_ACL=
+			    CONFIG_NFSD_V4=
+			    CONFIG_NFSD_RDMA=
+                        ;;
                         --with-modprobe|--without-modprobe)
                         ;;
                         -h | --help)
@@ -579,6 +624,29 @@ CONFIG_INFINIBAND_CXGB3=${CONFIG_INFINIBAND_CXGB3:-''}
 CONFIG_CHELSIO_T3=${CONFIG_CHELSIO_T3:-''}
 CONFIG_INFINIBAND_NES=${CONFIG_INFINIBAND_NES:-''}
 
+CONFIG_SUNRPC_XPRT_RDMA=${CONFIG_SUNRPC_XPRT_RDMA:-''} 
+CONFIG_SUNRPC=${CONFIG_SUNRPC:-''} 
+CONFIG_SUNRPC_GSS=${CONFIG_SUNRPC_GSS:-''} 
+CONFIG_RPCSEC_GSS_KRB5=${CONFIG_RPCSEC_GSS_KRB5:-''} 
+CONFIG_RPCSEC_GSS_SPKM3=${CONFIG_RPCSEC_GSS_SPKM3:-''} 
+
+CONFIG_NFS_FS=${CONFIG_NFS_FS:-''}
+CONFIG_NFS_V3=${CONFIG_NFS_V3:-''}
+CONFIG_NFS_V3_ACL=${CONFIG_NFS_V3_ACL:-''}
+CONFIG_NFS_ACL_SUPPORT=${CONFIG_NFS_ACL_SUPPORT:-''}
+CONFIG_NFS_DIRECTIO=${CONFIG_NFS_DIRECTIO:-''}
+CONFIG_SYSCTL=${CONFIG_SYSCTL:-''}
+
+CONFIG_LOCKD=${CONFIG_LOCKD:-''}
+CONFIG_LOCKD_V4=${CONFIG_LOCKD_V4:-''}
+
+CONFIG_NFSD=${CONFIG_NFSD:-''}
+CONFIG_NFSD_V2_ACL=${CONFIG_NFSD_V2_ACL:-''}
+CONFIG_NFSD_V3=${CONFIG_NFSD_V3:-''}
+CONFIG_NFSD_V3_ACL=${CONFIG_NFSD_V3_ACL:-''}
+CONFIG_NFSD_V4=${CONFIG_NFSD_V4:-''}
+CONFIG_NFSD_RDMA=${CONFIG_NFSD_RDMA:-''}
+
 CONFIG_INFINIBAND_IPOIB_DEBUG_DATA=${CONFIG_INFINIBAND_IPOIB_DEBUG_DATA:-''}
 CONFIG_INFINIBAND_SDP_SEND_ZCOPY=${CONFIG_INFINIBAND_SDP_SEND_ZCOPY:-''}
 CONFIG_INFINIBAND_SDP_RECV_ZCOPY=${CONFIG_INFINIBAND_SDP_RECV_ZCOPY:-''}
@@ -654,6 +722,27 @@ CONFIG_INFINIBAND_CXGB3=${CONFIG_INFINIBAND_CXGB3}
 CONFIG_CHELSIO_T3=${CONFIG_CHELSIO_T3}
 CONFIG_INFINIBAND_NES=${CONFIG_INFINIBAND_NES}
 
+CONFIG_SUNRPC_XPRT_RDMA=${CONFIG_SUNRPC_XPRT_RDMA}
+CONFIG_SUNRPC=${CONFIG_SUNRPC}
+CONFIG_SUNRPC_GSS=${CONFIG_SUNRPC_GSS}
+CONFIG_RPCSEC_GSS_KRB5=${CONFIG_RPCSEC_GSS_KRB5}
+CONFIG_RPCSEC_GSS_SPKM3=${CONFIG_RPCSEC_GSS_SPKM3}
+
+CONFIG_NFS_FS=${CONFIG_NFS_FS}
+CONFIG_NFS_V3=${CONFIG_NFS_V3}
+CONFIG_NFS_V3_ACL=${CONFIG_NFS_V3_ACL}
+CONFIG_NFS_ACL_SUPPORT=${CONFIG_NFS_ACL_SUPPORT}
+CONFIG_NFS_DIRECTIO=${CONFIG_NFS_DIRECTIO}
+CONFIG_SYSCTL=${CONFIG_SYSCTL}
+CONFIG_LOCKD=${CONFIG_LOCKD}
+CONFIG_LOCKD_V4=${CONFIG_LOCKD_V4}
+CONFIG_NFSD=${CONFIG_NFSD}
+CONFIG_NFSD_V2_ACL=${CONFIG_NFSD_V2_ACL}
+CONFIG_NFSD_V3=${CONFIG_NFSD_V3}
+CONFIG_NFSD_V3_ACL=${CONFIG_NFSD_V3_ACL}
+CONFIG_NFSD_V4=${CONFIG_NFSD_V4}
+CONFIG_NFSD_RDMA=${CONFIG_NFSD_RDMA}
+
 CONFIG_INFINIBAND_IPOIB_DEBUG_DATA=${CONFIG_INFINIBAND_IPOIB_DEBUG_DATA}
 CONFIG_INFINIBAND_SDP_SEND_ZCOPY=${CONFIG_INFINIBAND_SDP_SEND_ZCOPY}
 CONFIG_INFINIBAND_SDP_RECV_ZCOPY=${CONFIG_INFINIBAND_SDP_RECV_ZCOPY}
@@ -875,6 +964,47 @@ if [ "X${CONFIG_INFINIBAND_AMSO1100}" == "Xm" ]; then
 else
         DEFINE_INFINIBAND_AMSO1100="#undef CONFIG_INFINIBAND_AMSO1100"
 fi
+if [ "X${CONFIG_SUNRPC_XPRT_RDMA}" == "Xm" ]; then
+        DEFINE_CONFIG_SUNRPC_XPRT_RDMA="#define CONFIG_SUNRPC_XPRT_RDMA 1"
+        DEFINE_CONFIG_SUNRPC="#define CONFIG_SUNRPC 1"
+        DEFINE_CONFIG_SUNRPC_GSS="#define CONFIG_SUNRPC_GSS 1"
+        DEFINE_CONFIG_RPCSEC_GSS_KRB5="#define CONFIG_RPCSEC_GSS_KRB5 1"
+        DEFINE_CONFIG_RPCSEC_GSS_SPKM3="#define CONFIG_RPCSEC_GSS_SPKM3 1"
+	DEFINE_CONFIG_NFS_FS="#define CONFIG_NFS_FS 1"
+	DEFINE_CONFIG_NFS_V3="#define CONFIG_NFS_V3 1"
+	DEFINE_CONFIG_NFS_V3_ACL="#define CONFIG_NFS_V3_ACL 1"
+	DEFINE_CONFIG_NFS_ACL_SUPPORT="#define CONFIG_NFS_ACL_SUPPORT 1"
+	DEFINE_CONFIG_NFS_DIRECTIO="#define CONFIG_NFS_DIRECTIO 1"
+	DEFINE_CONFIG_SYSCTL="#define CONFIG_SYSCTL 1"
+	DEFINE_CONFIG_LOCKD="#define CONFIG_LOCKD 1"
+	DEFINE_CONFIG_LOCKD_V4="#define CONFIG_LOCKD_V4 1"
+	DEFINE_CONFIG_NFSD="#define CONFIG_NFSD 1"
+	DEFINE_CONFIG_NFSD_V2_ACL="#define CONFIG_NFSD_V2_ACL 1"
+	DEFINE_CONFIG_NFSD_V3="#define CONFIG_NFSD_V3 1"
+	DEFINE_CONFIG_NFSD_V3_ACL="#define CONFIG_NFSD_V3_ACL 1"
+	DEFINE_CONFIG_NFSD_V4="#define CONFIG_NFSD_V4 1"
+	DEFINE_CONFIG_NFSD_RDMA="#define CONFIG_NFSD_RDMA 1"
+else
+        DEFINE_CONFIG_SUNRPC_XPRT_RDMA="#undef CONFIG_SUNRPC_XPRT_RDMA"
+        DEFINE_CONFIG_SUNRPC="#undef CONFIG_SUNRPC"
+        DEFINE_CONFIG_SUNRPC_GSS="#undef CONFIG_SUNRPC_GSS"
+        DEFINE_CONFIG_RPCSEC_GSS_KRB5="#undef CONFIG_RPCSEC_GSS_KRB5"
+        DEFINE_CONFIG_RPCSEC_GSS_SPKM3="#undef CONFIG_RPCSEC_GSS_SPKM3"
+	DEFINE_CONFIG_NFS_FS="#undef CONFIG_NFS_FS"
+	DEFINE_CONFIG_NFS_V3="#undef CONFIG_NFS_V3"
+	DEFINE_CONFIG_NFS_V3_ACL="#undef CONFIG_NFS_V3_ACL"
+	DEFINE_CONFIG_NFS_ACL_SUPPORT="#undef CONFIG_NFS_ACL_SUPPORT"
+	DEFINE_CONFIG_NFS_DIRECTIO="#undef CONFIG_NFS_DIRECTIO"
+	DEFINE_CONFIG_SYSCTL="#undef CONFIG_SYSCTL"
+	DEFINE_CONFIG_LOCKD="#undef CONFIG_LOCKD"
+	DEFINE_CONFIG_LOCKD_V4="#undef CONFIG_LOCKD_V4"
+	DEFINE_CONFIG_NFSD="#undef CONFIG_NFSD"
+	DEFINE_CONFIG_NFSD_V2_ACL="#undef CONFIG_NFSD_V2_ACL"
+	DEFINE_CONFIG_NFSD_V3="#undef CONFIG_NFSD_V3"
+	DEFINE_CONFIG_NFSD_V3_ACL="#undef CONFIG_NFSD_V3_ACL"
+	DEFINE_CONFIG_NFSD_V4="#undef CONFIG_NFSD_V4"
+	DEFINE_CONFIG_NFSD_RDMA="#undef CONFIG_NFSD_RDMA"
+fi
 cat >> ${AUTOCONF_H} << EOFAUTOCONF
 #undef CONFIG_MEMTRACK
 #undef CONFIG_DEBUG_INFO
@@ -913,6 +1043,26 @@ cat >> ${AUTOCONF_H} << EOFAUTOCONF
 #undef CONFIG_INFINIBAND_NES
 #undef CONFIG_INFINIBAND_NES_DEBUG
 
+#undef CONFIG_SUNRPC_XPRT_RDMA
+#undef CONFIG_SUNRPC
+#undef CONFIG_SUNRPC_GSS
+#undef CONFIG_RPCSEC_GSS_KRB5
+#undef CONFIG_RPCSEC_GSS_SPKM3
+#undef CONFIG_NFS_FS
+#undef CONFIG_NFS_V3
+#undef CONFIG_NFS_V3_ACL
+#undef CONFIG_NFS_ACL_SUPPORT
+#undef CONFIG_NFS_DIRECTIO
+#undef CONFIG_SYSCTL
+#undef CONFIG_LOCKD
+#undef CONFIG_LOCKD_V4
+#undef CONFIG_NFSD
+#undef CONFIG_NFSD_V2_ACL
+#undef CONFIG_NFSD_V3
+#undef CONFIG_NFSD_V3_ACL
+#undef CONFIG_NFSD_V4
+#undef CONFIG_NFSD_RDMA
+
 #undef CONFIG_INFINIBAND_IPOIB_DEBUG_DATA
 #undef CONFIG_INFINIBAND_SDP_SEND_ZCOPY
 #undef CONFIG_INFINIBAND_SDP_RECV_ZCOPY
@@ -939,6 +1089,26 @@ ${DEFINE_INFINIBAND_CXGB3}
 ${DEFINE_CHELSIO_T3}
 ${DEFINE_INFINIBAND_NES}
 
+${DEFINE_CONFIG_SUNRPC_XPRT_RDMA}
+${DEFINE_CONFIG_SUNRPC}
+${DEFINE_CONFIG_SUNRPC_GSS}
+${DEFINE_CONFIG_RPCSEC_GSS_KRB5}
+${DEFINE_CONFIG_RPCSEC_GSS_SPKM3}
+${DEFINE_CONFIG_NFS_FS}
+${DEFINE_CONFIG_NFS_V3}
+${DEFINE_CONFIG_NFS_V3_ACL}
+${DEFINE_CONFIG_NFS_ACL_SUPPORT}
+${DEFINE_CONFIG_NFS_DIRECTIO}
+${DEFINE_CONFIG_SYSCTL}
+${DEFINE_CONFIG_LOCKD}
+${DEFINE_CONFIG_LOCKD_V4}
+${DEFINE_CONFIG_NFSD}
+${DEFINE_CONFIG_NFSD_V2_ACL}
+${DEFINE_CONFIG_NFSD_V3}
+${DEFINE_CONFIG_NFSD_V3_ACL}
+${DEFINE_CONFIG_NFSD_V4}
+${DEFINE_CONFIG_NFSD_RDMA}
+
 ${DEFINE_INFINIBAND_IPOIB_DEBUG}
 ${DEFINE_INFINIBAND_ISER}
 ${DEFINE_SCSI_ISCSI_ATTRS}
diff --git a/ofed_scripts/makefile b/ofed_scripts/makefile
index c4d2143..5f8cdf6 100644
--- a/ofed_scripts/makefile
+++ b/ofed_scripts/makefile
@@ -5,6 +5,7 @@ all:
 .PHONY: install_kernel_iscsi uninstall_iscsi
 .PHONY: install_kernel_cxgb3 uninstall_cxgb3
 .PHONY: install_kernel_rds uninstall_rds
+.PHONY: install_kernel_xprtrdma uninstall_xprtrdma
 .PHONY: install_kernel_mlx4 uninstall_mlx4
 	
 .DELETE_ON_ERROR:
@@ -41,6 +42,11 @@ install_kernel: install_kernel_cxgb3
 uninstall: uninstall_cxgb3
 endif
 
+ifeq ($(CONFIG_SUNRPC_XPRT_RDMA),m)
+install_kernel: install_kernel_xprtrdma
+uninstall: uninstall_xprtrdma
+endif
+
 ifeq ($(CONFIG_RDS),m)
 install_kernel: install_kernel_rds
 uninstall: uninstall_rds
@@ -116,6 +122,25 @@ kernel:
 		CONFIG_MLX4_ETHERNET=$(CONFIG_MLX4_ETHERNET) \
 		CONFIG_MLX4_DEBUG=$(CONFIG_MLX4_DEBUG) \
 		CONFIG_INFINIBAND_AMSO1100=$(CONFIG_INFINIBAND_AMSO1100) \
+		CONFIG_SUNRPC_XPRT_RDMA=$(CONFIG_SUNRPC_XPRT_RDMA) \
+		CONFIG_SUNRPC=$(CONFIG_SUNRPC) \
+		CONFIG_SUNRPC_GSS=$(CONFIG_SUNRPC_GSS) \
+		CONFIG_RPCSEC_GSS_KRB5=$(CONFIG_RPCSEC_GSS_KRB5) \
+		CONFIG_RPCSEC_GSS_SPKM3=$(CONFIG_RPCSEC_GSS_SPKM3) \
+		CONFIG_NFS_FS=$(CONFIG_NFS_FS) \
+		CONFIG_NFS_V3=$(CONFIG_NFS_V3) \
+		CONFIG_NFS_V3_ACL=$(CONFIG_NFS_V3_ACL) \
+		CONFIG_NFS_ACL_SUPPORT=$(CONFIG_NFS_ACL_SUPPORT) \
+		CONFIG_NFS_DIRECTIO=$(CONFIG_NFS_DIRECTIO) \
+		CONFIG_SYSCTL=$(CONFIG_SYSCTL) \
+		CONFIG_LOCKD=$(CONFIG_LOCKD) \
+		CONFIG_LOCKD_V4=$(CONFIG_LOCKD_V4) \
+		CONFIG_NFSD=$(CONFIG_NFSD) \
+		CONFIG_NFSD_V2_ACL=$(CONFIG_NFSD_V2_ACL) \
+		CONFIG_NFSD_V3=$(CONFIG_NFSD_V3) \
+		CONFIG_NFSD_V3_ACL=$(CONFIG_NFSD_V3_ACL) \
+		CONFIG_NFSD_V4=$(CONFIG_NFSD_V4) \
+		CONFIG_NFSD_RDMA=$(CONFIG_NFSD_RDMA) \
 		LINUXINCLUDE=' \
 		-include include/linux/autoconf.h \
 		-include $(CWD)/include/linux/autoconf.h \
@@ -212,6 +237,39 @@ install_kernel_iscsi: install_modules
 	
 	if [ ! -n "$(DESTDIR)" ]; then $(DEPMOD) -r -ae $(KVERSION);fi;
 
+install_kernel_nfsrdma: install_modules
+	# backup all the modules
+	NFSRDMA_PATHS="fs/nfs fs/nfsd fs/lockd fs/nfs_common net/sunrpc net/sunrpc/xprtrdma net/sunrpc/auth_gss"; \
+	if [ -d $(DESTDIR)/$(MODULES_DIR)/kernel/drivers/net/sunrpc ]; then \
+		mkdir -p $(DESTDIR)/$(prefix)/backup; \
+		if [ ! -f $(DESTDIR)/$(prefix)/backup/nfsrdma_ko-$(KVERSION).tgz ]; then \
+			NFSRDMA_FULL_PATH=""; \
+			for this_path in $$NFSRDMA_PATHS; do \
+				NFSRDMA_FULL_PATH="$(DESTDIR)/$(MODULES_DIR)/kernel/$$this_path $$NFSRDMA_FULL_PATH"; \
+			done; \
+			tar czfP $(DESTDIR)/$(prefix)/backup/nfsrdma_ko-$(KVERSION).tgz $$NFSRDMA_FULL_PATH; \
+		fi; \
+	fi;
+	# Copy new nfs rdma kernel modules to $(DESTDIR)/$(MODULES_DIR)/kernel
+	NFSRDMA_MODS="net/sunrpc/auth_gss/auth_rpcgss.ko net/sunrpc/auth_gss/rpcsec_gss_krb5.ko net/sunrpc/auth_gss/rpcsec_gss_spkm3.ko fs/lockd/lockd.ko fs/nfs_common/nfs_acl.ko fs/nfsd/nfsd.ko fs/nfs/nfs.ko net/sunrpc/sunrpc.ko net/sunrpc/xprtrdma/svcrdma.ko net/sunrpc/xprtrdma/xprtrdma.ko"; \
+	if [ -d $(CWD)/lib/modules/$(KVERSION)/net/sunrpc/xprtrdma ]; then \
+		for each_path in $$NFSRDMA_PATHS; do \
+			mkdir -p $(DESTDIR)/$(MODULES_DIR)/kernel/$$each_path; \
+		done; \
+		for each_module in $$NFSRDMA_MODS; do \
+			mv $(CWD)/lib/modules/$(KVERSION)/$$each_module $(DESTDIR)/$(MODULES_DIR)/kernel/$$each_module; \
+		done; \
+	fi; \
+	if [ -d $(CWD)/lib/modules/$(KVERSION)/extra/net/sunrpc ]; then \
+		for each_path in $$NFSRDMA_PATHS; do \
+			mkdir -p $(DESTDIR)/$(MODULES_DIR)/kernel/$$each_path; \
+		done; \
+		for each_module in $$NFSRDMA_MODS; do \
+			mv $(CWD)/lib/modules/$(KVERSION)/extra/$$each_module $(DESTDIR)/$(MODULES_DIR)/kernel/$$each_module; \
+		done; \
+	fi;
+	if [ ! -n "$(DESTDIR)" ]; then $(DEPMOD) -r -ae $(KVERSION); fi;
+
 install_kernel_cxgb3: install_modules
 	# Backup original cxgb3.ko kernel module under 'prefix'/backup directory
 	if [ -d $(DESTDIR)/$(MODULES_DIR)/kernel/drivers/net/cxgb3 ]; then \
@@ -311,6 +369,14 @@ uninstall_iscsi:
 
 	if [ ! -n "$(DESTDIR)" ]; then $(DEPMOD) -r -ae $(KVERSION);fi;
 
+uninstall_nfsrdma:
+	if [ -f $(DESTDIR)/$(prefix)/backup/nfsrdma_ko-$(KVERSION).tgz ]; then \
+	         tar xzfP $(DESTDIR)/$(prefix)/backup/nfsrdma_ko-$(KVERSION).tgz; \
+	         /bin/rm -f $(DESTDIR)/$(prefix)/backup/nfsrdma_ko-$(KVERSION).tgz; \
+	fi;
+
+	if [ ! -n "$(DESTDIR)" ]; then $(DEPMOD) -r -ae $(KVERSION);fi;
+
 uninstall_cxgb3:
 	if [ -f $(DESTDIR)/$(prefix)/backup/cxgb3_ko-$(KVERSION).tgz ]; then \
 	         /bin/rm $(DESTDIR)/$(MODULES_DIR)/kernel/drivers/net/cxgb3/cxgb3.ko ; \
diff --git a/ofed_scripts/ofed_checkout.sh b/ofed_scripts/ofed_checkout.sh
index f3286a4..f98a09c 100755
--- a/ofed_scripts/ofed_checkout.sh
+++ b/ofed_scripts/ofed_checkout.sh
@@ -17,6 +17,30 @@ ex git checkout $1 `git-ls-tree -r --name-only $1 \
         include/rdma \
         include/scsi/srp.h \
         include/scsi/iscsi_proto.h \
+        include/linux/nfs.h \
+        include/linux/nfs2.h \
+        include/linux/nfs3.h \
+        include/linux/nfs4.h \
+        include/linux/nfs4_acl.h \
+        include/linux/nfs4_mount.h \
+        include/linux/nfs_fs.h \
+        include/linux/nfs_fs_i.h \
+        include/linux/nfs_fs_sb.h \
+        include/linux/nfs_idmap.h \
+        include/linux/nfs_mount.h \
+        include/linux/nfs_page.h \
+        include/linux/nfs_xdr.h \
+        include/linux/nfsacl.h \
+        include/linux/nfsd_idmap.h \
+        include/linux/nfsd \
+        include/linux/lockd \
+        include/linux/sunrpc \
+        fs/lockd \
+        fs/nfs \
+        fs/nfs_common \
+        fs/nfsd \
+        fs/nfsctl.c \
+        net/sunrpc \
         drivers/infiniband \
         Documentation/infiniband \
         ofed_scripts \
-- 
gitgui.0.8.4.g9c514





More information about the general mailing list