Re: PATCH: Support binding to a local IPv4 address when mounting a server.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 22, 2009, at Feb 22, 2009, 1:24 AM, Ben Greear wrote:
Chuck Lever wrote:

Would lockd also need to have this information too (passed in via nlmclnt_inet)?
I found an fs/lockd directory, but cannot find 'nlmclnt_inet' anywhere in the kernel or nfs-utils.

I misspelled the name. I meant nlmclnt_init(). But it looks like you already found that.

Would we also want kernel rpcbind requests to be sensitive to the passed-in bind address?

It seems from searching net/sunrpc dir that kernel_bind is called appropriately which should bind the a local addr if correct information is passed in, at least. This must be working (assuming NFS calls this code eventually) since I *am* getting at least most of the NFS traffic
correctly bound to the specified bindaddr.

rpcbind is not the same as a socket bind. It's a database that maps an RPC program name/number to a socket port. Look in linux/net/sunrpc/ rpcb_clnt.c. For the mount command, it's in nfs-utils/support/nfs/ {getport,rpc_socket}.c.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux