Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[bug reported] how to activate all NFS versions ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3925
Location: Hamburg

PostPosted: Sat Feb 01, 2014 5:25 pm    Post subject: [bug reported] how to activate all NFS versions ? Reply with quote

Currently I do have
Code:
cat /proc/fs/nfsd/versions
-2 +3 +4 +4.1 -4.2
Whatever I try to set in /etc/conf.d/nfs, eg.:
Code:
OPTS_NFSD='versions=4.2 versions=3 versions=4 versions=4.1 versions=4.2'
or
Code:
OPTS_NFSD="versions=2,3,4,4.1,4.2"
produces either crap like this
Code:
n22 ~ # /etc/init.d/nfs restart
 * Caching service dependencies ...                                                                                                              [ ok ]
 * Stopping NFS mountd ...                                                                                                                       [ ok ]
 * Stopping NFS daemon ...                                                                                                                       [ ok ]
 * Unexporting NFS directories ...                                                                                                               [ ok ]
/etc/init.d/nfs: line 73: /proc/fs/nfsd/3: Permission denied
/etc/init.d/nfs: line 73: /proc/fs/nfsd/4: Permission denied
/etc/init.d/nfs: line 73: /proc/fs/nfsd/4.1: Permission denied
/etc/init.d/nfs: line 73: /proc/fs/nfsd/4.2: Permission denied
 * Exporting NFS directories ...                                                                                                                 [ ok ]
 * Starting NFS mountd ...                                                                                                                       [ ok ]
 * Starting NFS daemon ...                                                                                                                       [ ok ]
 * Starting NFS smnotify ...                                                                                                                     [ ok ]
or does not have any effect.
What definition for OPTS_NFSD let me achieve all NFS versions being activated ?
And because this works at the command line :
Code:
n22 ~ # cat /proc/fs/nfsd/versions
-2 +3 +4 +4.1 -4.2
n22 ~ # echo "2" > /proc/fs/nfsd/versions; cat /proc/fs/nfsd/versions
+2 +3 +4 +4.1 -4.2
n22 ~ # echo "4.2" > /proc/fs/nfsd/versions; cat /proc/fs/nfsd/versions
+2 +3 +4 +4.1 +4.2
I do not understood why this doesn't work :
Code:
OPTS_NFSD="versions=2 versions=3 versions=4 versions=4.1 versions=4.2"


https://bugs.gentoo.org/show_bug.cgi?id=500006
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum