Skip to content

Move nfs.conf to a shared library

Justin Mitchell linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7nfs-utils: const-ify all the config handling functionssupport/include/conffile.h support/nfs/conffile.c+30 -300 replies
2/7nfs-utils: Merge conf_get_str and conf_get_sectionsupport/nfs/conffile.c+14 -220 replies
3/7nfs-utils: Move nfs.conf handling into a shared libsupport/include/Makefile.am support/nfs/Makefile.am support/nfs/conffile.c +8 more+25 -80 replies
4/7nfs-utils: Add get_str with default valuesupport/include/conffile.h support/nfs/conffile.c+12 -00 replies
5/7nfs-utils: Add pkgconf data for libnfsconfMakefile.am configure.ac libnfsconf.pc.in+17 -00 replies
6/7libnfsidmap: Use libnfsconf instead of builtin cfgMakefile.am cfg.c cfg.h +7 more+18 -14920 replies
7/7libnfsidmap: use conf_get_bool()libnfsidmap.c umich_ldap.c+7 -200 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] Move nfs.conf to a shared library

A series of small patches to nfs-utils and libnfsidmap in part to continue my work into making an API for accessing nfs.conf and its related config files, but also to address issues brought to light by my previous patches.

nfs-utils and libnfsidmap were using almost identical code to parse their config files, with identical function definitions, which was unmasked when the prototypes changed on one set.

A problem with spaces in config arguments was recently highlighted, this has already been fixed by my previous cleanups in nfs-utils but not in libnfsidmap where it was reported.

Moving the config parsing code out to a shared library fixes both of these issues with minimal code changes. I appreciate that the API this library presents is less than ideal, it was left this way to reduce code changes at this point, and i welcome suggestions for a sympathetic approach to improving it.