- nfsiostat: normalize the mountpoints passed in from the command line
If the mountpoint passed in from the command line contains a trailing
'/' character, then nfsiostat winds up printing statistics for all
mounts instead of printing statistics for the specific mount that was
requested.
Resolves: RHEL-90562
- Remove /var/lib/nfs/v4recovery
Legacy client tracking has been disabled since the v6.8 kernel (nfsdcld
is used for client tracking instead), so nfs-utils should no longer be
creating the /var/lib/nfs/v4recovery directory.
Keep the logic that removes the v4recovery directory in the %postun
scriptlet. That ensures that the directory is removed on package
upgrades (eventually we can get rid of that too).
Resolves: RHEL-137935
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
1. Fix the ownership of /var/lib/nfs/statd/state. It should be owned by
root:root, not rpcuser:rpcuser. This was fixed in RHEL8 in
https://bugzilla.redhat.com/show_bug.cgi?id=1733445 but that change
was never propagated to RHEL 9 or Fedora (and thus the issue is
present in RHEL 10 as well).
2. Both /var/lib/nfs/etab and /var/lib/nfs/rmtab are marked as %config
files, but they're not config files. They state files, just like
/var/lib/nfs/statd/state, so they should be marked %ghost instead.
Resolves: RHEL-77912
Resolves: RHEL-77913
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Also some clean up:
- Removed duplicate mount.nfs and nfsidmap man page declarations in the
files section for nfsv4-client-utils.
- Removed unused nfs-utils-2.5.4-nfsdcltrack-uint64_t.patch file.
Resolves: RHEL-65826
Resolves: RHEL-67041
Resolves: RHEL-67168
Resolves: RHEL-67786
Resolves: RHEL-68575
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
mount.nfs, mount.nfs4, umount.nfs, umount.nfs4, nfsdcltrack, and
rpc.statd are all still being installed in /sbin. Current best
practices say that packages should not package anything
directly in /sbin but rather /usr/sbin. The configure script in
nfs-utils has the --disable-sbin-override for this purpose.
Note that on RHEL /sbin is a symlink to /usr/sbin, so the binaries will
still be available via /sbin anyway.
This fixes the rpminspect pathmigration test failures.
Resolves: RHEL-65827
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Add explict version requirement for libnfsidmap to fix the rpminspect
rpmdeps test.
Resolves: RHEL-65828
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
b63be16 ("Rely on presets and use standard macros for systemd unit
handling (bz 2218006)") moved the logic to clean up /var/lib/nfs into
the %posttrans scriptlet. The problem is that the %posttrans scriptlet
runs during install and upgrade, not during uninstall. That creates a
scenario where uninstalling nfs-utils leaves the nfs-server.cleanup
file behind in /var/lib/rpm-state. When a subsequent install of
nfs-utils encounters this file, it will delete /var/lib/nfs/statd
and /var/lib/nfs/v4recovery:
--8<--
$ rpm --verify nfs-utils-1:2.7.1-2.el10.x86_64
missing /var/lib/nfs/statd
missing /var/lib/nfs/statd/sm
missing /var/lib/nfs/statd/sm.bak
missing /var/lib/nfs/v4recovery
--8<--
Resolves: RHEL-65824
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
When the test is run in OSCI, all the packages from the build are
installed - not just nfs-utils. The nfsv4-client-utils package installs
/etc/nfsmount.conf.d/10-nfsv4.conf config snippet, which we need to
disable before we do the version negotiation test or it will fail.
Resolves: RHEL-65829
Signed-off-by: Scott Mayhew <smayhew@redhat.com>