summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMi Jinlong <mijinlong@cn.fujitsu.com>2011-08-03 12:52:48 -0400
committerSteve Dickson <steved@redhat.com>2011-08-03 13:41:12 -0400
commitab5977afefc805a0be172662fe03207fad8769ad (patch)
tree9d193a7f2ea42020fbd4ae9f19d052d80798af57 /utils
parentbdaecae8ac3ff2c4f1b643c9226699f5a8295a45 (diff)
downloadnfs-utils-ab5977afefc805a0be172662fe03207fad8769ad.tar.gz
nfs-utils-ab5977afefc805a0be172662fe03207fad8769ad.tar.xz
nfs-utils-ab5977afefc805a0be172662fe03207fad8769ad.zip
rpc.mountd: let mountd consult /etc/services for port
At RHEL, if user set port for mountd at /etc/services as "mount 12345/tcp", mountd should be bind to 12345, but the latest nfs-utils, mountd get a rand port, not 12345. This patch make sure mountd be bind to the port which was set at /etc/service. Signed-off-by: Mi Jinlong <mijinlong@cn.fujitsu.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/mountd/mountd.man5
-rw-r--r--utils/statd/statd.man5
2 files changed, 8 insertions, 2 deletions
diff --git a/utils/mountd/mountd.man b/utils/mountd/mountd.man
index 016a357..b60dc90 100644
--- a/utils/mountd/mountd.man
+++ b/utils/mountd/mountd.man
@@ -122,7 +122,10 @@ Ignored (compatibility with unfsd??).
Specifies the port number used for RPC listener sockets.
If this option is not specified,
.B rpc.mountd
-chooses a random ephemeral port for each listener socket.
+will try to consult
+.IR /etc/services ,
+if gets port succeed, set the same port for all listener socket,
+otherwise chooses a random ephemeral port for each listener socket.
.IP
This option can be used to fix the port value of
.BR rpc.mountd 's
diff --git a/utils/statd/statd.man b/utils/statd/statd.man
index b72236c..203f8c9 100644
--- a/utils/statd/statd.man
+++ b/utils/statd/statd.man
@@ -219,7 +219,10 @@ for details.
Specifies the port number used for RPC listener sockets.
If this option is not specified,
.B rpc.statd
-chooses a random ephemeral port for each listener socket.
+will try to consult
+.IR /etc/services ,
+if gets port succeed, set the same port for all listener socket,
+otherwise chooses a random ephemeral port for each listener socket.
.IP
This option can be used to fix the port value of its listeners when
SM_NOTIFY requests must traverse a firewall between clients and servers.