Skip to content

nfs-utils: Support binding to source address.

[email protected] linux-nfs 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 5 repliesIn review
  2. v36 patches 8 repliesSuperseded
  3. v2 posting 2/26 patches 1 replySuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/21 patch9 repliesSuperseded
v11 patch12 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6nfs-utils: Add structure for passing local binding info.support/include/nfsrpc.h support/include/sockaddr.h support/nfs/getport.c +8 more+142 -830 replies
2/6nfs-utils: Add patch to parse srcaddr= option.utils/mount/network.c utils/mount/network.h+54 -00 replies
3/6nfs-utils: Implement srcaddr binding in rpc_socketsupport/nfs/rpc_socket.c+46 -130 replies
4/6nfs-utils: Support srcaddr=n option for string mount.utils/mount/stropts.c+24 -40 replies
5/6nfs-utils: Implement srcaddr=n binding for unmount.utils/mount/network.c utils/mount/nfsumount.c utils/mount/utils.c +1 more+40 -80 replies
6/6nfs-utils: Update man page for srcaddr= option.utils/mount/nfs.man+7 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/6] nfs-utils: Support binding to source address.

From: Ben Greear <[email protected]>

This lets one specify the source IP address for
sockets, allowing users to leverage routing rules
on multi-homed systems.

Kernel patches to RPC and NFS are needed to complete full functionality.

v6: Remove is_set flag from local_bind_info struct. Just pass in
NULL if local IP is not specified.
Use family of server when parsing local IP address. This makes
sure that we do not get a family mis-match between server and local ip.
Rename parse_local_bind to nfs_parse_local_bind
Clean up a few nits (don't check for null before freeing something).

v5: Fix compile error with ipv6 enabled. One minor
change to patch 1.

v4: Remove get_socket() modifications: stropt mount doesn't use them.
(This removed old patch 4, and modified patch 1)
Remove open-parsing of srcaddr= in mount logic. Move parsing
to nfs_validate_options()

*** BLURB HERE ***

Ben Greear (6):

  nfs-utils:  Add structure for passing local binding info.
  nfs-utils:  Add patch to parse srcaddr= option.
  nfs-utils:  Implement srcaddr binding in rpc_socket
  nfs-utils:  Support srcaddr=n option for string mount.
  nfs-utils:  Implement srcaddr=n binding for unmount.
  nfs-utils:  Update man page for srcaddr= option.
 support/include/nfsrpc.h   |   23 ++++++---
 support/include/sockaddr.h |    5 ++
 support/nfs/getport.c      |   39 +++++++++-----
 support/nfs/rpc_socket.c   |   96 ++++++++++++++++++++++++----------
 utils/gssd/gssd.h          |    2 +
 utils/gssd/gssd_proc.c     |   33 +++++++-----
 utils/mount/network.c      |  125 +++++++++++++++++++++++++++++++++++---------
 utils/mount/network.h      |   17 ++++--
 utils/mount/nfs.man        |    7 +++
 utils/mount/nfsmount.c     |    2 +-
 utils/mount/nfsumount.c    |   28 ++++++++--
 utils/mount/stropts.c      |   28 ++++++++--
 utils/mount/utils.c        |    6 ++-
 utils/mount/utils.h        |    4 +-
 14 files changed, 310 insertions(+), 105 deletions(-)
Signature · 1 line
1.7.3.4