OBS User unknown 2007-12-18 17:53:26 +00:00 committed by Git OBS Bridge
parent 43b0e55414
commit bc6f33cc3e
4 changed files with 25 additions and 2 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Dec 17 23:19:36 CET 2007 - nfbrown@suse.de
- Fix sed script used to create bind mounts for NFSv4 export
(#279665)
- Fail nfs.init if portmap is not running. Normally it will be,
but if it isn't nfs can fail strangely. (#325763)
-------------------------------------------------------------------
Mon Dec 17 02:29:08 CET 2007 - nfbrown@suse.de

View File

@ -15,7 +15,7 @@ BuildRequires: e2fsprogs-devel gcc-c++ krb5-devel libevent librpcsecgss nfsidma
Url: http://nfs.sourceforge.net
Summary: Support Utilities for Kernel nfsd
Version: 1.1.0
Release: 9
Release: 10
Group: Productivity/Networking/NFS
License: GPL v2 or later
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -249,6 +249,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Dec 17 2007 - nfbrown@suse.de
- Fix sed script used to create bind mounts for NFSv4 export
(#279665)
- Fail nfs.init if portmap is not running. Normally it will be,
but if it isn't nfs can fail strangely. (#325763)
* Mon Dec 17 2007 - nfbrown@suse.de
- Add SuSEfirewall2 config files for nfs-client and nfs-kernel-server
(#247354)
* Mon Nov 12 2007 - ro@suse.de

View File

@ -128,6 +128,13 @@ rc_reset
case "$1" in
start|reload)
echo -n "Starting NFS client services:"
if ! checkproc /sbin/portmap ; then
echo "portmap is not running"
rc_failed 3
rc_status -v
rc_exit
fi
# in case we need /usr via nfs
mount_usr
# sm-notify
@ -249,6 +256,9 @@ case "$1" in
echo "idmapd not running"
rc_failed 3
fi
if ! checkproc /sbin/portmap; then
echo "Warning: portmap not running - nfs may not work well"
fi
rc_status -v
;;
try-restart|condrestart)

View File

@ -91,7 +91,7 @@ nfs4_bind_mounts() {
# In case of doubt, try "man sed" :-)
cat /etc/exports |
sed ':-0;s/\\$//;T;N;s/\n[[:space:]]*/ /;b-0' |
sed -n 'H;g;s/\\$//;h;t;s/^\n//;s/\n[[:space:]]*//g;s/#.*//;p;s/.*//;h' |
sed 's/^\([^[:space:]]*\).*bind=\([^,)]*\).*/\1 \2/;t;d' |
sort |
while read export dir; do