6785cb4
diff -up nfs-utils-1.1.4/utils/statd/sm-notify.c.orig nfs-utils-1.1.4/utils/statd/sm-notify.c
6785cb4
--- nfs-utils-1.1.4/utils/statd/sm-notify.c.orig	2008-10-17 10:20:09.000000000 -0400
6785cb4
+++ nfs-utils-1.1.4/utils/statd/sm-notify.c	2008-10-17 11:22:01.000000000 -0400
6785cb4
@@ -28,11 +28,13 @@
6785cb4
 #include <errno.h>
6785cb4
 #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
 
6785cb4
diff -up nfs-utils-1.1.4/utils/statd/sm-notify.man.orig nfs-utils-1.1.4/utils/statd/sm-notify.man
6785cb4
--- nfs-utils-1.1.4/utils/statd/sm-notify.man.orig	2008-10-17 10:20:09.000000000 -0400
6785cb4
+++ nfs-utils-1.1.4/utils/statd/sm-notify.man	2008-10-17 11:22:01.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