Skip to content

REPOST (with addn'l patches) nfs-utils cleanups

Chuck Lever linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19rpc.statd: refactor check to see if call is from loopback addressutils/statd/monitor.c+36 -460 replies
2/19rpc.statd: eliminate --secure_statdconfigure.ac utils/statd/monitor.c utils/statd/simu.c+13 -650 replies
3/19showmount: destroy RPC client when finishedutils/showmount/showmount.c+4 -10 replies
4/19showmount command: clean up error returns from connect_nb()utils/showmount/showmount.c+12 -100 replies
5/19sm-notify command: include <config.h>utils/statd/sm-notify.c+4 -20 replies
6/19sm-notify command: getaddrinfo(3) addrinfo leakutils/statd/sm-notify.c+4 -10 replies
7/19sm-notify command: clean up error loggingutils/statd/sm-notify.c+29 -190 replies
8/19sm-notify command: replace nsm_address typedefutils/statd/sm-notify.c+63 -660 replies
9/19sm-notify command: use static function definitionsutils/statd/sm-notify.c+10 -100 replies
10/19nfs-utils: remove unused function rpc_logcall()support/include/rpcmisc.h support/nfs/rpcmisc.c+0 -610 replies
11/19nfs-utils: Remove unused function rpc_svcrun()support/include/rpcmisc.h support/nfs/rpcdispatch.c+0 -520 replies
12/19nfs-utils: remove disabled code from support/nfs/rpcmisc.csupport/nfs/rpcmisc.c+0 -160 replies
13/19nfs-utils: Clean up support/nfs/rpcmisc.c:closedown()support/nfs/rpcmisc.c+25 -230 replies
14/19nfs-utils: make makesock() staticsupport/include/rpcmisc.h support/nfs/rpcmisc.c+40 -370 replies
15/19nfs-utils: Remove excess log reportingsupport/nfs/rpcmisc.c+4 -80 replies
16/19nfs-utils: whitespace clean ups in support/nfs/rpcmisc.csupport/nfs/rpcmisc.c+6 -70 replies
17/19rpc.statd: Clean up: replace "if (!(foo = rtnl))".utils/statd/callback.c utils/statd/monitor.c+6 -60 replies
18/19rpc.statd: Use __func__ in dprintfutils/statd/rmtcall.c+27 -230 replies
19/19rpc.statd: Stop overloading sockfd in utils/statd/rmtcall.cutils/statd/rmtcall.c utils/statd/statd.c utils/statd/statd.h+19 -140 replies

Reviews trailers per patch

2 of 19 patches have a Reviewed-by or Acked-by.

PatchNeil Brown
1/19A-b
2/19A-b
3/19
4/19
5/19
6/19
7/19
8/19
9/19
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19

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 00/19] REPOST (with addn'l patches) nfs-utils cleanups

Hi Steve-

Here are a group of minor clean-ups to nfs-utils culled from my IPv6 patch set. It would be nice to get these sorted before we start into the meat of the client-side IPv6-related changes to nfs-utils. Please consider these for the next release of nfs-utils.

In addition to the RPC_ANYSOCK change suggested by Neil, there are three additional small patches (8, 9, and 18 in this repost) that I found yesterday.

---

Chuck Lever (19):
rpc.statd: Stop overloading sockfd in utils/statd/rmtcall.c rpc.statd: Use __func__ in dprintf
rpc.statd: Clean up: replace "if (!(foo = rtnl))".
nfs-utils: whitespace clean ups in support/nfs/rpcmisc.c
nfs-utils: Remove excess log reporting
nfs-utils: make makesock() static
nfs-utils: Clean up support/nfs/rpcmisc.c:closedown()
nfs-utils: remove disabled code from support/nfs/rpcmisc.c
nfs-utils: Remove unused function rpc_svcrun()
nfs-utils: remove unused function rpc_logcall() sm-notify command: use static function definitions sm-notify command: replace nsm_address typedef sm-notify command: clean up error logging
sm-notify command: getaddrinfo(3) addrinfo leak sm-notify command: include <config.h>
showmount command: clean up error returns from connect_nb()
showmount: destroy RPC client when finished
rpc.statd: eliminate --secure_statd
rpc.statd: refactor check to see if call is from loopback address

 configure.ac                |    9 --
 support/include/rpcmisc.h   |    3 -
 support/nfs/rpcdispatch.c   |   51 ----------
 support/nfs/rpcmisc.c       |  225 ++++++++++++++-----------------------------
 utils/showmount/showmount.c |   27 +++--
 utils/statd/callback.c      |    6 -
 utils/statd/monitor.c       |  100 ++++++-------------
 utils/statd/rmtcall.c       |   78 ++++++++-------
 utils/statd/simu.c          |   35 ++-----
 utils/statd/sm-notify.c     |  206 +++++++++++++++++++++------------------
 utils/statd/statd.c         |    4 -
 utils/statd/statd.h         |    1 
 12 files changed, 290 insertions(+), 455 deletions(-)
Signature · 1 line
Chuck Lever