Bug 233584 - nfs multiple exports from same mount point
Summary: nfs multiple exports from same mount point
Status: In Progress
Alias: None
Product: Documentation
Classification: Unclassified
Component: Documentation (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Nikolai Lifanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-27 22:26 UTC by tenox
Modified: 2018-12-01 02:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tenox 2018-11-27 22:26:32 UTC
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.
Comment 1 Nikolai Lifanov freebsd_committer 2018-11-27 22:32:48 UTC
Could you provide a link to the handbook page you were following please?
Comment 2 tenox 2018-12-01 01:05:32 UTC
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.
Comment 3 tenox 2018-12-01 02:15:47 UTC
I think it would be good if the documentation mentioned the limitations of exporting within same mountpoint and potentially provided workaround using nullfs.