Skip to content

various random nfs-utils clean ups

Chuck Lever linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16rpc.statd: refactor check to see if call is from loopback addressutils/statd/monitor.c+36 -460 replies
2/16rpc.statd: eliminate --secure_statdconfigure.ac utils/statd/monitor.c utils/statd/simu.c+13 -650 replies
3/16showmount: destroy RPC client when finishedutils/showmount/showmount.c+4 -10 replies
4/16showmount command: clean up error returns from connect_nb()utils/showmount/showmount.c+12 -100 replies
5/16sm-notify command: include <config.h>utils/statd/sm-notify.c+4 -20 replies
6/16sm-notify command: getaddrinfo(3) addrinfo leakutils/statd/sm-notify.c+4 -10 replies
7/16sm-notify command: clean up error loggingutils/statd/sm-notify.c+29 -190 replies
8/16nfs-utils: remove unused function rpc_logcall()support/include/rpcmisc.h support/nfs/rpcmisc.c+0 -610 replies
9/16nfs-utils: Remove unused function rpc_svcrun()support/include/rpcmisc.h support/nfs/rpcdispatch.c+0 -520 replies
10/16nfs-utils: remove disabled code from support/nfs/rpcmisc.csupport/nfs/rpcmisc.c+0 -160 replies
11/16nfs-utils: Clean up support/nfs/rpcmisc.c:closedown()support/nfs/rpcmisc.c+25 -230 replies
12/16nfs-utils: make makesock() staticsupport/include/rpcmisc.h support/nfs/rpcmisc.c+40 -372 replies
13/16nfs-utils: Remove excess log reportingsupport/nfs/rpcmisc.c+4 -80 replies
14/16nfs-utils: whitespace clean ups in support/nfs/rpcmisc.csupport/nfs/rpcmisc.c+6 -70 replies
15/16rpc.statd: Clean up: replace "if (!(foo = rtnl))".utils/statd/callback.c utils/statd/monitor.c+6 -60 replies
16/16rpc.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 16 patches have a Reviewed-by or Acked-by.

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

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/16] various random nfs-utils clean ups

Hi Steve-

Here are a series of nfs-utils clean ups that I've culled out of my IPv6 series, including the RESTRICTED_STATD removal patches. They are non-IPv6 related, and should be easy to review.

Please pay close attention to the last one in the series. This one may be an actual bug, but it is difficult for me to test it thoroughly.

Would you consider these for the next release of nfs-utils?

---

Chuck Lever (16):
rpc.statd: Stop overloading sockfd in utils/statd/rmtcall.c 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: 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       |   28 +++--
 utils/statd/simu.c          |   35 ++-----
 utils/statd/sm-notify.c     |   59 +++++++----
 utils/statd/statd.c         |    4 -
 utils/statd/statd.h         |    1 
 12 files changed, 191 insertions(+), 357 deletions(-)
Signature · 1 line
Chuck Lever