walters / rpms / nfs-utils

Forked from rpms/nfs-utils 6 years ago
Clone
b67cdcd
commit 02968aa55972b680fa00273188da281d7612ca3e
b67cdcd
Author: Steve Dickson <steved@redhat.com>
b67cdcd
Date:   Fri Sep 14 14:19:50 2007 -0400
b67cdcd
b67cdcd
    Changed the default paths in sm-notify to
b67cdcd
    /var/lib/nfs/statd which is where the locking
b67cdcd
    state is kept in Red Hat distros.
b67cdcd
    
b67cdcd
    Signed-off-by: Steve Dickson <steved@redhat.com>
b67cdcd
b67cdcd
diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c
b67cdcd
index 98c03f9..862889f 100644
b67cdcd
--- a/utils/statd/sm-notify.c
b67cdcd
+++ b/utils/statd/sm-notify.c
b67cdcd
@@ -24,11 +24,13 @@
b67cdcd
 #include <errno.h>
b67cdcd
 #include <grp.h>
b67cdcd
 
b67cdcd
+#define STATD_PATH_XTN "statd/"
b67cdcd
+
b67cdcd
 #ifndef BASEDIR
b67cdcd
 # ifdef NFS_STATEDIR
b67cdcd
-#  define BASEDIR		NFS_STATEDIR
b67cdcd
+#  define BASEDIR		NFS_STATEDIR "/" STATD_PATH_XTN
b67cdcd
 # else
b67cdcd
-#  define BASEDIR		"/var/lib/nfs"
b67cdcd
+#  define BASEDIR		"/var/lib/nfs" "/" STATD_PATH_XTN
b67cdcd
 # endif
b67cdcd
 #endif
b67cdcd
 
b67cdcd
diff --git a/utils/statd/sm-notify.man b/utils/statd/sm-notify.man
b67cdcd
index dd03b8d..69b7059 100644
b67cdcd
--- a/utils/statd/sm-notify.man
b67cdcd
+++ b/utils/statd/sm-notify.man
b67cdcd
@@ -33,7 +33,7 @@ but this is configurable.
b67cdcd
 For each NFS client or server machine to be monitored,
b67cdcd
 .B rpc.statd
b67cdcd
 creates a file in
b67cdcd
-.BR /var/lib/nfs/sm ", "
b67cdcd
+.BR /var/lib/nfs/statd/sm ", "
b67cdcd
 and removes the file if monitoring is no longer required.
b67cdcd
 .PP
b67cdcd
 When the machine is rebooted,
b67cdcd
@@ -47,7 +47,7 @@ Each machine has an
b67cdcd
 which is basically an integer counter that is incremented
b67cdcd
 each time the machine reboots. This counter is stored
b67cdcd
 in
b67cdcd
-.BR /var/lib/nfs/state ,
b67cdcd
+.BR /var/lib/nfs/statd/state ,
b67cdcd
 and updated by
b67cdcd
 .BR sm-notify .
b67cdcd
 .SS Security
b67cdcd
@@ -149,13 +149,13 @@ By default,
b67cdcd
 .B sm-notify
b67cdcd
 forks and puts itself in the background after obtaining the
b67cdcd
 list of hosts from
b67cdcd
-.BR /var/lib/nfs/sm .
b67cdcd
+.BR /var/lib/nfs/statd/sm .
b67cdcd
 .SH FILES
b67cdcd
-.BR /var/lib/nfs/state
b67cdcd
+.BR /var/lib/nfs/statd/state
b67cdcd
 .br
b67cdcd
-.BR /var/lib/nfs/sm/*
b67cdcd
+.BR /var/lib/nfs/statd/sm/*
b67cdcd
 .br
b67cdcd
-.BR /var/lib/nfs/sm.bak/*
b67cdcd
+.BR /var/lib/nfs/statd/sm.bak/*
b67cdcd
 .br
b67cdcd
 .BR /var/run/sm-notify.pid
b67cdcd
 .SH SEE ALSO