Skip to content

nfsd: add support for NFSv4 callbacks over IPv6 (try #5)

Jeff Layton linux-nfs 1 version Applied

Status from this message: Applied, thanks to you both.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6sunrpc: add routine for comparing addressesfs/lockd/clntlock.c fs/lockd/host.c fs/lockd/mon.c +3 more+53 -480 replies
2/6sunrpc: add common routine for copying address portion of a sockaddrinclude/linux/sunrpc/clnt.h+50 -00 replies
3/6nfsd: make nfs4_client->cl_addr a struct sockaddr_storagefs/nfsd/nfs4state.c include/linux/nfsd/state.h+20 -140 replies
4/6nfsd: convert nfs4_cb_conn struct to hold address in sockaddr_storagefs/nfsd/nfs4callback.c fs/nfsd/nfs4state.c include/linux/nfsd/state.h+13 -830 replies
5/6nfsd: add support for NFSv4 callbacks over IPv6fs/nfsd/nfs4state.c+11 -40 replies
6/6nfsd: populate sin6_scope_id on callback address with scopeid from rq_addr on SETCLIENTID callfs/nfsd/nfs4state.c include/linux/sunrpc/clnt.h+20 -20 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChuck Lever
SeriesA-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] nfsd: add support for NFSv4 callbacks over IPv6 (try #5)

Fifth attempt at a patchset to add support for NFSv4 callbacks over IPv6. Changes from last patchset are mostly to address Chuck's comments:

1) made the new address comparison and copy routines into static inlines and added them to clnt.h. Ditto for the get_scope_id function.

2) combined the patch to change nfs4_cb_conn to hold address in sockaddr_storage with the one to convert gen_callback to use rpc_uaddr2sockaddr. That eliminates changes to the parse_ipv4 function that eventually gets ripped out.

Tested using opensolaris and linux and verifying that delegations could be properly recalled. I also tested mounts to the server's link-local address and verified that the callback channel connected correctly.

Jeff Layton (6):
sunrpc: add routine for comparing addresses
sunrpc: add common routine for copying address portion of a sockaddr
nfsd: make nfs4_client->cl_addr a struct sockaddr_storage
nfsd: convert nfs4_cb_conn struct to hold address in sockaddr_storage
nfsd: add support for NFSv4 callbacks over IPv6
nfsd: populate sin6_scope_id on callback address with scopeid from
rq_addr on SETCLIENTID call

 fs/lockd/clntlock.c         |    2 +-
 fs/lockd/host.c             |    4 +-
 fs/lockd/mon.c              |    2 +-
 fs/lockd/svcsubs.c          |    2 +-
 fs/nfsd/nfs4callback.c      |   11 +---
 fs/nfsd/nfs4state.c         |  133 ++++++++++++++-----------------------------
 include/linux/lockd/lockd.h |   43 --------------
 include/linux/nfsd/state.h  |    6 +-
 include/linux/sunrpc/clnt.h |  113 ++++++++++++++++++++++++++++++++++++
 9 files changed, 166 insertions(+), 150 deletions(-)

_______________________________________________
NFSv4 mailing list
[email protected]
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4