HomeFreeBSD

mountd.c: Add warning messages for administrative controls

Description

mountd.c: Add warning messages for administrative controls

When "administrative controls" (which are exports of subdirectories
within a NFS server's local file system) are used, they export the
entire local server file system. (The subdirectory only applies to
the Mount protocol used for NFSv3 mounts.)

To minimize the risk that this causes confusion w.r.t. what is exported
to NFS client(s), this patch generates warning messages for these.
Only one message is generated for each server local file system.
The messages can be silenced via a new "-A" command line option.

The mountd.8 man page will be patched via a separate commit.

Reviewed by: emaste, markj
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D44502

Details

Provenance
rmacklemAuthored on Mar 31 2024, 7:00 PM
Reviewer
emaste
Differential Revision
D44502: Make mountd generate warning log messages when administrative controls exports entire file systems
Parents
rGad5ec5136ba3: bsd-family-tree: remove EoL whitespace
Branches
Unknown
Tags
Unknown