Backported the F-8 patch that fixes sm-notify's pathname.
This commit is contained in:
parent
1ae9fb391f
commit
433c940a7f
@ -1,24 +1,37 @@
|
|||||||
diff -up nfs-utils-1.1.2/utils/statd/sm-notify.c.orig nfs-utils-1.1.2/utils/statd/sm-notify.c
|
commit 02968aa55972b680fa00273188da281d7612ca3e
|
||||||
--- nfs-utils-1.1.2/utils/statd/sm-notify.c.orig 2008-03-14 11:46:29.000000000 -0400
|
Author: Steve Dickson <steved@redhat.com>
|
||||||
+++ nfs-utils-1.1.2/utils/statd/sm-notify.c 2008-07-02 18:34:24.000000000 -0400
|
Date: Fri Sep 14 14:19:50 2007 -0400
|
||||||
@@ -24,11 +24,12 @@
|
|
||||||
|
Changed the default paths in sm-notify to
|
||||||
|
/var/lib/nfs/statd which is where the locking
|
||||||
|
state is kept in Red Hat distros.
|
||||||
|
|
||||||
|
Signed-off-by: Steve Dickson <steved@redhat.com>
|
||||||
|
|
||||||
|
diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c
|
||||||
|
index 98c03f9..862889f 100644
|
||||||
|
--- a/utils/statd/sm-notify.c
|
||||||
|
+++ b/utils/statd/sm-notify.c
|
||||||
|
@@ -24,11 +24,13 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
|
|
||||||
+#define STATD_PATH_XTN "statd/"
|
+#define STATD_PATH_XTN "statd/"
|
||||||
|
+
|
||||||
#ifndef BASEDIR
|
#ifndef BASEDIR
|
||||||
# ifdef NFS_STATEDIR
|
# ifdef NFS_STATEDIR
|
||||||
-# define BASEDIR NFS_STATEDIR
|
-# define BASEDIR NFS_STATEDIR
|
||||||
+# define BASEDIR NFS_STATEDIR "/" STATD_PATH_XTN
|
+# define BASEDIR NFS_STATEDIR "/" STATD_PATH_XTN
|
||||||
# else
|
# else
|
||||||
-# define BASEDIR "/var/lib/nfs"
|
-# define BASEDIR "/var/lib/nfs"
|
||||||
+# define BASEDIR "/var/lib/nfs/" STATD_PATH_XTN
|
+# define BASEDIR "/var/lib/nfs" "/" STATD_PATH_XTN
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
diff -up nfs-utils-1.1.2/utils/statd/sm-notify.man.orig nfs-utils-1.1.2/utils/statd/sm-notify.man
|
diff --git a/utils/statd/sm-notify.man b/utils/statd/sm-notify.man
|
||||||
--- nfs-utils-1.1.2/utils/statd/sm-notify.man.orig 2008-03-14 11:46:29.000000000 -0400
|
index dd03b8d..69b7059 100644
|
||||||
+++ nfs-utils-1.1.2/utils/statd/sm-notify.man 2008-07-02 18:34:13.000000000 -0400
|
--- a/utils/statd/sm-notify.man
|
||||||
|
+++ b/utils/statd/sm-notify.man
|
||||||
@@ -33,7 +33,7 @@ but this is configurable.
|
@@ -33,7 +33,7 @@ but this is configurable.
|
||||||
For each NFS client or server machine to be monitored,
|
For each NFS client or server machine to be monitored,
|
||||||
.B rpc.statd
|
.B rpc.statd
|
@ -31,7 +31,7 @@ Patch05: nfs-utils-1.1.0-exportfs-open.patch
|
|||||||
Patch06: nfs-utils-1.1.0-exportfs-man-update.patch
|
Patch06: nfs-utils-1.1.0-exportfs-man-update.patch
|
||||||
Patch07: nfs-utils-1.1.2-multi-auth-flavours.patch
|
Patch07: nfs-utils-1.1.2-multi-auth-flavours.patch
|
||||||
Patch08: nfs-utils-1.1.2-mount-eacces.patch
|
Patch08: nfs-utils-1.1.2-mount-eacces.patch
|
||||||
Patch09: nfs-utils-1.1.2-smnotifypath.patch
|
Patch09: nfs-utils-1.1.0-smnotify-path.patch
|
||||||
|
|
||||||
Patch101: nfs-utils-1.1.2-tcpwrapper-fix.patch
|
Patch101: nfs-utils-1.1.2-tcpwrapper-fix.patch
|
||||||
Patch102: nfs-utils-1.1.2-mount-retry.patch
|
Patch102: nfs-utils-1.1.2-mount-retry.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user