Skip to content

nfs-utils: add TIRPC/IPv6 support to rpc.nfsd

Jeff Layton linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11nfs-utils: move nfssvc.c to nfsd dir and clean up linking of nfsdsupport/include/nfslib.h support/nfs/Makefile.am utils/nfsd/Makefile.am +3 more+29 -70 replies
2/11nfs-utils: clean up option parsing in nfsd.cutils/nfsd/nfsd.c+4 -40 replies
3/11nfs-utils: convert rpc.nfsd to use xlog()utils/nfsd/nfsd.c utils/nfsd/nfssvc.c+66 -483 replies
4/11nfs-utils: clean up NFSCTL_* macros for handling protocol bitssupport/include/nfs/nfs.h+11 -40 replies
5/11nfs-utils: declare a static common buffer for nfssvc.c routinesutils/nfsd/nfssvc.c+17 -112 replies
6/11nfs-utils: move check for active knfsd to helper functionutils/nfsd/nfssvc.c+30 -140 replies
7/11nfs-utils: convert nfssvc_setfds to use getaddrinfoutils/nfsd/nfsd.c utils/nfsd/nfssvc.c+140 -693 replies
8/11nfs-utils: break up the nfssvc interfaceutils/nfsd/nfsd.c utils/nfsd/nfssvc.c utils/nfsd/nfssvc.h+78 -400 replies
9/11nfs-utils: add IPv6 support to nfssvc_setfdsutils/nfsd/nfssvc.c+14 -00 replies
10/11nfs-utils: add IPv6 support to nfsdutils/nfsd/nfsd.c+89 -250 replies
11/11nfs-utils: update the nfsd manpage and copyright noticesutils/nfsd/nfsd.c utils/nfsd/nfsd.man utils/nfsd/nfssvc.c+25 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/11] nfs-utils: add TIRPC/IPv6 support to rpc.nfsd

This is the sixth attempt at a patchset to add TIRPC and IPv6 support to the rpc.nfsd program. The significant differences from the last set are:

1) Change it to log errors to stderr by default, and add a --syslog switch to force output to syslog

2) moved nfssvc.c into the nfsd directory (and out of libnfs.a). rpc.nfsd is the only user of those routines so there's no need to keep it in common code.

3) declared a common static string buffer for the nfssvc routines to use to cut down stack usage. It's also smaller than BUFSIZ so the general memory footprint for rpc.nfsd should be smaller.

There are also a number of cleanups and small fixes.

Comments and suggestions appreciated...

Jeff Layton (11):
nfs-utils: move nfssvc.c to nfsd dir and clean up linking of nfsd
nfs-utils: clean up option parsing in nfsd.c
nfs-utils: convert rpc.nfsd to use xlog()
nfs-utils: clean up NFSCTL_* macros for handling protocol bits
nfs-utils: declare a static common buffer for nfssvc.c routines
nfs-utils: move check for active knfsd to helper function
nfs-utils: convert nfssvc_setfds to use getaddrinfo
nfs-utils: break up the nfssvc interface
nfs-utils: add IPv6 support to nfssvc_setfds
nfs-utils: add IPv6 support to nfsd
nfs-utils: update the nfsd manpage and copyright notices

 support/include/nfs/nfs.h |   15 ++-
 support/include/nfslib.h  |    1 -
 support/nfs/Makefile.am   |    2 +-
 support/nfs/nfssvc.c      |  187 -----------------------------
 utils/nfsd/Makefile.am    |    6 +-
 utils/nfsd/nfsd.c         |  264 ++++++++++++++++++++++++++++++-----------
 utils/nfsd/nfsd.man       |   27 ++++-
 utils/nfsd/nfssvc.c       |  290 +++++++++++++++++++++++++++++++++++++++++++++
 utils/nfsd/nfssvc.h       |   27 ++++
 9 files changed, 548 insertions(+), 271 deletions(-)
 delete mode 100644 support/nfs/nfssvc.c
 create mode 100644 utils/nfsd/nfssvc.c
 create mode 100644 utils/nfsd/nfssvc.h