]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
nfs: Fixes for NFS server
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Mon, 25 Apr 2016 15:15:18 +0000 (17:15 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Apr 2016 21:20:15 +0000 (22:20 +0100)
Fixes: #11098
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/packages/nfs
lfs/nfs
src/initscripts/init.d/nfs-server

index 666512b5ee49bfa4d6e17b89094d3bcfe09f4e69..08fcca9fcea8b3cfb4ab93350fa82a20ce494f1f 100644 (file)
@@ -1,5 +1,6 @@
 sbin/mount.nfs
 sbin/mount.nfs4
+sbin/nfsdcltrack
 sbin/osd_login
 sbin/umount.nfs
 sbin/umount.nfs4
@@ -22,7 +23,6 @@ usr/lib/libnfsidmap/umich_ldap.so
 #usr/lib/pkgconfig/libnfsidmap.pc
 usr/sbin/exportfs
 usr/sbin/mountstats
-usr/sbin/nfsdcltrack
 usr/sbin/nfsiostat
 usr/sbin/nfsstat
 usr/sbin/rpc.idmapd
@@ -37,6 +37,7 @@ usr/sbin/start-statd
 #usr/share/man/man5/exports.5
 #usr/share/man/man5/idmapd.conf.5
 #usr/share/man/man5/nfs.5
+#usr/share/man/man5/nfsmount.conf.5
 #usr/share/man/man7/nfsd.7
 #usr/share/man/man8/exportfs.8
 #usr/share/man/man8/idmapd.8
@@ -61,7 +62,7 @@ usr/sbin/start-statd
 var/lib/nfs/etab
 var/lib/nfs/rmtab
 var/lib/nfs/sm
-#var/lib/nfs/sm.bak
+var/lib/nfs/sm.bak
 var/lib/nfs/state
 var/lib/nfs/xtab
 etc/rc.d/init.d/nfs-server
diff --git a/lfs/nfs b/lfs/nfs
index 417f155fd287167b65237badcd0a3fd13629acbc..b6cef7b9bd293ca4420e677fae1143c85570552a 100644 (file)
--- a/lfs/nfs
+++ b/lfs/nfs
@@ -24,7 +24,7 @@
 
 include Config
 
-VER        = 1.2.7
+VER        = 1.3.3
 
 THISAPP    = nfs-utils-$(VER)
 DL_FILE    = $(THISAPP).tar.bz2
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = nfs
-PAK_VER    = 6
+PAK_VER    = 7
 
 DEPS       = "portmap"
 
@@ -48,7 +48,7 @@ objects = $(DL_FILE) \
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 libnfsidmap-$(LIBNFSIDMAP).tar.gz = $(DL_FROM)/libnfsidmap-$(LIBNFSIDMAP).tar.gz
 
-$(DL_FILE)_MD5 = 3b5ca797197765dc0c3a4122720c7716
+$(DL_FILE)_MD5 = 9b87d890669eaaec8e97a2b0a35b2665
 libnfsidmap-$(LIBNFSIDMAP).tar.gz_MD5 = 2ac4893c92716add1a1447ae01df77ab
 
 install : $(TARGET)
@@ -94,7 +94,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                --disable-gss \
                --disable-tirpc \
                --disable-nfsv41 \
-               --without-tcp-wrappers
+               --without-tcp-wrappers --disable-ipv6
 
        cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
        cd $(DIR_APP) && make install
index 15284e88a36519e4d85220ae4cac8005535b2f6e..73378d501069f59607886e1f0b87fd70b835225b 100644 (file)
 
 case "$1" in
        start)
+               boot_mesg "Mounting nfsd virtual filesystem..."
+                /bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
+                evaluate_retval
+
                boot_mesg "Starting NFS mountd..."
                loadproc /usr/sbin/rpc.mountd
 
@@ -27,10 +31,6 @@ case "$1" in
                        loadproc /usr/sbin/rpc.rquotad
                fi
 
-               boot_mesg "Mounting nfsd virtual filesystem..."
-               /bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
-               evaluate_retval
-
                # Make ceratin that the list is refreshed on
                # a restart.
                boot_mesg "Exporting NFS Filesystems..."
@@ -43,8 +43,8 @@ case "$1" in
                killproc /usr/sbin/rpc.statd
 
                boot_mesg "Stopping NFS nfsd..."
-               # nfsd needs HUP....
-               killproc nfsd HUP
+               /usr/sbin/rpc.nfsd 0
+               evaluate_retval
 
                boot_mesg "Stopping NFS mountd..."
                killproc /usr/sbin/rpc.mountd