* Help needed in understanding port allocation in NFS
@ 2005-02-16 10:25 naveen a
2005-02-16 13:14 ` Neil Horman
0 siblings, 1 reply; 2+ messages in thread
From: naveen a @ 2005-02-16 10:25 UTC (permalink / raw)
To: nfs
Hi,
I wanted some info related to port selection in NFS.
What happens when the port number is not specified in the command line swit=
ch or configuration=20
file for mountd and statd?
In man pages it is mentioned as statd/mountd will select the port from port=
mapper.=20
Can you please let me know how a port is allotted and the code path in sour=
ce.
What is the criteria for allocation of ports by portmapper ?
Please educate me on this.
Thanks
Naveen
--=20
India.com free e-mail - www.india.com.=20
Check out our value-added Premium features, such as an extra 20MB for mail =
storage, POP3, e-mail forwarding, and ads-free mailboxes!
Powered by Outblaze
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help needed in understanding port allocation in NFS
2005-02-16 10:25 Help needed in understanding port allocation in NFS naveen a
@ 2005-02-16 13:14 ` Neil Horman
0 siblings, 0 replies; 2+ messages in thread
From: Neil Horman @ 2005-02-16 13:14 UTC (permalink / raw)
To: naveen a; +Cc: nfs
naveen a wrote:
> Hi,
>
> I wanted some info related to port selection in NFS.
>
> What happens when the port number is not specified in the command line switch or configuration
>
> file for mountd and statd?
>
> In man pages it is mentioned as statd/mountd will select the port from portmapper.
>
> Can you please let me know how a port is allotted and the code path in source.
>
Thats really the entire point of the portmapper. When userspace service
are started up, there is not preset port which is allocated. The new
rpc service opens a socket and binds to a system selected port (using
bindresvport IIRC). That port value is then registered witht he
portmapper. The portmapper always listens on the sunrpc port (port 111
I think), so that remote clients can query the portmapper daemon for
which port to connect to to get a specific service.
HTH
Neil
--
/***************************************************
*Neil Horman
*Software Engineer
*Red Hat, Inc.
*nhorman@redhat.com
*gpg keyid: 1024D / 0x92A74FA1
*http://pgp.mit.edu
***************************************************/
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-16 13:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-16 10:25 Help needed in understanding port allocation in NFS naveen a
2005-02-16 13:14 ` Neil Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox