forked from pool/nfs-utils
- New sysconfig variables
NFS4_SERVER_MINOR_VERSION, GSSD_OPTIONS, NFS_GSSD_AVOID_DNS to enable various configurations. - bug fixes to init scripts to avoid unmounting everything(!) and to avoid corrupting /run/nfs/bind.mounts OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=88
This commit is contained in:
parent
3ade29ac96
commit
1659d2c52f
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 22 06:47:57 UTC 2013 - nfbrown@suse.com
|
||||
|
||||
- New sysconfig variables
|
||||
NFS4_SERVER_MINOR_VERSION, GSSD_OPTIONS,
|
||||
NFS_GSSD_AVOID_DNS
|
||||
to enable various configurations.
|
||||
- bug fixes to init scripts to avoid unmounting everything(!)
|
||||
and to avoid corrupting /run/nfs/bind.mounts
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 22 06:12:53 UTC 2013 - nfbrown@suse.com
|
||||
|
||||
|
13
nfs.init
13
nfs.init
@ -94,6 +94,15 @@ esac
|
||||
if test -n "$flavors" ; then
|
||||
NEED_GSSD=yes
|
||||
fi
|
||||
if test -n "$GSSD_OPTIONS"; then
|
||||
NEED_GSSD=yes
|
||||
fi
|
||||
|
||||
case $NFS_GSSD_AVOID_DNS in
|
||||
[Nn]*) ignore_dns=-D ;;
|
||||
[Yy]*) ignore_dns= ;;
|
||||
* ) ignore_dns=-D
|
||||
esac
|
||||
|
||||
if test "$NFS4_SUPPORT" = yes ; then
|
||||
NEED_IDMAPD=yes
|
||||
@ -153,7 +162,7 @@ do_start_gssd() {
|
||||
/sbin/modprobe rpcsec_gss_$flavor
|
||||
done
|
||||
mount_rpc_pipefs
|
||||
startproc $GSSD_BIN
|
||||
startproc $GSSD_BIN $ignore_dns $GSSD_OPTIONS
|
||||
return $?
|
||||
}
|
||||
|
||||
@ -354,7 +363,7 @@ case "$1-$nfs" in
|
||||
if checkproc ${GSSD_BIN##*/}; then
|
||||
echo -n " gssd"
|
||||
killproc ${GSSD_BIN##*/}
|
||||
startproc $GSSD_BIN
|
||||
startproc $GSSD_BIN $ignore_dns $GSSD_OPTIONS
|
||||
fi
|
||||
if checkproc ${IDMAPD_BIN##*/}; then
|
||||
echo -n " idmapd"
|
||||
|
@ -108,7 +108,7 @@ nfs4_bind_mounts() {
|
||||
echo "NFS: Is it no longer needed and may cease to work."
|
||||
echo "NFS: Please remove these settings."
|
||||
warned=yes
|
||||
fi
|
||||
fi >&2
|
||||
test -d "$export" || mkdir -p "$export"
|
||||
mount -o bind "$dir" "$export"
|
||||
echo "$dir" "$export"
|
||||
@ -118,7 +118,7 @@ nfs4_bind_mounts() {
|
||||
nfs4_unbind_mounts() {
|
||||
sort -r -k2 $NFSD_BIND_MOUNTS |
|
||||
while read src mountpoint crap; do
|
||||
umount -l "$mountpoint"
|
||||
[ -n "$mountpoint" ] && umount -l "$mountpoint"
|
||||
done
|
||||
> $NFSD_BIND_MOUNTS
|
||||
}
|
||||
@ -188,6 +188,9 @@ case "$1" in
|
||||
if [ "$NFS4_SUPPORT" != "yes" ]; then
|
||||
VERSION_PARAMS="--no-nfs-version 4"
|
||||
fi
|
||||
if [ "$NFS4_SERVER_MINOR_VERSION" != "0" ]; then
|
||||
VERSION_PARAMS="$VERSION_PARAMS -nfs-version 4 -nfs-version 4.$NFS4_SERVER_MINOR_VERSION"
|
||||
fi
|
||||
if [ -n "$NFSV4LEASETIME" -a -f /proc/fs/nfsd/nfsv4leasetime ]; then
|
||||
echo "$NFSV4LEASETIME" > /proc/fs/nfsd/nfsv4leasetime
|
||||
fi
|
||||
|
@ -49,15 +49,28 @@ NFS3_SERVER_SUPPORT="yes"
|
||||
## Default: yes
|
||||
## ServiceRestart: nfs nfsserver
|
||||
#
|
||||
# Enable NFSv4 support (yes/no)
|
||||
# Enable NFSv4 support (server and/or client) (yes/no)
|
||||
#
|
||||
NFS4_SUPPORT="yes"
|
||||
|
||||
## Path: Network/File systems/NFS server
|
||||
## Description: NFSv4 server minor version
|
||||
## Type: integer
|
||||
## Default: 0
|
||||
## ServiceRestart: nfsserver
|
||||
#
|
||||
# Select NFSv4 minor version for server to support (0, 1).
|
||||
# If '1' is selected, NFSv4.0 will also be supported.
|
||||
NFS4_SERVER_MINOR_VERSION="0"
|
||||
|
||||
## Path: Network/File systems/NFS server
|
||||
## Description: Network Status Monitor options
|
||||
## Type: string
|
||||
## Default: ""
|
||||
#
|
||||
# If a fixed port should be used to send reboot notification
|
||||
# messages to other systems, that port should be given
|
||||
# here as "-p portnumber".
|
||||
#
|
||||
SM_NOTIFY_OPTIONS=""
|
||||
|
||||
@ -133,6 +146,16 @@ SVCGSSD_OPTIONS=""
|
||||
# -H <shared_hostname> in a high-availability configuration.
|
||||
NFSD_OPTIONS=""
|
||||
|
||||
## Path: Network/File systems/NFS server
|
||||
## Description: Extra options for gssd
|
||||
## Type: string
|
||||
## Default: ""
|
||||
#
|
||||
# Normally gssd does not require any options. In some circumstances,
|
||||
# -n, -l or other options might be useful. See "man 8 rpc.gssd" for
|
||||
# details. Those options can be set here.
|
||||
GSSD_OPTIONS=""
|
||||
|
||||
## Path: Network/File systems/NFS server
|
||||
## Description: Extra options for mountd
|
||||
## Type: string
|
||||
@ -142,3 +165,16 @@ NFSD_OPTIONS=""
|
||||
# such as --manage-gids.
|
||||
MOUNTD_OPTIONS=""
|
||||
|
||||
## Path: Network/File systems/NFS server
|
||||
## Description: Avoid DNS lookups for kerberos principal
|
||||
## Type: yesno
|
||||
## Default: no
|
||||
## ServiceRestart: gssd
|
||||
#
|
||||
# Avoid DNS lookups when determining kerberos identity
|
||||
# of NFS server (yes/no)
|
||||
# "yes" is safest, but "no" might be needed to preserve
|
||||
# correct behaviour at sites that don't use
|
||||
# Fully Qualified Domain Names when mounting NFS Shares.
|
||||
#
|
||||
NFS_GSSD_AVOID_DNS="no"
|
||||
|
Loading…
x
Reference in New Issue
Block a user