たとえばx.orgのファイルシステムが
zroot/foo ⇒ /foo zroot/foo/foo1 ⇒ /foo/foo1 zroot/foo/foo1/foo2 ⇒ /foo/foo1/foo2
のような場合,/etc/exportsで
/foo -alldirs -maproot=root x.org
としてx.orgで
x.org:/foo ⇒ /mnt/foo x.org:/foo/foo1 ⇒ /mnt/foo/foo1 x.org:/foo/foo1/foo2 ⇒ /mnt/foo/foo1/foo2
にNFSマウントして/foo⇒/mnt/fooしても/mnt/foo/foo1や/mnt/foo/foo1/foo2にはライトエラーでコピーできない
/etc/exportsはsharenfsのプロパティに設定されないのか?.しかしzfs(8)では
sharenfs=on | off | opts Controls whether the file system is shared via NFS, and what options are used. A file system with a sharenfs property of off is managed the traditional way via exports(5). Otherwise, the file system is automatically shared and unshared with the "zfs share" and "zfs unshare" commands. If the property is set to on no NFS export options are used. Otherwise, NFS export options are equivalent to the contents of this property. The export options may be comma-separated. See exports(5) for a list of valid options.
として,sharenfs=off (デフォルト)のときは/etc/exportsに従うとある
それともZFS sharenfsプロパティが継承されなかったのか?しかしzfs(8)では
Every dataset has a set of properties that export statistics about the dataset as well as control various behaviors. Properties are inherited from the parent unless overridden by the child. Some properties apply only to certain types of datasets (file systems, volumes, or snapshots).
として,全てのプロパティはデフォルトでは継承されるとある