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.

(cherry picked from commit fefb7c399b39403e1a31157e925a541f1cc24f0b)

Details

Provenance
rmacklemAuthored on Mar 31 2024, 7:00 PM
Parents
rG50f771371356: libsysdecode: fix build after 3d0a736796a9
Branches
Unknown
Tags
Unknown