From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonatan Schlag To: development@lists.ipfire.org Subject: [PATCH] Fixes for #11098 Date: Mon, 25 Apr 2016 17:15:18 +0200 Message-ID: <1461597318-941-1-git-send-email-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2936353197088277855==" List-Id: --===============2936353197088277855== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Jonatan Schlag --- config/rootfiles/packages/nfs | 5 +++-- lfs/nfs | 8 ++++---- src/initscripts/init.d/nfs-server | 12 ++++++------ 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/config/rootfiles/packages/nfs b/config/rootfiles/packages/nfs index 666512b..08fcca9 100644 --- a/config/rootfiles/packages/nfs +++ b/config/rootfiles/packages/nfs @@ -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 417f155..b6cef7b 100644 --- a/lfs/nfs +++ b/lfs/nfs @@ -24,7 +24,7 @@ =20 include Config =20 -VER =3D 1.2.7 +VER =3D 1.3.3 =20 THISAPP =3D nfs-utils-$(VER) DL_FILE =3D $(THISAPP).tar.bz2 @@ -32,7 +32,7 @@ DL_FROM =3D $(URL_IPFIRE) DIR_APP =3D $(DIR_SRC)/$(THISAPP) TARGET =3D $(DIR_INFO)/$(THISAPP) PROG =3D nfs -PAK_VER =3D 6 +PAK_VER =3D 7 =20 DEPS =3D "portmap" =20 @@ -48,7 +48,7 @@ objects =3D $(DL_FILE) \ $(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) libnfsidmap-$(LIBNFSIDMAP).tar.gz =3D $(DL_FROM)/libnfsidmap-$(LIBNFSIDMAP).= tar.gz =20 -$(DL_FILE)_MD5 =3D 3b5ca797197765dc0c3a4122720c7716 +$(DL_FILE)_MD5 =3D 9b87d890669eaaec8e97a2b0a35b2665 libnfsidmap-$(LIBNFSIDMAP).tar.gz_MD5 =3D 2ac4893c92716add1a1447ae01df77ab =20 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 =20 cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) cd $(DIR_APP) && make install diff --git a/src/initscripts/init.d/nfs-server b/src/initscripts/init.d/nfs-s= erver index 15284e8..73378d5 100644 --- a/src/initscripts/init.d/nfs-server +++ b/src/initscripts/init.d/nfs-server @@ -13,6 +13,10 @@ =20 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 =20 @@ -27,10 +31,6 @@ case "$1" in loadproc /usr/sbin/rpc.rquotad fi =20 - 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 =20 boot_mesg "Stopping NFS nfsd..." - # nfsd needs HUP.... - killproc nfsd HUP + /usr/sbin/rpc.nfsd 0 + evaluate_retval =20 boot_mesg "Stopping NFS mountd..." killproc /usr/sbin/rpc.mountd --=20 2.1.4 --===============2936353197088277855==--