]> git.pld-linux.org Git - packages/nfs-utils.git/blame - nfs-utils-statdpath.patch
- -common conflicts with mount containing nfs.5 for smoother upgrade path with poldek...
[packages/nfs-utils.git] / nfs-utils-statdpath.patch
CommitLineData
0800b6c2
JR
1diff -ur nfs-utils-1.1.0-rc1.orig/utils/statd/sm-notify.c nfs-utils-1.1.0-rc1/utils/statd/sm-notify.c
2--- nfs-utils-1.1.0-rc1.orig/utils/statd/sm-notify.c 2007-03-29 05:55:33.000000000 +0200
3+++ nfs-utils-1.1.0-rc1/utils/statd/sm-notify.c 2007-04-06 01:07:43.000000000 +0200
4@@ -1,5 +1,5 @@
42b01337 5 /*
0800b6c2
JR
6- * Send NSM notify calls to all hosts listed in /var/lib/sm
7+ * Send NSM notify calls to all hosts listed in /var/lib/statd/sm
8 *
9 * Copyright (C) 2004-2006 Olaf Kirch <okir@suse.de>
10 */
11@@ -26,9 +26,9 @@
12
13 #ifndef BASEDIR
14 # ifdef NFS_STATEDIR
15-# define BASEDIR NFS_STATEDIR
16+# define BASEDIR NFS_STATEDIR "/statd"
17 # else
18-# define BASEDIR "/var/lib/nfs"
19+# define BASEDIR "/var/lib/nfs/statd"
20 # endif
21 #endif
22
23diff -ur nfs-utils-1.1.0-rc1.orig/utils/statd/sm-notify.man nfs-utils-1.1.0-rc1/utils/statd/sm-notify.man
24--- nfs-utils-1.1.0-rc1.orig/utils/statd/sm-notify.man 2007-03-29 05:55:33.000000000 +0200
25+++ nfs-utils-1.1.0-rc1/utils/statd/sm-notify.man 2007-04-06 01:08:49.000000000 +0200
26@@ -33,7 +33,7 @@
27 For each NFS client or server machine to be monitored,
28 .B rpc.statd
29 creates a file in
30-.BR /var/lib/nfs/sm ", "
31+.BR /var/lib/nfs/statd/sm ", "
32 and removes the file if monitoring is no longer required.
33 .PP
34 When the machine is rebooted,
35@@ -47,7 +47,7 @@
36 which is basically an integer counter that is incremented
37 each time the machine reboots. This counter is stored
38 in
39-.BR /var/lib/nfs/state ,
40+.BR /var/lib/nfs/statd/state ,
41 and updated by
42 .BR sm-notify .
43 .SS Security
44@@ -149,13 +149,13 @@
45 .B sm-notify
46 forks and puts itself in the background after obtaining the
47 list of hosts from
48-.BR /var/lib/nfs/sm .
49+.BR /var/lib/nfs/statd/sm .
50 .SH FILES
51-.BR /var/lib/nfs/state
52+.BR /var/lib/nfs/statd/state
53 .br
54-.BR /var/lib/nfs/sm/*
55+.BR /var/lib/nfs/statd/sm/*
56 .br
57-.BR /var/lib/nfs/sm.bak/*
58+.BR /var/lib/nfs/statd/sm.bak/*
59 .br
60 .BR /var/run/sm-notify.pid
61 .SH SEE ALSO
62diff -ur nfs-utils-1.1.0-rc1.orig/utils/statd/statd.h nfs-utils-1.1.0-rc1/utils/statd/statd.h
63--- nfs-utils-1.1.0-rc1.orig/utils/statd/statd.h 2007-03-29 05:55:33.000000000 +0200
64+++ nfs-utils-1.1.0-rc1/utils/statd/statd.h 2007-04-06 01:09:27.000000000 +0200
65@@ -17,9 +17,9 @@
42b01337
JR
66 * Paths and filenames.
67 */
42b01337
JR
68 #if defined(NFS_STATEDIR)
69-# define DEFAULT_DIR_BASE NFS_STATEDIR "/"
0800b6c2 70+# define DEFAULT_DIR_BASE NFS_STATEDIR "/statd/"
42b01337
JR
71 #else
72-# define DEFAULT_DIR_BASE "/var/lib/nfs/"
0800b6c2 73+# define DEFAULT_DIR_BASE "/var/lib/nfs/statd/"
42b01337
JR
74 #endif
75
76 #define DEFAULT_SM_DIR DEFAULT_DIR_BASE "sm"
0800b6c2
JR
77diff -ur nfs-utils-1.1.0-rc1.orig/utils/statd/statd.man nfs-utils-1.1.0-rc1/utils/statd/statd.man
78--- nfs-utils-1.1.0-rc1.orig/utils/statd/statd.man 2007-03-29 05:55:33.000000000 +0200
79+++ nfs-utils-1.1.0-rc1/utils/statd/statd.man 2007-04-06 01:04:26.000000000 +0200
80@@ -24,7 +24,7 @@
42b01337
JR
81 For each NFS client or server machine to be monitored,
82 .B rpc.statd
83 creates a file in
84-.BR /var/lib/nfs/sm .
85+.BR /var/lib/nfs/statd/sm .
b3a564c6
JR
86 When starting, it normally runs
87 .B sm-notify
88 to iterate through these files and notify the
0800b6c2 89@@ -95,7 +95,7 @@
b3a564c6
JR
90 .BI "\-P," "" " \-\-state\-directory\-path " directory
91 specify a directory in which to place statd state information.
92 If this option is not specified the default of
93-.BR /var/lib/nfs
94+.BR /var/lib/nfs/statd
95 is used.
96 .TP
97 .B -N
0800b6c2
JR
98@@ -176,11 +176,11 @@
99 of an NFS export from another server.
42b01337
JR
100
101 .SH FILES
102-.BR /var/lib/nfs/state
b3a564c6 103+.BR /var/lib/nfs/statd/state
42b01337
JR
104 .br
105-.BR /var/lib/nfs/sm/*
106+.BR /var/lib/nfs/statd/sm/*
107 .br
108-.BR /var/lib/nfs/sm.bak/*
109+.BR /var/lib/nfs/statd/sm.bak/*
110 .SH SEE ALSO
111 .BR rpc.nfsd(8),
112 .BR portmap(8)
This page took 0.087659 seconds and 4 git commands to generate.