Skip to content

nfs-utils: Merge libnfsidmap tree with nfs-utils

Justin Mitchell linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 of 7 patches 2 repliesIn review

6 of 7 patches are in this archive. The cover letter announces 7.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7nfs-utils: const-ify 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: Add get_str with default valuesupport/include/conffile.h support/nfs/conffile.c+12 -00 replies
4/7nfs-utils: split conffile to a separate convenience libsupport/nfs/Makefile.am support/nfs/xlog.c utils/blkmapd/Makefile.am +9 more+23 -160 replies
6/7nfs-utils: integrate libnfsidmap code with rest of nfs-utilsconfigure.ac utils/Makefile.am utils/gssd/Makefile.am +7 more+61 -220 replies
7/7nfs-utils: cleanup warnings from merged libnfsidmap codeutils/libnfsidmap/libnfsidmap.c utils/libnfsidmap/nfsidmap_internal.h utils/libnfsidmap/nss.c +2 more+33 -210 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] nfs-utils: Merge libnfsidmap tree with nfs-utils

It was suggested that merging the trees is more desirable than splitting the common code out into a shared library, so this patch set attempts to merge the libnfsidmap code into nfs-utils.

The main body of the code, copyright notices, and readme are copied across, omitting the shared conffile code, and trimming unused files like strlcpy.c and queue.h. The build files of both are adjusted to the new structure, and the dependent nfs-utils now link to the included shared library instead of an external one.

The source libnfsidmap tree did include some packaging files for debian/dkpg which have been omitted, there are no packaging materials in nfs-utils to merge them with, and i welcome advice on what should be done here.

Justin Mitchell (7):
nfs-utils: const-ify the config handling functions
nfs-utils: Merge conf_get_str and conf_get_section
nfs-utils: Add get_str with default value
nfs-utils: split conffile to a separate convenience lib
nfs-utils: Import libnfsidmap codebase
nfs-utils: integrate libnfsidmap code with rest of nfs-utils
nfs-utils: cleanup warnings from merged libnfsidmap code

 configure.ac                          |   50 +-
 support/include/conffile.h            |   23 +-
 support/nfs/Makefile.am               |   13 +-
 support/nfs/conffile.c                |   85 +--
 support/nfs/xlog.c                    |    2 +
 utils/Makefile.am                     |    3 +-
 utils/blkmapd/Makefile.am             |    2 +-
 utils/exportfs/Makefile.am            |    2 +-
 utils/gssd/Makefile.am                |    7 +-
 utils/idmapd/Makefile.am              |    4 +-
 utils/libnfsidmap/AUTHORS             |    1 +
 utils/libnfsidmap/COPYING             |   30 +
 utils/libnfsidmap/Makefile.am         |   61 ++
 utils/libnfsidmap/README              |  126 ++++
 utils/libnfsidmap/gums.c              |  788 ++++++++++++++++++++
 utils/libnfsidmap/idmapd.conf         |  137 ++++
 utils/libnfsidmap/idmapd.conf.5       |  308 ++++++++
 utils/libnfsidmap/libnfsidmap.c       |  712 ++++++++++++++++++
 utils/libnfsidmap/libnfsidmap.pc.in   |   11 +
 utils/libnfsidmap/libtest.c           |  160 ++++
 utils/libnfsidmap/nfs4_uid_to_name.3  |  174 +++++
 utils/libnfsidmap/nfsidmap.h          |   67 ++
 utils/libnfsidmap/nfsidmap_internal.h |   79 ++
 utils/libnfsidmap/nss.c               |  468 ++++++++++++
 utils/libnfsidmap/static.c            |  413 +++++++++++
 utils/libnfsidmap/umich_ldap.c        | 1303 +++++++++++++++++++++++++++++++++
 utils/mount/Makefile.am               |    2 +-
 utils/mountd/Makefile.am              |    2 +-
 utils/nfsd/Makefile.am                |    2 +-
 utils/nfsdcltrack/Makefile.am         |    2 +-
 utils/nfsidmap/Makefile.am            |    4 +-
 utils/statd/Makefile.am               |    4 +-
 32 files changed, 4967 insertions(+), 78 deletions(-)
 create mode 100644 utils/libnfsidmap/AUTHORS
 create mode 100644 utils/libnfsidmap/COPYING
 create mode 100644 utils/libnfsidmap/Makefile.am
 create mode 100644 utils/libnfsidmap/README
 create mode 100644 utils/libnfsidmap/gums.c
 create mode 100644 utils/libnfsidmap/idmapd.conf
 create mode 100644 utils/libnfsidmap/idmapd.conf.5
 create mode 100644 utils/libnfsidmap/libnfsidmap.c
 create mode 100644 utils/libnfsidmap/libnfsidmap.pc.in
 create mode 100644 utils/libnfsidmap/libtest.c
 create mode 100644 utils/libnfsidmap/nfs4_uid_to_name.3
 create mode 100644 utils/libnfsidmap/nfsidmap.h
 create mode 100644 utils/libnfsidmap/nfsidmap_internal.h
 create mode 100644 utils/libnfsidmap/nss.c
 create mode 100644 utils/libnfsidmap/static.c
 create mode 100644 utils/libnfsidmap/umich_ldap.c
Signature · 1 line
1.8.3.1