1 |
vapier 07/12/29 09:33:28 |
2 |
|
3 |
Modified: rpc.idmapd.initd nfs.initd rpc.statd.initd |
4 |
rpc.gssd.initd |
5 |
Added: digest-nfs-utils-1.1.1 |
6 |
Log: |
7 |
Version bump #197336 by Francisco Javier. Tweak nfs init.d needs based on exportfs #172431. Only mount nfsd fs in nfs init.d script. Mount rpc_pipefs in rpc.idmapd and rpc.gssd after making sure the dir exists #180425 by Maurice Volaski. |
8 |
(Portage version: 2.1.4_rc11) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 net-fs/nfs-utils/files/rpc.idmapd.initd |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.idmapd.initd?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.idmapd.initd?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.idmapd.initd?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: rpc.idmapd.initd |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.idmapd.initd,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- rpc.idmapd.initd 12 May 2007 11:27:06 -0000 1.3 |
24 |
+++ rpc.idmapd.initd 29 Dec 2007 09:33:28 -0000 1.4 |
25 |
@@ -1,7 +1,7 @@ |
26 |
#!/sbin/runscript |
27 |
# Copyright 1999-2007 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.idmapd.initd,v 1.3 2007/05/12 11:27:06 vapier Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.idmapd.initd,v 1.4 2007/12/29 09:33:28 vapier Exp $ |
31 |
|
32 |
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs |
33 |
|
34 |
@@ -21,6 +21,7 @@ |
35 |
mount_pipefs() { |
36 |
if grep -qs rpc_pipefs /proc/filesystems ; then |
37 |
if ! grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then |
38 |
+ mkdir -p /var/lib/nfs/rpc_pipefs |
39 |
ebegin "Mounting RPC pipefs" |
40 |
mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs |
41 |
eend $? |
42 |
@@ -28,33 +29,7 @@ |
43 |
fi |
44 |
} |
45 |
|
46 |
-umount_pipefs() { |
47 |
- [ "${restarting}" = "yes" -o "${RC_CMD}" = "restart" ] && return 0 |
48 |
- if grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then |
49 |
- ebegin "Unmounting RPC pipefs" |
50 |
- umount /var/lib/nfs/rpc_pipefs |
51 |
- eend $? |
52 |
- fi |
53 |
-} |
54 |
- |
55 |
-mount_nfsd() { |
56 |
- # Make sure nfs support is loaded in the kernel #64709 |
57 |
- if [ -e /proc/modules ] && ! grep -qs nfsd /proc/filesystems ; then |
58 |
- modprobe nfsd &> /dev/null |
59 |
- fi |
60 |
- |
61 |
- # This is the new "kernel 2.6 way" to handle the exports file |
62 |
- if grep -qs nfsd /proc/filesystems ; then |
63 |
- if ! grep -qs "nfsd /proc/fs/nfs" /proc/mounts ; then |
64 |
- ebegin "Mounting nfsd filesystem in /proc" |
65 |
- mount -t nfsd -o nodev,noexec,nosuid nfsd /proc/fs/nfs |
66 |
- eend $? |
67 |
- fi |
68 |
- fi |
69 |
-} |
70 |
- |
71 |
start() { |
72 |
- mount_nfsd |
73 |
mount_pipefs |
74 |
|
75 |
ebegin "Starting idmapd" |
76 |
@@ -63,16 +38,9 @@ |
77 |
} |
78 |
|
79 |
stop() { |
80 |
- local ret |
81 |
- |
82 |
ebegin "Stopping idmapd" |
83 |
start-stop-daemon --stop --quiet --exec ${rpc_bin} |
84 |
- ret=$? |
85 |
- eend ${ret} |
86 |
- |
87 |
- umount_pipefs |
88 |
- |
89 |
- return ${ret} |
90 |
+ eend $? |
91 |
} |
92 |
|
93 |
restart() { |
94 |
|
95 |
|
96 |
|
97 |
1.7 net-fs/nfs-utils/files/nfs.initd |
98 |
|
99 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.7&view=markup |
100 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.7&content-type=text/plain |
101 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?r1=1.6&r2=1.7 |
102 |
|
103 |
Index: nfs.initd |
104 |
=================================================================== |
105 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v |
106 |
retrieving revision 1.6 |
107 |
retrieving revision 1.7 |
108 |
diff -u -r1.6 -r1.7 |
109 |
--- nfs.initd 16 Aug 2007 23:35:19 -0000 1.6 |
110 |
+++ nfs.initd 29 Dec 2007 09:33:28 -0000 1.7 |
111 |
@@ -1,7 +1,7 @@ |
112 |
#!/sbin/runscript |
113 |
# Copyright 1999-2007 Gentoo Foundation |
114 |
# Distributed under the terms of the GNU General Public License v2 |
115 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.6 2007/08/16 23:35:19 vapier Exp $ |
116 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.7 2007/12/29 09:33:28 vapier Exp $ |
117 |
|
118 |
opts="reload" |
119 |
|
120 |
@@ -17,10 +17,9 @@ |
121 |
|
122 |
depend() { |
123 |
local myneed="" |
124 |
- awk '!/^[[:space:]]*#/ && $3 == "nfs4" { exit ($4 ~ /sec=krb/ ? 1 : 2) }' /etc/fstab |
125 |
- local ret=$? |
126 |
- [ ${ret} -ne 0 ] && myneed="${myneed} rpc.idmapd" |
127 |
- [ ${ret} -eq 1 ] && myneed="${myneed} rpc.gssd" |
128 |
+ if ! awk '!/^[[:space:]]*#/ && $2 ~ /sec=/ { exit 1 }' /etc/exports ; then |
129 |
+ myneed="${myneed} rpc.gssd" |
130 |
+ fi |
131 |
need portmap rpc.statd ${myneed} |
132 |
use ypbind net dns rpc.rquotad rpc.idmapd rpc.gssd |
133 |
after quota |
134 |
|
135 |
|
136 |
|
137 |
1.5 net-fs/nfs-utils/files/rpc.statd.initd |
138 |
|
139 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.statd.initd?rev=1.5&view=markup |
140 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.statd.initd?rev=1.5&content-type=text/plain |
141 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.statd.initd?r1=1.4&r2=1.5 |
142 |
|
143 |
Index: rpc.statd.initd |
144 |
=================================================================== |
145 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.statd.initd,v |
146 |
retrieving revision 1.4 |
147 |
retrieving revision 1.5 |
148 |
diff -u -r1.4 -r1.5 |
149 |
--- rpc.statd.initd 29 Dec 2007 06:57:34 -0000 1.4 |
150 |
+++ rpc.statd.initd 29 Dec 2007 09:33:28 -0000 1.5 |
151 |
@@ -1,7 +1,7 @@ |
152 |
#!/sbin/runscript |
153 |
# Copyright 1999-2007 Gentoo Foundation |
154 |
# Distributed under the terms of the GNU General Public License v2 |
155 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.statd.initd,v 1.4 2007/12/29 06:57:34 vapier Exp $ |
156 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.statd.initd,v 1.5 2007/12/29 09:33:28 vapier Exp $ |
157 |
|
158 |
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs |
159 |
|
160 |
@@ -14,22 +14,6 @@ |
161 |
after quota |
162 |
} |
163 |
|
164 |
-mount_nfsd() { |
165 |
- # Make sure nfs support is loaded in the kernel #64709 |
166 |
- if [ -e /proc/modules ] && ! grep -qs nfsd /proc/filesystems ; then |
167 |
- modprobe nfsd &> /dev/null |
168 |
- fi |
169 |
- |
170 |
- # This is the new "kernel 2.6 way" to handle the exports file |
171 |
- if grep -qs nfsd /proc/filesystems ; then |
172 |
- if ! grep -qs "nfsd /proc/fs/nfs" /proc/mounts ; then |
173 |
- ebegin "Mounting nfsd filesystem in /proc" |
174 |
- mount -t nfsd -o nodev,noexec,nosuid nfsd /proc/fs/nfs |
175 |
- eend $? |
176 |
- fi |
177 |
- fi |
178 |
-} |
179 |
- |
180 |
is_running() { |
181 |
# Don't start rpc.statd if already started by someone else ... |
182 |
# Don't try and kill it if it's already dead ... |
183 |
@@ -37,11 +21,9 @@ |
184 |
} |
185 |
|
186 |
start() { |
187 |
- mount_nfsd |
188 |
- |
189 |
is_running && return 0 |
190 |
ebegin "Starting NFS statd" |
191 |
- start-stop-daemon --start --quiet --exec ${rpc_bin} -- ${OPTS_RPC_STATD} |
192 |
+ start-stop-daemon --start --quiet --exec ${rpc_bin} -- --no-notify ${OPTS_RPC_STATD} |
193 |
eend $? |
194 |
} |
195 |
|
196 |
|
197 |
|
198 |
|
199 |
1.5 net-fs/nfs-utils/files/rpc.gssd.initd |
200 |
|
201 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd?rev=1.5&view=markup |
202 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd?rev=1.5&content-type=text/plain |
203 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd?r1=1.4&r2=1.5 |
204 |
|
205 |
Index: rpc.gssd.initd |
206 |
=================================================================== |
207 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd,v |
208 |
retrieving revision 1.4 |
209 |
retrieving revision 1.5 |
210 |
diff -u -r1.4 -r1.5 |
211 |
--- rpc.gssd.initd 12 May 2007 11:27:06 -0000 1.4 |
212 |
+++ rpc.gssd.initd 29 Dec 2007 09:33:28 -0000 1.5 |
213 |
@@ -1,7 +1,7 @@ |
214 |
#!/sbin/runscript |
215 |
# Copyright 1999-2007 Gentoo Foundation |
216 |
# Distributed under the terms of the GNU General Public License v2 |
217 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd,v 1.4 2007/05/12 11:27:06 vapier Exp $ |
218 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd,v 1.5 2007/12/29 09:33:28 vapier Exp $ |
219 |
|
220 |
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs |
221 |
|
222 |
@@ -14,17 +14,12 @@ |
223 |
after quota |
224 |
} |
225 |
|
226 |
-mount_nfsd() { |
227 |
- # Make sure nfs support is loaded in the kernel #64709 |
228 |
- if [ -e /proc/modules ] && ! grep -qs nfsd /proc/filesystems ; then |
229 |
- modprobe nfsd &> /dev/null |
230 |
- fi |
231 |
- |
232 |
- # This is the new "kernel 2.6 way" to handle the exports file |
233 |
- if grep -qs nfsd /proc/filesystems ; then |
234 |
- if ! grep -qs "nfsd /proc/fs/nfs" /proc/mounts ; then |
235 |
- ebegin "Mounting nfsd filesystem in /proc" |
236 |
- mount -t nfsd -o nodev,noexec,nosuid nfsd /proc/fs/nfs |
237 |
+mount_pipefs() { |
238 |
+ if grep -qs rpc_pipefs /proc/filesystems ; then |
239 |
+ if ! grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then |
240 |
+ mkdir -p /var/lib/nfs/rpc_pipefs |
241 |
+ ebegin "Mounting RPC pipefs" |
242 |
+ mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs |
243 |
eend $? |
244 |
fi |
245 |
fi |
246 |
@@ -38,7 +33,7 @@ |
247 |
ret=$((ret + $?)) |
248 |
} |
249 |
start() { |
250 |
- mount_nfsd |
251 |
+ mount_pipefs |
252 |
|
253 |
local ret=0 |
254 |
start_it gssd ${gssd} ${OPTS_RPC_GSSD} |
255 |
|
256 |
|
257 |
|
258 |
1.1 net-fs/nfs-utils/files/digest-nfs-utils-1.1.1 |
259 |
|
260 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/digest-nfs-utils-1.1.1?rev=1.1&view=markup |
261 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/digest-nfs-utils-1.1.1?rev=1.1&content-type=text/plain |
262 |
|
263 |
Index: digest-nfs-utils-1.1.1 |
264 |
=================================================================== |
265 |
MD5 d1bc62def760c79f6f77925ed2937b0b nfs-utils-1.1.1-001-xlog_segfault_fix.dif 1222 |
266 |
RMD160 5635abdd46e0b24a23fd54748d1c42dc32171a21 nfs-utils-1.1.1-001-xlog_segfault_fix.dif 1222 |
267 |
SHA256 dc1aecf7f989ac0564e51c6b75827429a8407402f87b594ff6d413d41b318dcb nfs-utils-1.1.1-001-xlog_segfault_fix.dif 1222 |
268 |
MD5 c8dc8379fb32c8044e3c1f20dd86793d nfs-utils-1.1.1-002-svcgssd_pass_down_principal_name.dif 6533 |
269 |
RMD160 a37d368c230c6e680d44978b17c807ff9c2a72eb nfs-utils-1.1.1-002-svcgssd_pass_down_principal_name.dif 6533 |
270 |
SHA256 41011ec373d0ca628857738b633068681d569d547b1c80f3c448730eea518af5 nfs-utils-1.1.1-002-svcgssd_pass_down_principal_name.dif 6533 |
271 |
MD5 407785488241f9db67b1874e3f36370e nfs-utils-1.1.1.tar.gz 803906 |
272 |
RMD160 e56bd8f06ad116a48e79cb819dcc693ae0dc7cdd nfs-utils-1.1.1.tar.gz 803906 |
273 |
SHA256 3d642d5adaf91f047396b873394f50fa8bb976e7f067a027ccebd1b319194429 nfs-utils-1.1.1.tar.gz 803906 |
274 |
|
275 |
|
276 |
|
277 |
-- |
278 |
gentoo-commits@g.o mailing list |