Linux NFS development
 help / color / mirror / Atom feed
* [RFC 00/11] NFS:  Add client ability to bind to specific source-addr.
@ 2011-06-09 23:02 greearb
  2011-06-09 23:02 ` [RFC 01/11] sunrpc: Don't attempt to bind to AF_UNSPEC address greearb
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: greearb @ 2011-06-09 23:02 UTC (permalink / raw)
  To: linux-nfs; +Cc: Ben Greear

From: Ben Greear <greearb@candelatech.com>

In order to have more control on multi-homed machines, it is
nice to be able to bind to a specific IP address.  This can aid
with interface selection, policy based routing, multiple unique
mounts to the same server, and similar things.

This patch allows srcaddr= option for NFS.  The key 'srcaddr'
was chosen to match the similar patch for cifs.

For NFSv4, if one is specifying clientaddr, it must be the same as
srcaddr or things may not work properly.

NFSv3, NFSv4 over TCP/IPv4 and TCP/IPv6 has been successfully tested.

Usage:
  mount -t nfs4 [2002::1]:/rpool/ben /mnt/foo/ben-1 -o srcaddr=2002::2,clientaddr=2002::2
  mount -t nfs4 192.168.100.3:/foo /mnt/foo/ben-2 -o srcaddr=192.168.100.174

Ben Greear (11):
  sunrpc:  Don't attempt to bind to AF_UNSPEC address.
  nfs:  Two AF_UNSPEC addresses should always match each other.
  nfs:  Add srcaddr member to nfs_client.
  nfs:  Use request destination addr as callback source addr.
  nfs:  Pay attention to srcaddr in v4.1 callback logic.
  nfs:  Use srcaddr in nfs_match_client.
  nfs:  Add srcaddr to /proc/fs/nfsfs/servers
  nfs:  Pass srcaddr into mount request.
  nfs:  Propagate src-addr in client code.
  nfs: Bind to srcaddr in rpcb_create.
  nfs: Support srcaddr= to bind to specific IP address.

 fs/nfs/callback.h          |    3 ++
 fs/nfs/callback_proc.c     |    3 +-
 fs/nfs/callback_xdr.c      |    3 ++
 fs/nfs/client.c            |   72 +++++++++++++++++++++++++++++++++++++++++--
 fs/nfs/internal.h          |   10 +++++-
 fs/nfs/mount_clnt.c        |    1 +
 fs/nfs/super.c             |   33 +++++++++++++++++++-
 include/linux/nfs_fs_sb.h  |    4 ++
 include/linux/sunrpc/svc.h |    5 +++
 net/sunrpc/rpcb_clnt.c     |   28 ++++++++++++++++-
 net/sunrpc/sunrpc.h        |   45 +++++++++++++++++++++++++++
 net/sunrpc/xprtsock.c      |   47 +---------------------------
 12 files changed, 200 insertions(+), 54 deletions(-)

-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-06-09 23:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-09 23:02 [RFC 00/11] NFS: Add client ability to bind to specific source-addr greearb
2011-06-09 23:02 ` [RFC 01/11] sunrpc: Don't attempt to bind to AF_UNSPEC address greearb
2011-06-09 23:02 ` [RFC 02/11] nfs: Two AF_UNSPEC addresses should always match each other greearb
2011-06-09 23:02 ` [RFC 03/11] nfs: Add srcaddr member to nfs_client greearb
2011-06-09 23:02 ` [RFC 04/11] nfs: Use request destination addr as callback source addr greearb
2011-06-09 23:02 ` [RFC 05/11] nfs: Pay attention to srcaddr in v4.1 callback logic greearb
2011-06-09 23:02 ` [RFC 06/11] nfs: Use srcaddr in nfs_match_client greearb
2011-06-09 23:02 ` [RFC 07/11] nfs: Add srcaddr to /proc/fs/nfsfs/servers greearb
2011-06-09 23:02 ` [RFC 08/11] nfs: Pass srcaddr into mount request greearb
2011-06-09 23:02 ` [RFC 09/11] nfs: Propagate src-addr in client code greearb
2011-06-09 23:02 ` [RFC 10/11] nfs: Bind to srcaddr in rpcb_create greearb
2011-06-09 23:02 ` [RFC 11/11] nfs: Support srcaddr= to bind to specific IP address greearb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox