Sync from SUSE:SLFO:Main nfs-utils revision 2fc8c6ba68b4fb59303ee20c03778f5f
This commit is contained in:
commit
78fdf65218
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
10
idmapd.conf
Normal file
10
idmapd.conf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[General]
|
||||||
|
|
||||||
|
Verbosity = 0
|
||||||
|
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
|
||||||
|
Domain = localdomain
|
||||||
|
|
||||||
|
[Mapping]
|
||||||
|
|
||||||
|
Nobody-User = nobody
|
||||||
|
Nobody-Group = nobody
|
5
nfs-kernel-server.tmpfiles.conf
Normal file
5
nfs-kernel-server.tmpfiles.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# See tmpfiles.d(5) for details
|
||||||
|
#Type Path Mode UID GID Age Argument
|
||||||
|
d /var/lib/nfs
|
||||||
|
f /var/lib/nfs/etab
|
||||||
|
f /var/lib/nfs/rmtab
|
4
nfs-mountd.options.conf
Normal file
4
nfs-mountd.options.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[Service]
|
||||||
|
EnvironmentFile=-/etc/sysconfig/nfs
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=-/usr/sbin/rpc.mountd $MOUNTD_OPTIONS
|
4
nfs-server.options.conf
Normal file
4
nfs-server.options.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[Service]
|
||||||
|
EnvironmentFile=-/etc/sysconfig/nfs
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=-/usr/sbin/rpc.nfsd $NFSD_OPTIONS
|
19
nfs-utils-1.0.7-bind-syntax.patch
Normal file
19
nfs-utils-1.0.7-bind-syntax.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
support/export/export.c | 2
|
||||||
|
support/include/misc.h | 3
|
||||||
|
support/include/nfslib.h | 1
|
||||||
|
================================================================================
|
||||||
|
---
|
||||||
|
support/nfs/exports.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
--- a/support/nfs/exports.c
|
||||||
|
+++ b/support/nfs/exports.c
|
||||||
|
@@ -684,6 +684,8 @@ bad_option:
|
||||||
|
} else if (strncmp(opt, "replicas=", 9) == 0) {
|
||||||
|
ep->e_fslocmethod = FSLOC_REPLICA;
|
||||||
|
ep->e_fslocdata = strdup(opt+9);
|
||||||
|
+ } else if (strncmp(opt, "bind=/", 6) == 0) {
|
||||||
|
+ /* ignore this for now */
|
||||||
|
} else if (strncmp(opt, "sec=", 4) == 0) {
|
||||||
|
active = parse_flavors(opt+4, ep);
|
||||||
|
if (!active)
|
BIN
nfs-utils-2.6.3.tar.xz
(Stored with Git LFS)
Normal file
BIN
nfs-utils-2.6.3.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
2288
nfs-utils.changes
Normal file
2288
nfs-utils.changes
Normal file
File diff suppressed because it is too large
Load Diff
2
nfs-utils.rpmlintrc
Normal file
2
nfs-utils.rpmlintrc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# /var/lib/nfs/sm.bak is a valid directory needed by sm-notify
|
||||||
|
addFilter("suse-filelist-forbidden-backup-file.*sm.bak")
|
376
nfs-utils.spec
Normal file
376
nfs-utils.spec
Normal file
@ -0,0 +1,376 @@
|
|||||||
|
#
|
||||||
|
# spec file for package nfs-utils
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||||
|
%if ! %{defined _fillupdir}
|
||||||
|
%define _fillupdir /var/adm/fillup-templates
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Name: nfs-utils
|
||||||
|
Version: 2.6.3
|
||||||
|
Release: 0
|
||||||
|
Summary: Support Utilities for Kernel nfsd
|
||||||
|
License: GPL-2.0-or-later
|
||||||
|
Group: Productivity/Networking/NFS
|
||||||
|
URL: https://kernel.org/pub/linux/utils/nfs-utils/
|
||||||
|
Source0: https://kernel.org/pub/linux/utils/nfs-utils/%{version}/nfs-utils-%{version}.tar.xz
|
||||||
|
Source4: sysconfig.nfs
|
||||||
|
Source11: idmapd.conf
|
||||||
|
Source12: statd-user.conf
|
||||||
|
Source13: nfs-utils.rpmlintrc
|
||||||
|
Source20: nfs-mountd.options.conf
|
||||||
|
Source21: nfs-server.options.conf
|
||||||
|
Source22: rpc-gssd.options.conf
|
||||||
|
Source23: rpc-statd.options.conf
|
||||||
|
Source24: rpc-statd-notify.options.conf
|
||||||
|
Source25: rpc-svcgssd.options.conf
|
||||||
|
Source26: nfs.conf
|
||||||
|
Source27: nfs-kernel-server.tmpfiles.conf
|
||||||
|
Patch0: nfs-utils-1.0.7-bind-syntax.patch
|
||||||
|
BuildRequires: e2fsprogs-devel
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: rpcgen
|
||||||
|
BuildRequires: sysuser-tools
|
||||||
|
BuildRequires: tcpd-devel
|
||||||
|
BuildRequires: pkgconfig(devmapper)
|
||||||
|
BuildRequires: pkgconfig(kdb)
|
||||||
|
BuildRequires: pkgconfig(krb5)
|
||||||
|
BuildRequires: pkgconfig(libevent)
|
||||||
|
BuildRequires: pkgconfig(libkeyutils)
|
||||||
|
BuildRequires: pkgconfig(libtirpc)
|
||||||
|
BuildRequires: pkgconfig(mount)
|
||||||
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
|
Suggests: python-base
|
||||||
|
%{?systemd_ordering}
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package contains the NFS utilities. You can tune the number of
|
||||||
|
server threads via the sysconfig variable USE_KERNEL_NFSD_NUMBER. For
|
||||||
|
quota over NFS support, install the quota package.
|
||||||
|
|
||||||
|
%package -n nfs-client
|
||||||
|
Summary: Support Utilities for NFS
|
||||||
|
Group: Productivity/Networking/NFS
|
||||||
|
Requires: keyutils
|
||||||
|
Requires: netcfg
|
||||||
|
Requires: rpcbind
|
||||||
|
Requires(post): %fillup_prereq
|
||||||
|
Requires(pre): permissions
|
||||||
|
Obsoletes: nfs-utils < 1.1.0
|
||||||
|
%sysusers_requires
|
||||||
|
|
||||||
|
%description -n nfs-client
|
||||||
|
This package contains common NFS utilities which are needed for client
|
||||||
|
and kernel based server.
|
||||||
|
|
||||||
|
%package -n nfs-kernel-server
|
||||||
|
Summary: Support Utilities for Kernel nfsd
|
||||||
|
Group: Productivity/Networking/NFS
|
||||||
|
Requires: netcfg
|
||||||
|
Requires: nfs-client = %{version}
|
||||||
|
Requires: rpcbind
|
||||||
|
Requires: (kmod(nfsd.ko) if kernel)
|
||||||
|
Conflicts: nfs-server
|
||||||
|
Provides: nfs-utils = %{version}
|
||||||
|
Obsoletes: nfs-utils < 1.1.0
|
||||||
|
PreReq: permissions
|
||||||
|
|
||||||
|
%description -n nfs-kernel-server
|
||||||
|
This package contains support for the kernel based NFS server. You can
|
||||||
|
tune the number of server threads via the sysconfig variable
|
||||||
|
USE_KERNEL_NFSD_NUMBER. For quota over NFS support, install the quota
|
||||||
|
package.
|
||||||
|
|
||||||
|
%package -n libnfsidmap1
|
||||||
|
Summary: NFSv4 ID Mapping Library
|
||||||
|
Group: Productivity/Networking/NFS
|
||||||
|
Version: 1.0
|
||||||
|
Release: 0
|
||||||
|
Obsoletes: nfsidmap
|
||||||
|
|
||||||
|
%package -n nfsidmap-devel
|
||||||
|
Summary: NFSv4 ID Mapping Library development libraries
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Version: 1.0
|
||||||
|
Release: 0
|
||||||
|
Requires: libnfsidmap1 = %{version}
|
||||||
|
|
||||||
|
%description -n libnfsidmap1
|
||||||
|
In NFSv4, identities of users are conveyed by names rather than user ID
|
||||||
|
and group ID. Both the NFS server and client code in the kernel need to
|
||||||
|
translate these to numeric IDs.
|
||||||
|
|
||||||
|
%description -n nfsidmap-devel
|
||||||
|
In NFSv4, identities of users are conveyed by names rather than user ID
|
||||||
|
and group ID. Both the NFS server and client code in the kernel need to
|
||||||
|
translate these to numeric IDs.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -fvi
|
||||||
|
export CFLAGS="%{optflags} -fPIE"
|
||||||
|
export LDFLAGS="-pie"
|
||||||
|
%configure \
|
||||||
|
--with-systemd \
|
||||||
|
--enable-nfsv4 \
|
||||||
|
--enable-gss \
|
||||||
|
--enable-svcgss \
|
||||||
|
--enable-ipv6 \
|
||||||
|
--enable-nfsdcltrack \
|
||||||
|
--enable-mount \
|
||||||
|
--enable-libmount-mount \
|
||||||
|
--disable-static \
|
||||||
|
--disable-sbin-override \
|
||||||
|
--with-pluginpath=%{_libdir}/libnfsidmap-1.0.0 \
|
||||||
|
--enable-mountconfig
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
%sysusers_generate_pre %{SOURCE12} statd statd-user.conf
|
||||||
|
|
||||||
|
%install
|
||||||
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
||||||
|
find %{buildroot} -type f -name '*.la' -delete -print
|
||||||
|
install -D -m 644 %{SOURCE20} %{buildroot}%{_unitdir}/nfs-mountd.service.d/10-options.conf
|
||||||
|
install -D -m 644 %{SOURCE21} %{buildroot}%{_unitdir}/nfs-server.service.d/10-options.conf
|
||||||
|
install -D -m 644 %{SOURCE22} %{buildroot}%{_unitdir}/rpc-gssd.service.d/10-options.conf
|
||||||
|
install -D -m 644 %{SOURCE23} %{buildroot}%{_unitdir}/rpc-statd.service.d/10-options.conf
|
||||||
|
install -D -m 644 %{SOURCE24} %{buildroot}%{_unitdir}/rpc-statd-notify.service.d/10-options.conf
|
||||||
|
install -D -m 644 %{SOURCE25} %{buildroot}%{_unitdir}/rpc-svcgssd.service.d/10-options.conf
|
||||||
|
install -D -m 644 %{SOURCE26} %{buildroot}%{_sysconfdir}/nfs.conf
|
||||||
|
install -D -m 644 %{SOURCE27} %{buildroot}%{_prefix}/lib/tmpfiles.d/nfs-kernel-server.conf
|
||||||
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcnfs-server
|
||||||
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcnfs-client
|
||||||
|
# sysconfig-data
|
||||||
|
mkdir -p %{buildroot}%{_fillupdir}
|
||||||
|
install -m 644 %{SOURCE4} %{buildroot}%{_fillupdir}
|
||||||
|
# idmapd setup
|
||||||
|
install -D -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/idmapd.conf
|
||||||
|
mkdir -p -m 755 %{buildroot}%{_localstatedir}/lib/nfs/rpc_pipefs
|
||||||
|
mkdir -p -m 755 %{buildroot}%{_localstatedir}/lib/nfs/v4recovery
|
||||||
|
# sm-notify state
|
||||||
|
mkdir -p -m 755 %{buildroot}%{_localstatedir}/lib/nfs/sm
|
||||||
|
mkdir -p -m 755 %{buildroot}%{_localstatedir}/lib/nfs/sm.bak
|
||||||
|
touch %{buildroot}%{_localstatedir}/lib/nfs/state
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
|
||||||
|
install -m 644 utils/mount/nfsmount.conf %{buildroot}%{_sysconfdir}/nfsmount.conf
|
||||||
|
#
|
||||||
|
# hack to avoid automatic python dependency
|
||||||
|
chmod 644 `grep -l -r '^#!/usr/bin/python' %{buildroot}%{_sbindir}`
|
||||||
|
# Install sysusers.d template
|
||||||
|
mkdir -p %{buildroot}%{_sysusersdir}
|
||||||
|
install -m 644 %{SOURCE12} %{buildroot}%{_sysusersdir}/
|
||||||
|
|
||||||
|
%pre -n nfs-client -f statd.pre
|
||||||
|
%service_add_pre auth-rpcgss-module.service nfs-idmapd.service nfs-blkmap.service rpc-statd-notify.service rpc-gssd.service rpc-statd.service rpc-svcgssd.service
|
||||||
|
|
||||||
|
%post -n nfs-client
|
||||||
|
# lib/nfs must be root-owned.
|
||||||
|
# sm and sm.back and contents should be statd:statd,
|
||||||
|
# but only chown if the dirs are currently root-owned.
|
||||||
|
# This is needed for some upgraded, but chown is best avoided
|
||||||
|
# when not necessary
|
||||||
|
chown root:root %{_localstatedir}/lib/nfs > /dev/null 2>&1 || :
|
||||||
|
for i in sm sm.bak; do
|
||||||
|
p=%{_localstatedir}/lib/nfs/$i
|
||||||
|
if [ -d "$b" -a -n "`chown 2> /dev/null -c --from root statd:statd $p`" ]; then
|
||||||
|
chown -R statd:statd $p > /dev/null 2>&1 || :
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
### migrate from /var/lock/subsys
|
||||||
|
[ -d /run/nfs ] || mkdir /run/nfs
|
||||||
|
if [ -f %{_localstatedir}/lock/subsys/nfs-rpc.idmapd ]; then
|
||||||
|
mv %{_localstatedir}/lock/subsys/nfs-rpc.idmapd /run/nfs
|
||||||
|
fi
|
||||||
|
if [ -f %{_localstatedir}/lock/subsys/nfsserver-rpc.idmapd ]; then
|
||||||
|
mv %{_localstatedir}/lock/subsys/nfsserver-rpc.idmapd /run/nfs
|
||||||
|
fi
|
||||||
|
###
|
||||||
|
%{fillup_only -n nfs nfs}
|
||||||
|
#
|
||||||
|
%set_permissions %{_sbindir}/mount.nfs
|
||||||
|
/sbin/ldconfig
|
||||||
|
%service_add_post auth-rpcgss-module.service nfs-idmapd.service nfs-blkmap.service rpc-statd-notify.service rpc-gssd.service rpc-statd.service rpc-svcgssd.service
|
||||||
|
|
||||||
|
%preun -n nfs-client
|
||||||
|
%service_del_preun auth-rpcgss-module.service nfs-idmapd.service nfs-blkmap.service rpc-statd-notify.service rpc-gssd.service rpc-statd.service rpc-svcgssd.service
|
||||||
|
|
||||||
|
%postun -n nfs-client
|
||||||
|
/sbin/ldconfig
|
||||||
|
%service_del_postun auth-rpcgss-module.service nfs-idmapd.service nfs-blkmap.service rpc-statd-notify.service rpc-gssd.service rpc-statd.service rpc-svcgssd.service
|
||||||
|
|
||||||
|
%verifyscript -n nfs-client
|
||||||
|
%verify_permissions -e %{_sbindir}/mount.nfs
|
||||||
|
|
||||||
|
%pre -n nfs-kernel-server
|
||||||
|
%service_add_pre nfs-svcgssd.service nfs-mountd.service nfs-server.service
|
||||||
|
|
||||||
|
%preun -n nfs-kernel-server
|
||||||
|
%service_del_preun nfs-svcgssd.service nfs-mountd.service nfs-server.service
|
||||||
|
|
||||||
|
%post -n nfs-kernel-server
|
||||||
|
### migrate from /var/lock/subsys
|
||||||
|
[ -d /run/nfs ] || mkdir /run/nfs
|
||||||
|
if [ -f %{_localstatedir}/lock/subsys/nfs-rpc.idmapd ]; then
|
||||||
|
mv %{_localstatedir}/lock/subsys/nfs-rpc.idmapd /run/nfs
|
||||||
|
fi
|
||||||
|
if [ -f %{_localstatedir}/lock/subsys/nfsserver-rpc.idmapd ]; then
|
||||||
|
mv %{_localstatedir}/lock/subsys/nfsserver-rpc.idmapd /run/nfs
|
||||||
|
fi
|
||||||
|
###
|
||||||
|
%service_add_post nfs-mountd.service nfs-server.service nfsdcld.service
|
||||||
|
%tmpfiles_create nfs-kernel-server.conf
|
||||||
|
%set_permissions /var/lib/nfs/rmtab
|
||||||
|
|
||||||
|
%postun -n nfs-kernel-server
|
||||||
|
%service_del_postun nfs-mountd.service nfs-server.service nfsdcld.service
|
||||||
|
|
||||||
|
%post -n libnfsidmap1 -p /sbin/ldconfig
|
||||||
|
%postun -n libnfsidmap1 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%verifyscript -n nfs-kernel-server
|
||||||
|
%verify_permissions -e /var/lib/nfs/rmtab
|
||||||
|
|
||||||
|
%files -n nfs-client
|
||||||
|
%license COPYING
|
||||||
|
%config %{_sysconfdir}/idmapd.conf
|
||||||
|
%config %{_sysconfdir}/nfsmount.conf
|
||||||
|
%config %{_sysconfdir}/nfs.conf
|
||||||
|
%verify(not mode) %attr(0755,root,root) %{_sbindir}/mount.nfs
|
||||||
|
%{_sbindir}/mount.nfs4
|
||||||
|
%{_sbindir}/umount.nfs
|
||||||
|
%{_sbindir}/umount.nfs4
|
||||||
|
%attr(0755,root,root) %{_sbindir}/mountstats
|
||||||
|
%attr(0755,root,root) %{_sbindir}/nfsiostat
|
||||||
|
%{_sbindir}/nfsdcld
|
||||||
|
%{_sbindir}/nfsidmap
|
||||||
|
%{_sbindir}/nfsstat
|
||||||
|
%{_sbindir}/rcnfs-client
|
||||||
|
%{_sbindir}/rpc.gssd
|
||||||
|
%{_sbindir}/rpc.idmapd
|
||||||
|
%{_sbindir}/rpc.statd
|
||||||
|
%{_sbindir}/rpcctl
|
||||||
|
%{_sbindir}/rpcdebug
|
||||||
|
%{_sbindir}/showmount
|
||||||
|
%{_sbindir}/sm-notify
|
||||||
|
%{_sbindir}/start-statd
|
||||||
|
%{_sbindir}/blkmapd
|
||||||
|
%{_sbindir}/rpc.svcgssd
|
||||||
|
%{_sbindir}/nfsconf
|
||||||
|
%{_udevrulesdir}/60-nfs.rules
|
||||||
|
%{_udevrulesdir}/99-nfs.rules
|
||||||
|
%{_unitdir}/auth-rpcgss-module.service
|
||||||
|
%{_unitdir}/fsidd.service
|
||||||
|
%{_unitdir}/nfs-blkmap.service
|
||||||
|
%{_unitdir}/nfs-client.target
|
||||||
|
%{_unitdir}/nfs-idmapd.service
|
||||||
|
%{_unitdir}/nfs-utils.service
|
||||||
|
%{_unitdir}/nfsdcld.service
|
||||||
|
%{_unitdir}/rpc-gssd.service
|
||||||
|
%{_unitdir}/rpc-gssd.service.d
|
||||||
|
%{_unitdir}/rpc_pipefs.target
|
||||||
|
%{_unitdir}/rpc-statd-notify.service
|
||||||
|
%{_unitdir}/rpc-statd-notify.service.d
|
||||||
|
%{_unitdir}/rpc-statd.service
|
||||||
|
%{_unitdir}/rpc-statd.service.d
|
||||||
|
%{_unitdir}/rpc-svcgssd.service
|
||||||
|
%{_unitdir}/rpc-svcgssd.service.d
|
||||||
|
%{_unitdir}/var-lib-nfs-rpc_pipefs.mount
|
||||||
|
%dir %{_systemdgeneratordir}
|
||||||
|
%{_systemdgeneratordir}/nfs-server-generator
|
||||||
|
%{_systemdgeneratordir}/rpc-pipefs-generator
|
||||||
|
%{_mandir}/man5/idmapd.conf.5%{ext_man}
|
||||||
|
%{_mandir}/man5/nfs.5%{ext_man}
|
||||||
|
%{_mandir}/man5/nfs.conf.5%{ext_man}
|
||||||
|
%{_mandir}/man5/nfsmount.conf.5%{ext_man}
|
||||||
|
%{_mandir}/man5/nfsrahead.5%{ext_man}
|
||||||
|
%{_mandir}/man7/nfs.systemd.7%{ext_man}
|
||||||
|
%{_mandir}/man8/blkmapd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/gssd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/idmapd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/mount.nfs.8%{ext_man}
|
||||||
|
%{_mandir}/man8/mountstats.8%{ext_man}
|
||||||
|
%{_mandir}/man8/nfsconf.8%{ext_man}
|
||||||
|
%{_mandir}/man8/nfsdcld.8%{ext_man}
|
||||||
|
%{_mandir}/man8/nfsdclddb.8%{ext_man}
|
||||||
|
%{_mandir}/man8/nfsdclnts.8%{ext_man}
|
||||||
|
%{_mandir}/man8/nfsidmap.8%{ext_man}
|
||||||
|
%{_mandir}/man8/nfsiostat.8%{ext_man}
|
||||||
|
%{_mandir}/man8/nfsstat.8%{ext_man}
|
||||||
|
%{_mandir}/man8/rpc.gssd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/rpc.idmapd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/rpc.sm-notify.8%{ext_man}
|
||||||
|
%{_mandir}/man8/rpc.statd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/rpc.svcgssd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/rpcctl.8%{ext_man}
|
||||||
|
%{_mandir}/man8/rpcdebug.8%{ext_man}
|
||||||
|
%{_mandir}/man8/showmount.8%{ext_man}
|
||||||
|
%{_mandir}/man8/sm-notify.8%{ext_man}
|
||||||
|
%{_mandir}/man8/statd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/svcgssd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/umount.nfs.8%{ext_man}
|
||||||
|
%{_fillupdir}/sysconfig.nfs
|
||||||
|
%{_sysusersdir}/statd-user.conf
|
||||||
|
%dir %{_localstatedir}/lib/nfs
|
||||||
|
%dir %{_localstatedir}/lib/nfs/rpc_pipefs
|
||||||
|
%dir %{_localstatedir}/lib/nfs/v4recovery
|
||||||
|
%attr(0700,statd,statd) %dir %{_localstatedir}/lib/nfs/sm
|
||||||
|
%attr(0700,statd,statd) %dir %{_localstatedir}/lib/nfs/sm.bak
|
||||||
|
%ghost %{_localstatedir}/lib/nfs/state
|
||||||
|
%{_libexecdir}/nfsrahead
|
||||||
|
|
||||||
|
%files -n nfs-kernel-server
|
||||||
|
%{_unitdir}/nfs-mountd.service
|
||||||
|
%{_unitdir}/nfs-mountd.service.d
|
||||||
|
%{_unitdir}/nfs-server.service
|
||||||
|
%{_unitdir}/nfs-server.service.d
|
||||||
|
%{_unitdir}/proc-fs-nfsd.mount
|
||||||
|
%{_prefix}/lib/tmpfiles.d/nfs-kernel-server.conf
|
||||||
|
%{_sbindir}/exportfs
|
||||||
|
%{_sbindir}/fsidd
|
||||||
|
%{_sbindir}/rcnfs-server
|
||||||
|
%{_sbindir}/rpc.mountd
|
||||||
|
%{_sbindir}/rpc.nfsd
|
||||||
|
%{_sbindir}/nfsdcltrack
|
||||||
|
%attr(0755,root,root) %{_sbindir}/nfsdclddb
|
||||||
|
%attr(0755,root,root) %{_sbindir}/nfsdclnts
|
||||||
|
%{_mandir}/man5/exports.5%{ext_man}
|
||||||
|
%{_mandir}/man7/nfsd.7%{ext_man}
|
||||||
|
%{_mandir}/man8/exportfs.8%{ext_man}
|
||||||
|
%{_mandir}/man8/mountd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/nfsd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/rpc.mountd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/rpc.nfsd.8%{ext_man}
|
||||||
|
%{_mandir}/man8/nfsdcltrack.8%{ext_man}
|
||||||
|
%config(noreplace) %{_localstatedir}/lib/nfs/etab
|
||||||
|
%config(noreplace) %{_localstatedir}/lib/nfs/rmtab
|
||||||
|
|
||||||
|
%files -n libnfsidmap1
|
||||||
|
%{_libdir}/libnfsidmap-1.0.0/
|
||||||
|
%{_libdir}/libnfsidmap.so.1*
|
||||||
|
|
||||||
|
%files -n nfsidmap-devel
|
||||||
|
%{_libdir}/libnfsidmap.so
|
||||||
|
%{_includedir}/*.h
|
||||||
|
%{_libdir}/pkgconfig/libnfsidmap.pc
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
%doc support/nfsidmap/README
|
||||||
|
|
||||||
|
%changelog
|
88
nfs.conf
Normal file
88
nfs.conf
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
#
|
||||||
|
# This is a general configuration for the
|
||||||
|
# NFS daemons and tools
|
||||||
|
# DO NOT MAKE CHANGES TO THIS FILE as they will
|
||||||
|
# be lost on the next software update. Make changes
|
||||||
|
# to /etc/sysconfig/nfs or /etc/nfs.conf.local instead.
|
||||||
|
# /etc/nfs.conf.local can include multiple sections, just
|
||||||
|
# like this file.
|
||||||
|
|
||||||
|
[environment]
|
||||||
|
include = /etc/sysconfig/nfs
|
||||||
|
include = -/etc/nfs.conf.local
|
||||||
|
[general]
|
||||||
|
pipefs-directory=$RPC_PIPEFS_DIR
|
||||||
|
#
|
||||||
|
#[exportfs]
|
||||||
|
# debug=0
|
||||||
|
#
|
||||||
|
#[gssd]
|
||||||
|
# verbosity=0
|
||||||
|
# rpc-verbosity=0
|
||||||
|
# use-memcache=0
|
||||||
|
# use-machine-creds=1
|
||||||
|
# use-gss-proxy=0
|
||||||
|
avoid-dns=$NFS_GSSD_AVOID_DNS
|
||||||
|
# limit-to-legacy-enctypes=0
|
||||||
|
# context-timeout=0
|
||||||
|
# rpc-timeout=5
|
||||||
|
# keytab-file=/etc/krb5.keytab
|
||||||
|
# cred-cache-directory=
|
||||||
|
# preferred-realm=
|
||||||
|
#
|
||||||
|
[lockd]
|
||||||
|
port=$LOCKD_TCPPORT
|
||||||
|
udp-port=$LOCKD_UDPPORT
|
||||||
|
#
|
||||||
|
[mountd]
|
||||||
|
# debug=0
|
||||||
|
# manage-gids=n
|
||||||
|
# descriptors=0
|
||||||
|
port= $MOUNTD_PORT
|
||||||
|
# threads=1
|
||||||
|
# reverse-lookup=n
|
||||||
|
# state-directory-path=/var/lib/nfs
|
||||||
|
# ha-callout=
|
||||||
|
#
|
||||||
|
#[nfsdcltrack]
|
||||||
|
# debug=0
|
||||||
|
# storagedir=/var/lib/nfs/nfsdcltrack
|
||||||
|
#
|
||||||
|
[nfsd]
|
||||||
|
# debug=0
|
||||||
|
threads= $USE_KERNEL_NFSD_NUMBER
|
||||||
|
# host=
|
||||||
|
# port=0
|
||||||
|
grace-time=$NFSV4GRACETIME
|
||||||
|
lease-time=$NFSV4LEASETIME
|
||||||
|
# udp=n
|
||||||
|
# tcp=y
|
||||||
|
# vers2=n
|
||||||
|
vers3=$NFS3_SERVER_SUPPORT
|
||||||
|
vers4=$NFS4_SUPPORT
|
||||||
|
# vers4.0=y
|
||||||
|
# vers4.1=y
|
||||||
|
# vers4.2=y
|
||||||
|
# rdma=n
|
||||||
|
# rdma-port=20049
|
||||||
|
scope=$NFSD_SCOPE
|
||||||
|
#
|
||||||
|
[statd]
|
||||||
|
# debug=0
|
||||||
|
port=$STATD_PORT
|
||||||
|
# outgoing-port=0
|
||||||
|
name=$STATD_HOSTNAME
|
||||||
|
# state-directory-path=/var/lib/nfs/statd
|
||||||
|
# ha-callout=
|
||||||
|
# no-notify=0
|
||||||
|
#
|
||||||
|
#[sm-notify]
|
||||||
|
# debug=0
|
||||||
|
# force=0
|
||||||
|
# retry-time=900
|
||||||
|
# outgoing-port=
|
||||||
|
# outgoing-addr=
|
||||||
|
# lift-grace=y
|
||||||
|
#
|
||||||
|
#[svcgssd]
|
||||||
|
# principal=
|
4
rpc-gssd.options.conf
Normal file
4
rpc-gssd.options.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[Service]
|
||||||
|
EnvironmentFile=-/etc/sysconfig/nfs
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=-/usr/sbin/rpc.gssd $GSSD_OPTIONS
|
4
rpc-statd-notify.options.conf
Normal file
4
rpc-statd-notify.options.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStart=
|
||||||
|
EnvironmentFile=-/etc/sysconfig/nfs
|
||||||
|
ExecStart=-/usr/sbin/sm-notify $SM_NOTIFY_OPTIONS
|
4
rpc-statd.options.conf
Normal file
4
rpc-statd.options.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[Service]
|
||||||
|
EnvironmentFile=-/etc/sysconfig/nfs
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=-/usr/sbin/rpc.statd $STATD_OPTIONS
|
4
rpc-svcgssd.options.conf
Normal file
4
rpc-svcgssd.options.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[Service]
|
||||||
|
EnvironmentFile=-/etc/sysconfig/nfs
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=-/usr/sbin/rpc.svcgssd $SVCGSSD_OPTIONS
|
2
statd-user.conf
Normal file
2
statd-user.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Type Name ID GECOS [HOME] Shell
|
||||||
|
u statd - "NFS statd daemon" /var/lib/nfs -
|
253
sysconfig.nfs
Normal file
253
sysconfig.nfs
Normal file
@ -0,0 +1,253 @@
|
|||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: number of threads for kernel nfs server
|
||||||
|
## Type: integer
|
||||||
|
## Default: 4
|
||||||
|
## ServiceRestart: nfs-server
|
||||||
|
#
|
||||||
|
# the kernel nfs-server supports multiple server threads
|
||||||
|
#
|
||||||
|
USE_KERNEL_NFSD_NUMBER="4"
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: use fixed port number for mountd
|
||||||
|
## Type: integer
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart: nfs-mountd
|
||||||
|
#
|
||||||
|
# Only set this if you want to start mountd on a fixed
|
||||||
|
# port instead of the port assigned by rpc. Only for use
|
||||||
|
# to export nfs-filesystems through firewalls.
|
||||||
|
#
|
||||||
|
MOUNTD_PORT=""
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: NFSv3 server support
|
||||||
|
## Type: yesno
|
||||||
|
## Default: yes
|
||||||
|
## ServiceRestart: nfs-server
|
||||||
|
#
|
||||||
|
# Enable NFSv3 server support (yes/no)
|
||||||
|
# This causes the NFS server to respond to
|
||||||
|
# NFSv2 and NFSv3 requests. Only disable this
|
||||||
|
# if you want to ensure only NFSv4 is used.
|
||||||
|
#
|
||||||
|
NFS3_SERVER_SUPPORT="yes"
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: NFSv4 protocol support
|
||||||
|
## Type: yesno
|
||||||
|
## Default: yes
|
||||||
|
## ServiceRestart: nfs-server
|
||||||
|
#
|
||||||
|
# Enable NFSv4 support (server and/or client) (yes/no)
|
||||||
|
#
|
||||||
|
NFS4_SUPPORT="yes"
|
||||||
|
|
||||||
|
## 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=""
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: Port rpc.statd should listen on
|
||||||
|
## Type: integer
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart: rpc-statd
|
||||||
|
#
|
||||||
|
# Statd will normally choose a random port to listen on and
|
||||||
|
# SuSE-Firewall is able to detect which port and allow for it.
|
||||||
|
# If you have another firewall, you may want to set a fixed
|
||||||
|
# port number which can then be opened in that firewall.
|
||||||
|
STATD_PORT=""
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: Hostname used by rpc.statd
|
||||||
|
## Type: string
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart: rpc-statd
|
||||||
|
#
|
||||||
|
# statd will normally use the system hostname in status
|
||||||
|
# monitoring conversations with other hosts. If a different
|
||||||
|
# host name should be used, as can be useful with fail-over
|
||||||
|
# configurations, that name should be given here.
|
||||||
|
#
|
||||||
|
STATD_HOSTNAME=""
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: TCP Port that lockd should listen on
|
||||||
|
## Type: integer
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart: nfs-server
|
||||||
|
#
|
||||||
|
# Lockd will normally choose a random port to listen on and
|
||||||
|
# SuSE-Firewall is able to detect which port and allow for it.
|
||||||
|
# If you have another firewall, you may want to set a fixed
|
||||||
|
# port number which can then be opened in that firewall.
|
||||||
|
# lockd opens a UDP and a TCP port. This setting only affect
|
||||||
|
# the TCP port.
|
||||||
|
LOCKD_TCPPORT=""
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: UDP Port that lockd should listen on
|
||||||
|
## Type: integer
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart: nfs-server
|
||||||
|
#
|
||||||
|
# Lockd will normally choose a random port to listen on and
|
||||||
|
# SuSE-Firewall is able to detect which port and allow for it.
|
||||||
|
# If you have another firewall, you may want to set a fixed
|
||||||
|
# port number which can then be opened in that firewall.
|
||||||
|
# lockd opens a UDP and a TCP port. This setting only affect
|
||||||
|
# the UDP port.
|
||||||
|
LOCKD_UDPPORT=""
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: Command line parameters for rpc.statd
|
||||||
|
## Type: string
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart: rpc-statd
|
||||||
|
#
|
||||||
|
# Custom parameters for rpc.statd daemon. Typically this will
|
||||||
|
# be used to set the port number (-p).
|
||||||
|
#
|
||||||
|
STATD_OPTIONS=""
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: Lease time for NFSv4 leases
|
||||||
|
## Type: integer
|
||||||
|
## Default: "90"
|
||||||
|
#
|
||||||
|
# Set the lease time for the NFSv4 server. When a client
|
||||||
|
# crashes or is separated from the server by a network problem,
|
||||||
|
# this indicates how long the server will continue to honor
|
||||||
|
# locks it held and when it will allow other clients to take
|
||||||
|
# conflicting locks. A shorter time means network problems are
|
||||||
|
# more likely to hurt filesystem functionality, but genuine
|
||||||
|
# client crash are detected more quickly.
|
||||||
|
# The NFSV4GRACETIME setting must be not less than the lease
|
||||||
|
# time, so another benefit of short lease times is that server
|
||||||
|
# reboots will disrupt filesystem traffic for a shorter period
|
||||||
|
# of time.
|
||||||
|
# This choice is primarily a trade-off between surviving
|
||||||
|
# transient network problems, and expediting completion of
|
||||||
|
# server reboot or fail-over.
|
||||||
|
# The default is 90 second. A practical minimum is about 15
|
||||||
|
# seconds.
|
||||||
|
#
|
||||||
|
NFSV4LEASETIME="90"
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: Grace time for NFSv4 server restart
|
||||||
|
## Type: integer
|
||||||
|
## Default: "90"
|
||||||
|
#
|
||||||
|
# Set the NFSv4 server grace time. When the server restarts it
|
||||||
|
# waits this long for pre-existing clients to re-establish any
|
||||||
|
# locks that they held before the restart. During this time
|
||||||
|
# new locks cannot be granted and new file opens cannot be
|
||||||
|
# allowed.
|
||||||
|
# A shorter time allows fast restart or fail-over completion,
|
||||||
|
# but requires the NFSV4LEASETIME to be shorter which may
|
||||||
|
# increase the impact of temporary network problems.
|
||||||
|
# The default is 90 seconds. The value must not be less than
|
||||||
|
# NFSV4LEASETIME.
|
||||||
|
# When NFSv4.1 or later is in use, and when all clients report
|
||||||
|
# when they finish reclaiming locks, the grace time can finish
|
||||||
|
# early and so a large value has little cost. The
|
||||||
|
# NFSV4LEASETIME is then most significant in managing restart
|
||||||
|
# timing.
|
||||||
|
#
|
||||||
|
NFSV4GRACETIME="90"
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: Alternate mount point for rpc_pipefs filesystem
|
||||||
|
## Type: string
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart: nfs-utils
|
||||||
|
#
|
||||||
|
# In a high-availabilty configuration it is possible that /var/lib/nfs
|
||||||
|
# is redirected so some shared storage and so it is not convenient to
|
||||||
|
# mount the rpc_pipefs filesystem at /var/lib/nfs/rpc_pipefs. In that
|
||||||
|
# case an alternate mount point can be given here.
|
||||||
|
RPC_PIPEFS_DIR=""
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: Options for svcgssd
|
||||||
|
## Type: string
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart: rpc-svcgssd
|
||||||
|
#
|
||||||
|
# Normally svcgssd does not require any option. However in a
|
||||||
|
# high-availabilty configuration it can be useful to pass "-n"
|
||||||
|
# to guide the choice of default credential. To allow for that
|
||||||
|
# case or any other requiring options ot svcgssd, they can
|
||||||
|
# be specified here.
|
||||||
|
SVCGSSD_OPTIONS=""
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: Extra options for nfsd
|
||||||
|
## Type: string
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart nfs-server
|
||||||
|
#
|
||||||
|
# This setting allows extra options to be specified for NFSD, such as
|
||||||
|
# -H <shared_hostname> in a high-availability configuration.
|
||||||
|
NFSD_OPTIONS=""
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: Extra options for gssd
|
||||||
|
## Type: string
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart: rpc-gssd
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart nfs-mountd
|
||||||
|
#
|
||||||
|
# Normally mountd does not require any options. In some circumstances,
|
||||||
|
# -n, -t, -g or other options might be useful. See "man 8 rpc.mountd" for
|
||||||
|
# details. Those options can be set here.
|
||||||
|
# -p or -N should be set using MOUNTD_PORT or NFS4_SUPPORT rather than
|
||||||
|
# this option.
|
||||||
|
MOUNTD_OPTIONS=""
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: Avoid DNS lookups for kerberos principal
|
||||||
|
## Type: yesno
|
||||||
|
## Default: no
|
||||||
|
## ServiceRestart: rpc-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"
|
||||||
|
|
||||||
|
## Path: Network/File systems/NFS server
|
||||||
|
## Description: Set v4.1+ scope reported by server
|
||||||
|
## Type: string
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart: nfs-server
|
||||||
|
#
|
||||||
|
# Set the scope reported by the NFS server. When nothing
|
||||||
|
# is given the kernel uses the configured hostname as
|
||||||
|
# a default. When NFS is used in a fail-over configuration
|
||||||
|
# it is important that all hosts which server the same resource
|
||||||
|
# report the same scope.
|
||||||
|
#
|
||||||
|
NFSD_SCOPE=""
|
Loading…
Reference in New Issue
Block a user