forked from pool/nfs-utils
Accepting request 61539 from Base:System
Accepted submit request 61539 from user neilbrown OBS-URL: https://build.opensuse.org/request/show/61539 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=71
This commit is contained in:
commit
e042da25bc
@ -1,3 +1,24 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 16 23:55:22 UTC 2011 - nfbrown@novell.com
|
||||
|
||||
- nfs.init: improve handling of paths with spaces.
|
||||
If a path name has a space, it will appear as \040
|
||||
in fstab and in /proc/mounts. Using 'grep -E' to search
|
||||
for this is problematic as it will interpret the
|
||||
'\'. So use 'grep -F' instead - we know there is
|
||||
only a single space in /proc/mounts. Also use
|
||||
"read -r" so 'read' doesn't interpret the '/'.
|
||||
(bnc#666128)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 16 23:49:40 UTC 2011 - nfbrown@novell.com
|
||||
|
||||
- nfsserver.init: make sure sm-notify runs on restart.
|
||||
If we stop nfsd, that might also stop lockd which would
|
||||
drop locks. So make sure lockd really does drop lock
|
||||
for consistency, and ensure that sm-notify is run when
|
||||
nfsserver is restarted. (bnc#668280)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 31 07:49:03 UTC 2011 - lnussel@suse.de
|
||||
|
||||
|
4
nfs.init
4
nfs.init
@ -43,7 +43,7 @@ if [ "x$nfs" != "xyes" ]
|
||||
then nfs=no
|
||||
fi
|
||||
|
||||
while read what where type options rest ; do
|
||||
while read -r what where type options rest ; do
|
||||
case "$what" in
|
||||
\#*|"") continue ;;
|
||||
esac
|
||||
@ -56,7 +56,7 @@ while read what where type options rest ; do
|
||||
esac
|
||||
nfs=yes
|
||||
if test "$1" = status ; then
|
||||
grep -qE "^$what[[:blank:]]+$where[[:blank:]]+nfs" /proc/mounts && continue
|
||||
grep -qF "$what $where nfs" /proc/mounts && continue
|
||||
state=3
|
||||
continue
|
||||
fi
|
||||
|
@ -248,7 +248,12 @@ case "$1" in
|
||||
if ! checkproc -n lockd; then
|
||||
echo -n " statd"
|
||||
killproc rpc.statd
|
||||
else
|
||||
# tell lockd to drop all client locks
|
||||
killproc -n -KILL lockd
|
||||
fi
|
||||
# make sure sm-notify is run on restart, as we have dropped some locks
|
||||
rm -f /var/run/sm-notify.pid
|
||||
#
|
||||
# rpc.mountd
|
||||
echo -n " mountd"
|
||||
|
Loading…
x
Reference in New Issue
Block a user