1 |
vapier 08/05/04 09:53:34 |
2 |
|
3 |
Modified: rpc.idmapd.initd nfsmount.initd nfs.initd |
4 |
rpc.svcgssd.initd rpc.gssd.initd |
5 |
Added: nfs-utils-1.1.2-mount-eacces.patch |
6 |
Log: |
7 |
Dont bother checking for config anymore #219495 by Davide Pesavento. Load sunrpc module if rpc_pipefs is not available #219566 by Martin von Gagern. Add change from Fedora to exit immediately upon perm denied errors when mounting #219729 by Stefaan De Roeck. |
8 |
(Portage version: 2.2_pre5) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 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.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.idmapd.initd?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.idmapd.initd?r1=1.5&r2=1.6 |
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.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- rpc.idmapd.initd 4 Feb 2008 22:23:24 -0000 1.5 |
24 |
+++ rpc.idmapd.initd 4 May 2008 09:53:34 -0000 1.6 |
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.5 2008/02/04 22:23:24 vapier Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.idmapd.initd,v 1.6 2008/05/04 09:53:34 vapier Exp $ |
31 |
|
32 |
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs |
33 |
|
34 |
@@ -19,14 +19,19 @@ |
35 |
} |
36 |
|
37 |
mount_pipefs() { |
38 |
- if grep -qs rpc_pipefs /proc/filesystems ; then |
39 |
- if ! grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then |
40 |
- mkdir -p /var/lib/nfs/rpc_pipefs |
41 |
- ebegin "Mounting RPC pipefs" |
42 |
- mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs |
43 |
- eend $? |
44 |
- fi |
45 |
- fi |
46 |
+ # if things are already mounted, let's just return |
47 |
+ grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts && return 0 |
48 |
+ |
49 |
+ # if rpc_pipefs is not available, try to load sunrpc for it #219566 |
50 |
+ grep -qs rpc_pipefs /proc/filesystems || modprobe -q sunrpc |
51 |
+ # if still not available, let's bail |
52 |
+ grep -qs rpc_pipefs /proc/filesystems || return 1 |
53 |
+ |
54 |
+ # now just do it for kicks |
55 |
+ mkdir -p /var/lib/nfs/rpc_pipefs |
56 |
+ ebegin "Mounting RPC pipefs" |
57 |
+ mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs |
58 |
+ eend $? |
59 |
} |
60 |
|
61 |
start() { |
62 |
|
63 |
|
64 |
|
65 |
1.12 net-fs/nfs-utils/files/nfsmount.initd |
66 |
|
67 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd?rev=1.12&view=markup |
68 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd?rev=1.12&content-type=text/plain |
69 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd?r1=1.11&r2=1.12 |
70 |
|
71 |
Index: nfsmount.initd |
72 |
=================================================================== |
73 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd,v |
74 |
retrieving revision 1.11 |
75 |
retrieving revision 1.12 |
76 |
diff -u -r1.11 -r1.12 |
77 |
--- nfsmount.initd 22 Apr 2008 07:43:16 -0000 1.11 |
78 |
+++ nfsmount.initd 4 May 2008 09:53:34 -0000 1.12 |
79 |
@@ -1,7 +1,7 @@ |
80 |
#!/sbin/runscript |
81 |
# Copyright 1999-2007 Gentoo Foundation |
82 |
# Distributed under the terms of the GNU General Public License v2 |
83 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd,v 1.11 2008/04/22 07:43:16 vapier Exp $ |
84 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd,v 1.12 2008/05/04 09:53:34 vapier Exp $ |
85 |
|
86 |
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs |
87 |
|
88 |
@@ -13,7 +13,7 @@ |
89 |
[ ${ret} -eq 10 ] && myneed="${myneed} rpc.gssd" |
90 |
[ ${ret} -eq 20 ] && myneed="${myneed} rpc.idmapd" |
91 |
fi |
92 |
- type -t config 2>/dev/null 1>&2 && config /etc/fstab |
93 |
+ config /etc/fstab |
94 |
need net portmap rpc.statd ${myneed} |
95 |
use ypbind dns rpc.idmapd rpc.gssd |
96 |
} |
97 |
|
98 |
|
99 |
|
100 |
1.13 net-fs/nfs-utils/files/nfs.initd |
101 |
|
102 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.13&view=markup |
103 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.13&content-type=text/plain |
104 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?r1=1.12&r2=1.13 |
105 |
|
106 |
Index: nfs.initd |
107 |
=================================================================== |
108 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v |
109 |
retrieving revision 1.12 |
110 |
retrieving revision 1.13 |
111 |
diff -u -r1.12 -r1.13 |
112 |
--- nfs.initd 20 Apr 2008 00:52:24 -0000 1.12 |
113 |
+++ nfs.initd 4 May 2008 09:53:34 -0000 1.13 |
114 |
@@ -1,7 +1,7 @@ |
115 |
#!/sbin/runscript |
116 |
# Copyright 1999-2007 Gentoo Foundation |
117 |
# Distributed under the terms of the GNU General Public License v2 |
118 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.12 2008/04/20 00:52:24 vapier Exp $ |
119 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.13 2008/05/04 09:53:34 vapier Exp $ |
120 |
|
121 |
opts="reload" |
122 |
|
123 |
@@ -22,7 +22,7 @@ |
124 |
myneed="${myneed} rpc.svcgssd" |
125 |
fi |
126 |
fi |
127 |
- type -t config 2>/dev/null 1>&2 && config /etc/exports |
128 |
+ config /etc/fstab |
129 |
need portmap rpc.statd ${myneed} |
130 |
use ypbind net dns rpc.rquotad rpc.idmapd rpc.svcgssd |
131 |
after quota |
132 |
|
133 |
|
134 |
|
135 |
1.3 net-fs/nfs-utils/files/rpc.svcgssd.initd |
136 |
|
137 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.svcgssd.initd?rev=1.3&view=markup |
138 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.svcgssd.initd?rev=1.3&content-type=text/plain |
139 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.svcgssd.initd?r1=1.2&r2=1.3 |
140 |
|
141 |
Index: rpc.svcgssd.initd |
142 |
=================================================================== |
143 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.svcgssd.initd,v |
144 |
retrieving revision 1.2 |
145 |
retrieving revision 1.3 |
146 |
diff -u -r1.2 -r1.3 |
147 |
--- rpc.svcgssd.initd 21 Apr 2008 07:56:15 -0000 1.2 |
148 |
+++ rpc.svcgssd.initd 4 May 2008 09:53:34 -0000 1.3 |
149 |
@@ -1,7 +1,7 @@ |
150 |
#!/sbin/runscript |
151 |
# Copyright 1999-2008 Gentoo Foundation |
152 |
# Distributed under the terms of the GNU General Public License v2 |
153 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.svcgssd.initd,v 1.2 2008/04/21 07:56:15 vapier Exp $ |
154 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.svcgssd.initd,v 1.3 2008/05/04 09:53:34 vapier Exp $ |
155 |
|
156 |
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs |
157 |
|
158 |
@@ -12,14 +12,19 @@ |
159 |
} |
160 |
|
161 |
mount_pipefs() { |
162 |
- if grep -qs rpc_pipefs /proc/filesystems ; then |
163 |
- if ! grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then |
164 |
- mkdir -p /var/lib/nfs/rpc_pipefs |
165 |
- ebegin "Mounting RPC pipefs" |
166 |
- mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs |
167 |
- eend $? |
168 |
- fi |
169 |
- fi |
170 |
+ # if things are already mounted, let's just return |
171 |
+ grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts && return 0 |
172 |
+ |
173 |
+ # if rpc_pipefs is not available, try to load sunrpc for it #219566 |
174 |
+ grep -qs rpc_pipefs /proc/filesystems || modprobe -q sunrpc |
175 |
+ # if still not available, let's bail |
176 |
+ grep -qs rpc_pipefs /proc/filesystems || return 1 |
177 |
+ |
178 |
+ # now just do it for kicks |
179 |
+ mkdir -p /var/lib/nfs/rpc_pipefs |
180 |
+ ebegin "Mounting RPC pipefs" |
181 |
+ mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs |
182 |
+ eend $? |
183 |
} |
184 |
|
185 |
start() { |
186 |
|
187 |
|
188 |
|
189 |
1.9 net-fs/nfs-utils/files/rpc.gssd.initd |
190 |
|
191 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd?rev=1.9&view=markup |
192 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd?rev=1.9&content-type=text/plain |
193 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd?r1=1.8&r2=1.9 |
194 |
|
195 |
Index: rpc.gssd.initd |
196 |
=================================================================== |
197 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd,v |
198 |
retrieving revision 1.8 |
199 |
retrieving revision 1.9 |
200 |
diff -u -r1.8 -r1.9 |
201 |
--- rpc.gssd.initd 21 Apr 2008 07:56:15 -0000 1.8 |
202 |
+++ rpc.gssd.initd 4 May 2008 09:53:34 -0000 1.9 |
203 |
@@ -1,7 +1,7 @@ |
204 |
#!/sbin/runscript |
205 |
# Copyright 1999-2008 Gentoo Foundation |
206 |
# Distributed under the terms of the GNU General Public License v2 |
207 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd,v 1.8 2008/04/21 07:56:15 vapier Exp $ |
208 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd,v 1.9 2008/05/04 09:53:34 vapier Exp $ |
209 |
|
210 |
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs |
211 |
|
212 |
@@ -12,14 +12,19 @@ |
213 |
} |
214 |
|
215 |
mount_pipefs() { |
216 |
- if grep -qs rpc_pipefs /proc/filesystems ; then |
217 |
- if ! grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then |
218 |
- mkdir -p /var/lib/nfs/rpc_pipefs |
219 |
- ebegin "Mounting RPC pipefs" |
220 |
- mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs |
221 |
- eend $? |
222 |
- fi |
223 |
- fi |
224 |
+ # if things are already mounted, let's just return |
225 |
+ grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts && return 0 |
226 |
+ |
227 |
+ # if rpc_pipefs is not available, try to load sunrpc for it #219566 |
228 |
+ grep -qs rpc_pipefs /proc/filesystems || modprobe -q sunrpc |
229 |
+ # if still not available, let's bail |
230 |
+ grep -qs rpc_pipefs /proc/filesystems || return 1 |
231 |
+ |
232 |
+ # now just do it for kicks |
233 |
+ mkdir -p /var/lib/nfs/rpc_pipefs |
234 |
+ ebegin "Mounting RPC pipefs" |
235 |
+ mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs |
236 |
+ eend $? |
237 |
} |
238 |
|
239 |
start() { |
240 |
|
241 |
|
242 |
|
243 |
1.1 net-fs/nfs-utils/files/nfs-utils-1.1.2-mount-eacces.patch |
244 |
|
245 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs-utils-1.1.2-mount-eacces.patch?rev=1.1&view=markup |
246 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs-utils-1.1.2-mount-eacces.patch?rev=1.1&content-type=text/plain |
247 |
|
248 |
Index: nfs-utils-1.1.2-mount-eacces.patch |
249 |
=================================================================== |
250 |
http://bugs.gentoo.org/219729 |
251 |
|
252 |
commit 697e28939b7d0a3e0ffe3b6bd516213a55f5a063 |
253 |
Author: Jeff Layton <jlaton@××××××.com> |
254 |
Date: Mon Apr 14 09:03:13 2008 -0400 |
255 |
|
256 |
Change how mount.nfs handles EACCES errors. Currently, |
257 |
EACCES is a non-fatal error which means the mount will be |
258 |
retied. This caused mounts to hang for 2mins when the client |
259 |
does not have permission to access the export. In a strict |
260 |
interpretation, the error that should be returned is EPERM, but |
261 |
this is not always the case. So due to the fuzzy interpretation, |
262 |
of EPERM and EACCES, EACCESS is now a fatal error |
263 |
|
264 |
Signed-off-by: Steve Dickson <steved@××××××.com> |
265 |
|
266 |
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c |
267 |
index cadb1f4..cdd610e 100644 |
268 |
--- a/utils/mount/stropts.c |
269 |
+++ b/utils/mount/stropts.c |
270 |
@@ -252,7 +252,6 @@ static int set_mandatory_options(const char *type, |
271 |
static int is_permanent_error(int error) |
272 |
{ |
273 |
switch (error) { |
274 |
- case EACCES: |
275 |
case ESTALE: |
276 |
case ETIMEDOUT: |
277 |
case ECONNREFUSED: |
278 |
|
279 |
|
280 |
|
281 |
-- |
282 |
gentoo-commits@l.g.o mailing list |