Page MenuHomeFreeBSD

rc.d/mountd: Require /etc/exports only when there is no other exports file
AcceptedPublic

Authored by christos on Sat, Sep 26, 1:56 PM.
Tags
None
Referenced Files
F173570335: D60044.id187742.diff
Sat, Sep 26, 10:07 PM
F173558489: D60044.diff
Sat, Sep 26, 8:29 PM
F173525085: D60044.id187742.diff
Sat, Sep 26, 2:31 PM
F173525010: D60044.id187742.diff
Sat, Sep 26, 2:30 PM
F173524475: D60044.diff
Sat, Sep 26, 2:24 PM
Subscribers

Details

Summary

mountd exits if it cannot read any exports files. Requiring /etc/exports
unconditionally stops mountd from starting on a server that exports ZFS
datasets alone (/etc/zfs/exports). Require /etc/exports only when it is
the only exports file.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77352
Build 74235: arc lint + arc unit

Event Timeline

I suppose this is ok. It would be nice to note
somewhere that /etc/exports is always needed
for NFSv4. (A /etc/zfs/exports only setup can
be done for NFSv3 only.)

This revision is now accepted and ready to land.Sat, Sep 26, 2:13 PM

I suppose this is ok. It would be nice to note
somewhere that /etc/exports is always needed
for NFSv4. (A /etc/zfs/exports only setup can
be done for NFSv3 only.)

It might be better to require /etc/exports when either
nfsv4_server_enable or nfsv4_server_only are "yes".

I suppose this is ok. It would be nice to note
somewhere that /etc/exports is always needed
for NFSv4. (A /etc/zfs/exports only setup can
be done for NFSv3 only.)

It might be better to require /etc/exports when either
nfsv4_server_enable or nfsv4_server_only are "yes".

I'm not really experienced with NFS, so we could get more people to weigh in on this. @markj what do you think?