433c940
commit 02968aa55972b680fa00273188da281d7612ca3e
433c940
Author: Steve Dickson <steved@redhat.com>
433c940
Date:   Fri Sep 14 14:19:50 2007 -0400
433c940
433c940
    Changed the default paths in sm-notify to
433c940
    /var/lib/nfs/statd which is where the locking
433c940
    state is kept in Red Hat distros.
433c940
    
433c940
    Signed-off-by: Steve Dickson <steved@redhat.com>
433c940
433c940
diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c
433c940
index 98c03f9..862889f 100644
433c940
--- a/utils/statd/sm-notify.c
433c940
+++ b/utils/statd/sm-notify.c
433c940
@@ -24,11 +24,13 @@
1ae9fb3
 #include <errno.h>
1ae9fb3
 #include <grp.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
 
433c940
diff --git a/utils/statd/sm-notify.man b/utils/statd/sm-notify.man
433c940
index dd03b8d..69b7059 100644
433c940
--- a/utils/statd/sm-notify.man
433c940
+++ b/utils/statd/sm-notify.man
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