In FreeBSD NFSD 3.x it's impossible to create multiple exports from the same file system / mount point. For example: /data/foo /data/bar /data is mounted fs, foo and bar are subfolders it's impossible to export foo and bar separately, for example foo as read only and bar as read write The documentation doesn't have explicit mention of that. It would be nice do document it and provide a work around with nullfs mounts for example.
Could you provide a link to the handbook page you were following please?
https://www.freebsd.org/doc/handbook/network-nfs.html Section 29.3.1. Note that I'm trying to configure two subdirectories of the same mount to be shared to the same client. One as read-only and one read-write. If these directories are separate mount points or I have two clients then there is no problem.
I think it would be good if the documentation mentioned the limitations of exporting within same mountpoint and potentially provided workaround using nullfs.
^Triage: assignee's commit bit was taken in for safekeeping some time ago.
^Triage: canonicalize assignment.