Skip to content

NFS basic junction support for nfs-utils

Chuck Lever linux-nfs 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 posting 2/20 of 16 patches 1 replyIn review
  2. v4 Latest5 patches 3 repliesIn review
  3. v32 of 3 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v2 posting 1/22 of 3 patches3 repliesSuperseded

Changes in v4 from the cover letter

Broke up the first patch because it was apparently too large to be reflected through vger.kernel.org.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Add headers to support libjunctionsupport/include/Makefile.am support/include/fedfs_admin.h support/include/junction.h+469 -00 replies
2/5Add infrastructure for libjunctionaclocal/libxml2.m4 configure.ac support/Makefile.am +2 more+181 -00 replies
3/5Add LDAP-free version of libjunction to nfs-utilssupport/junction/Makefile.am support/junction/display.c support/junction/export-cache.c +5 more+3216 -00 replies
4/5mountd: Solder in support for NFS basic junctionsconfigure.ac utils/mountd/Makefile.am utils/mountd/cache.c+98 -1040 replies
5/5Add LDAP-free 'nfsref' commandconfigure.ac utils/Makefile.am utils/nfsref/Makefile.am +6 more+1086 -00 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/5] NFS basic junction support for nfs-utils

Still UNTESTED.

A while back I announced the deprecation of fedfs-utils. There were a handful of components in fedfs-utils that we decided to keep. One of those keepers was the "nfsref" command. (The other was autofs support for /nfs4, which I hope Ian Kent is making progress on ;-)

This series introduces "nfsref" to nfs-utils, minus the overhead of the LDAP / FedFS machinery, and it builds support for NFS basic junctions into mountd, replacing the need to install a plug-in DLL from fedfs-utils.

I didn't apply a lot of brain cells to this port, so it's perhaps a little larger than it needs to be. Still, it achieves a completely LDAP-free implementation that resides 100% in nfs-utils. I'm interested in comments about the approach before I do more testing and refinement.

./configure --enable-junction --enable-caps

is needed before building.

Changes since v3:
Broke up the first patch because it was apparently too large to be reflected through vger.kernel.org.

Changes since v2:
None.

Changes since RFC (v1):
Patch 2/3 in the original series added the libnfsjunct.so DLL to nfs-utils. Series v2 instead replaces 2/3 with a patch that puts support for junctions into mountd without the need for a DLL.

---

Chuck Lever (5):
Add headers to support libjunction
Add infrastructure for libjunction
Add LDAP-free version of libjunction to nfs-utils
mountd: Solder in support for NFS basic junctions Add LDAP-free 'nfsref' command

 aclocal/libxml2.m4                   |   15 
 configure.ac                         |   17 
 support/Makefile.am                  |    4 
 support/include/Makefile.am          |    2 
 support/include/fedfs_admin.h        |  342 +++++++
 support/include/junction.h           |  125 +++
 support/junction/Makefile.am         |   34 +
 support/junction/display.c           |  159 +++
 support/junction/export-cache.c      |  118 +++
 support/junction/junction-internal.h |  121 +++
 support/junction/junction.c          |  494 +++++++++++
 support/junction/locations.c         |  131 +++
 support/junction/nfs.c               | 1564 ++++++++++++++++++++++++++++++++++
 support/junction/path.c              |  345 ++++++++
 support/junction/xml.c               |  401 +++++++++
 utils/Makefile.am                    |    4 
 utils/mountd/Makefile.am             |    8 
 utils/mountd/cache.c                 |  189 ++--
 utils/nfsref/Makefile.am             |   39 +
 utils/nfsref/add.c                   |  271 ++++++
 utils/nfsref/lookup.c                |  211 +++++
 utils/nfsref/nfsref.c                |  188 ++++
 utils/nfsref/nfsref.h                |   47 +
 utils/nfsref/nfsref.man              |  180 ++++
 utils/nfsref/remove.c                |  145 +++
 25 files changed, 5050 insertions(+), 104 deletions(-)
 create mode 100644 aclocal/libxml2.m4
 create mode 100644 support/include/fedfs_admin.h
 create mode 100644 support/include/junction.h
 create mode 100644 support/junction/Makefile.am
 create mode 100644 support/junction/display.c
 create mode 100644 support/junction/export-cache.c
 create mode 100644 support/junction/junction-internal.h
 create mode 100644 support/junction/junction.c
 create mode 100644 support/junction/locations.c
 create mode 100644 support/junction/nfs.c
 create mode 100644 support/junction/path.c
 create mode 100644 support/junction/xml.c
 create mode 100644 utils/nfsref/Makefile.am
 create mode 100644 utils/nfsref/add.c
 create mode 100644 utils/nfsref/lookup.c
 create mode 100644 utils/nfsref/nfsref.c
 create mode 100644 utils/nfsref/nfsref.h
 create mode 100644 utils/nfsref/nfsref.man
 create mode 100644 utils/nfsref/remove.c

--
Chuck Lever