Bug 253592 - zfsprops(8) sharenfs description references non-existent options
Summary: zfsprops(8) sharenfs description references non-existent options
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-17 17:12 UTC by Mark Johnston
Modified: 2021-02-17 17:59 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Johnston freebsd_committer 2021-02-17 17:12:42 UTC
The zfsprops man page references "crossmnt" and "no_subtree_check" options, which don't appear to exist on FreeBSD.  It also references exportfs(8), which appears to be Linux-specific.
Comment 1 Allan Jude freebsd_committer 2021-02-17 17:59:28 UTC
The sharenfs section likely needs to be almost entirely different on FreeBSD

basically, setting 'sharenfs=on' adds the mountpoint to /etc/zfs/exports which mountd(8) reads in addition to /etc/exports

any other value is added as the flags in the file. You can use comma rather than space to avoid quoting issues. sharenfs=-maproot=nobody,alldirs,-network,10.1.1.0,-mask,255.255.255.0

etc.

I think there is a way to handle this upstream, as I think we include the 'jail' subsection only if compiling for FreeBSD