Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 14899 Details for
Bug 25106
Support NFSv4 with 2.5 and 2.6 kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to /etc/init.d/nfs to activate server-side features
serverInit.patch (text/plain), 1.45 KB, created by
Michael Locher
on 2003-07-23 03:06:01 UTC
(
hide
)
Description:
patch to /etc/init.d/nfs to activate server-side features
Filename:
MIME Type:
Creator:
Michael Locher
Created:
2003-07-23 03:06:01 UTC
Size:
1.45 KB
patch
obsolete
>--- /usr/portage/net-fs/nfs-utils/files/nfs-2 2003-07-19 21:29:52.000000000 +0200 >+++ /etc/init.d/nfs 2003-07-23 11:53:15.000000000 +0200 >@@ -54,6 +54,7 @@ > > start() { > start_statd >+ > > # Exportfs likes to hang if networking isn't working. > # If that's the case, then try to kill it so the >@@ -85,9 +86,37 @@ > start-stop-daemon --start --quiet --exec \ > $mountd -- $RPCMOUNTDOPTS 1>&2 > eend $? "Error starting NFS mountd" >+ >+ # post-2.4 nfs features >+ if [ "$(get_KV)" -ge "$(KV_to_int '2.5.0')" ]; then >+ ebegin "Starting kernel 2.6 NFS features" >+ if [ -e /var/lib/rpc_pipes ]; then >+ mount -trpc_pipefs none /var/lib/rpc_pipes >+ fi >+ mount -tnfsd none /proc/fs/nfs >+ ebegin "Starting idmapd" >+ start-stop-daemon --start --quiet --exec \ >+ /usr/bin/idmapd -- -p /var/lib/rpc_pipes/nfs 1>&2 >+ eend $? "Error starting idmapd" >+ eend $? "Error starting kernel 2.6 NFS features" >+ fi > } > > stop() { >+ # post-2.4 nfs features >+ if [ "$(get_KV)" -ge "$(KV_to_int '2.5.0')" ]; then >+ ebegin "Stopping kernel 2.6 NFS features" >+ ebegin "Stopping idmapd" >+ start-stop-daemon --stop --quiet --exec \ >+ /usr/bin/idmapd 1>&2 >+ eend $? "Error stopping idmapd" >+ if [ -e /var/lib/rpc_pipes ]; then >+ umount /var/lib/rpc_pipes >+ fi >+ umount /proc/fs/nfs >+ eend $? "Error stopping kernel 2.6 NFS features" >+ fi >+ > # Don't check NFSSERVER variable since it might have changed, > # instead use --oknodo to smooth things over > ebegin "Stopping NFS mountd"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25106
:
14899
|
14901
|
32928