Skip to content

gssd improvements

David Härdeman linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 36 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19nfs-utils: cleanup daemonization codesupport/include/nfslib.h support/nfs/mydaemon.c utils/gssd/gssd.c +5 more+67 -1180 replies
2/19nfs-utils: gssd - merge gssd_main_loop.c and gssd.cutils/gssd/Makefile.am utils/gssd/gssd.c utils/gssd/gssd.h +1 more+220 -2710 replies
3/19nfs-utils: gssd - simplify some option handlingutils/gssd/gssd.c utils/gssd/gssd.h+6 -100 replies
4/19nfs-utils: gssd - remove arbitrary GSSD_MAX_CCACHE_SEARCH limitationutils/gssd/gssd.c utils/gssd/gssd.h+35 -130 replies
5/19nfs-utils: gssd - simplify topdirs pathutils/gssd/gssd.c utils/gssd/gssd.h+40 -590 replies
6/19nfs-utils: gssd - move over pipfs scanning codeutils/gssd/gss_util.h utils/gssd/gssd.c utils/gssd/gssd.h +1 more+566 -5630 replies
7/19nfs-utils: gssd - simplify client dir scanning codeutils/gssd/gssd.c+36 -490 replies
8/19nfs-utils: gssd - use libeventutils/gssd/Makefile.am utils/gssd/gssd.c utils/gssd/gssd.h+116 -2310 replies
9/19nfs-utils: gssd - remove "close me" codeutils/gssd/gssd.c utils/gssd/gssd.h+8 -200 replies
10/19nfs-utils: gssd - make the client lists per-topdirutils/gssd/gssd.c utils/gssd/gssd.h+66 -730 replies
11/19nfs-utils: gssd - keep the rpc_pipefs dir openutils/gssd/gssd.c+37 -490 replies
12/19nfs-utils: gssd - use more relative pathsutils/gssd/gssd.c utils/gssd/gssd.h utils/gssd/gssd_proc.c+40 -410 replies
13/19nfs-utils: gssd - simplify topdir scanningutils/gssd/gssd.c utils/gssd/gssd.h+81 -920 replies
14/19nfs-utils: gssd - simplify client scanningutils/gssd/gssd.c+80 -910 replies
15/19nfs-utils: gssd - cleanup read_service_infoutils/gssd/gssd.c+110 -980 replies
16/19nfs-utils: gssd - change dnotify to inotifyutils/gssd/gssd.c utils/gssd/gssd.h+73 -300 replies
17/19nfs-utils: gssd - further shorten some pathnamesutils/gssd/gssd.c+7 -90 replies
18/19nfs-utils: gssd - improve inotifyutils/gssd/gssd.c utils/gssd/gssd_proc.c+116 -520 replies
19/19nfs-utils: gssd - simplify handle_gssd_upcallutils/gssd/gssd_proc.c+38 -680 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/19] gssd improvements

The following series converts gssd to use libevent and inotify instead of a handrolled event loop and dnotify. Lots of cleanups in the process (e.g. removing a lot of arbitrary limitations and fixed size buffers).

All in all a nice reduction in code size (what can I say, I was bored).

I've even managed to mount NFS shares with the patched server :)

---

David Härdeman (19):
nfs-utils: cleanup daemonization code
nfs-utils: gssd - merge gssd_main_loop.c and gssd.c
nfs-utils: gssd - simplify some option handling
nfs-utils: gssd - remove arbitrary GSSD_MAX_CCACHE_SEARCH limitation
nfs-utils: gssd - simplify topdirs path
nfs-utils: gssd - move over pipfs scanning code
nfs-utils: gssd - simplify client dir scanning code
nfs-utils: gssd - use libevent
nfs-utils: gssd - remove "close me" code
nfs-utils: gssd - make the client lists per-topdir
nfs-utils: gssd - keep the rpc_pipefs dir open
nfs-utils: gssd - use more relative paths
nfs-utils: gssd - simplify topdir scanning
nfs-utils: gssd - simplify client scanning
nfs-utils: gssd - cleanup read_service_info
nfs-utils: gssd - change dnotify to inotify
nfs-utils: gssd - further shorten some pathnames
nfs-utils: gssd - improve inotify
nfs-utils: gssd - simplify handle_gssd_upcall

 support/include/nfslib.h    |    5 
 support/nfs/mydaemon.c      |   92 +++--
 utils/gssd/Makefile.am      |   24 +
 utils/gssd/gss_util.h       |    2 
 utils/gssd/gssd.c           |  785 +++++++++++++++++++++++++++++++++++++++++--
 utils/gssd/gssd.h           |   46 +--
 utils/gssd/gssd_main_loop.c |  263 --------------
 utils/gssd/gssd_proc.c      |  654 ++----------------------------------
 utils/gssd/svcgssd.c        |    8 
 utils/idmapd/idmapd.c       |    6 
 utils/statd/statd.c         |   66 +---
 11 files changed, 878 insertions(+), 1073 deletions(-)
 delete mode 100644 utils/gssd/gssd_main_loop.c

--
David Härdeman