nfs-utils/nfs-utils-1.0.6-mountd.patch

32 lines
794 B
Diff
Raw Normal View History

auto-import changelog data from nfs-utils-1.0.6-19.fc2.src.rpm Mon Mar 22 2004 <SteveD@RedHat.com> - Make sure check_new_cache() is looking in the right place Wed Mar 17 2004 <SteveD@RedHat.com> - Changed the v4 initscripts to use $prog for the arugment to daemon Tue Mar 16 2004 <SteveD@RedHat.com> - Made the nfs4 daemons initscripts work better when sunrpc is not a module - added more checks to see if modules are being used. Mon Mar 15 2004 <SteveD@RedHat.com> - Add patch that sets up gssapi_mech.conf correctly Fri Mar 12 2004 <SteveD@RedHat.com> - Added the shutting down of the rpc v4 daemons. - Updated the Red Hat only patch with some init script changes. Thu Mar 11 2004 Bill Nottingham <notting@redhat.com> - rpc_pipefs mounting and aliases are now in modutils; require that Thu Mar 11 2004 <SteveD@RedHat.com> - Updated the gssd patch. Sun Mar 07 2004 <SteveD@RedHat.com> - Added the addition and deletion of rpc_pipefs to /etc/fstab - Added the addition and deletion of module aliases to /etc/modules.conf Mon Mar 01 2004 <SteveD@RedHat.com> - Removed gssd tarball and old nfsv4 patch. - Added new nfsv4 patches that include both the gssd and idmapd daemons - Added redhat-only v4 patch that reduces the static librpc.a to only contain gss rpc related routines (I would rather have gssd use the glibc rpc routines) -Changed the gssd svcgssd init scripts to only start up if SECURE_NFS is set to 'yes' in /etc/sysconfig/nfs Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> - rebuilt Thu Feb 12 2004 Thomas Woerner <twoerner@redhat.com> - make rpc.lockd, rpc.statd, rpc.mountd and rpc.nfsd pie Wed Jan 28 2004 Steve Dickson <SteveD@RedHat.com> - Added the NFSv4 bits Mon Dec 29 2003 Steve Dickson <SteveD@RedHat.com> - Added the -z flag to nfsstat Wed Dec 24 2003 Steve Dickson <SteveD@RedHat.com> - Fixed lockd port setting in nfs.int script
2004-09-09 09:23:36 +00:00
#
# Make sure check_new_cache() is looking in the right place
#
--- src/support/nfs/cacheio.c.org 2003-08-04 00:12:16.000000000 -0400
+++ src/support/nfs/cacheio.c 2004-03-22 18:12:55.163534208 -0500
@@ -223,12 +223,23 @@ int readline(int fd, char **buf, int *le
* This succeeds iff the "nfsd" filesystem is mounted on
* /proc/fs/nfs
*/
+static char *cachelist[] = {
+ { "auth.unix.ip" }, { "nfsd.export" }, { "nfsd.fh" },
+ { NULL, NULL }
+};
int
check_new_cache(void)
{
struct stat stb;
- return (stat("/proc/fs/nfs/filehandle", &stb) == 0) ||
- (stat("/proc/fs/nfsd/filehandle", &stb) == 0);
+ char path[64];
+ int i;
+
+ for (i=0; cachelist[i]; i++ ){
+ sprintf(path, "/proc/net/rpc/%s/channel", cachelist[i]);
+ if (stat(path, &stb) < 0)
+ return 0;
+ }
+ return 1;
}