walters / rpms / nfs-utils

Forked from rpms/nfs-utils 6 years ago
Clone
50559af
diff -up nfs-utils-1.1.3/utils/statd/sm-notify.c.orig nfs-utils-1.1.3/utils/statd/sm-notify.c
50559af
--- nfs-utils-1.1.3/utils/statd/sm-notify.c.orig	2008-07-27 17:01:45.000000000 -0400
50559af
+++ nfs-utils-1.1.3/utils/statd/sm-notify.c	2008-07-28 04:30:37.000000000 -0400
50559af
@@ -26,11 +26,13 @@
50559af
 
50559af
 #include "config.h"
1ae9fb3
 
1ae9fb3
+#define STATD_PATH_XTN "statd/"
433c940
+
1ae9fb3
 #ifndef BASEDIR
1ae9fb3
 # ifdef NFS_STATEDIR
1ae9fb3
-#  define BASEDIR		NFS_STATEDIR
1ae9fb3
+#  define BASEDIR		NFS_STATEDIR "/" STATD_PATH_XTN
1ae9fb3
 # else
1ae9fb3
-#  define BASEDIR		"/var/lib/nfs"
433c940
+#  define BASEDIR		"/var/lib/nfs" "/" STATD_PATH_XTN
1ae9fb3
 # endif
1ae9fb3
 #endif
1ae9fb3
 
50559af
diff -up nfs-utils-1.1.3/utils/statd/sm-notify.man.orig nfs-utils-1.1.3/utils/statd/sm-notify.man
50559af
--- nfs-utils-1.1.3/utils/statd/sm-notify.man.orig	2008-07-27 17:01:45.000000000 -0400
50559af
+++ nfs-utils-1.1.3/utils/statd/sm-notify.man	2008-07-28 04:30:37.000000000 -0400
1ae9fb3
@@ -33,7 +33,7 @@ but this is configurable.
1ae9fb3
 For each NFS client or server machine to be monitored,
1ae9fb3
 .B rpc.statd
1ae9fb3
 creates a file in
1ae9fb3
-.BR /var/lib/nfs/sm ", "
1ae9fb3
+.BR /var/lib/nfs/statd/sm ", "
1ae9fb3
 and removes the file if monitoring is no longer required.
1ae9fb3
 .PP
1ae9fb3
 When the machine is rebooted,
1ae9fb3
@@ -47,7 +47,7 @@ Each machine has an
1ae9fb3
 which is basically an integer counter that is incremented
1ae9fb3
 each time the machine reboots. This counter is stored
1ae9fb3
 in
1ae9fb3
-.BR /var/lib/nfs/state ,
1ae9fb3
+.BR /var/lib/nfs/statd/state ,
1ae9fb3
 and updated by
1ae9fb3
 .BR sm-notify .
1ae9fb3
 .SS Security
1ae9fb3
@@ -149,13 +149,13 @@ By default,
1ae9fb3
 .B sm-notify
1ae9fb3
 forks and puts itself in the background after obtaining the
1ae9fb3
 list of hosts from
1ae9fb3
-.BR /var/lib/nfs/sm .
1ae9fb3
+.BR /var/lib/nfs/statd/sm .
1ae9fb3
 .SH FILES
1ae9fb3
-.BR /var/lib/nfs/state
1ae9fb3
+.BR /var/lib/nfs/statd/state
1ae9fb3
 .br
1ae9fb3
-.BR /var/lib/nfs/sm/*
1ae9fb3
+.BR /var/lib/nfs/statd/sm/*
1ae9fb3
 .br
1ae9fb3
-.BR /var/lib/nfs/sm.bak/*
1ae9fb3
+.BR /var/lib/nfs/statd/sm.bak/*
1ae9fb3
 .br
1ae9fb3
 .BR /var/run/sm-notify.pid
1ae9fb3
 .SH SEE ALSO