The "-o" option to "zfs mount" can be used to pass a list of options to nmount(2), like this: "zfs mount -o <opt>,<opt>,...,<opt>". However, only the last option actually gets sent: # zfs mount -o nosuid,noatime foo/fs # mount | grep foo.fs foo/fs on /foo/fs (zfs, local, noatime, nfsv4acls) # zfs unmount foo/fs # zfs mount -o noatime,nosuid foo/fs # mount | grep foo.fs foo/fs on /foo/fs (zfs, local, nosuid, nfsv4acls) Notice how in the first case, only "noatime" was set, and in the second case, only "nosuid" was set. Both options should've been set both times.
A commit references this bug: Author: asomers Date: Tue Sep 5 19:28:36 UTC 2017 New revision: 323193 URL: https://svnweb.freebsd.org/changeset/base/323193 Log: Honor all options of "zfs mount -o" The existing code in zmount incorrectly parses the comma-delimited option string. The result is that nmount only honors the last option. AFAICT the parsing has been broken ever since ZFS's initial import in change 168404. PR: 222078 Reviewed by: avg MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D12232 Changes: head/cddl/compat/opensolaris/misc/zmount.c
A commit references this bug: Author: asomers Date: Wed Sep 27 15:06:46 UTC 2017 New revision: 324061 URL: https://svnweb.freebsd.org/changeset/base/324061 Log: MFC r323193: Honor all options of "zfs mount -o" The existing code in zmount incorrectly parses the comma-delimited option string. The result is that nmount only honors the last option. AFAICT the parsing has been broken ever since ZFS's initial import in change 168404. PR: 222078 Reviewed by: avg Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D12232 Changes: _U stable/11/ stable/11/cddl/compat/opensolaris/misc/zmount.c
A commit references this bug: Author: asomers Date: Tue Nov 28 17:30:26 UTC 2017 New revision: 326327 URL: https://svnweb.freebsd.org/changeset/base/326327 Log: MFC r323193: Honor all options of "zfs mount -o" The existing code in zmount incorrectly parses the comma-delimited option string. The result is that nmount only honors the last option. AFAICT the parsing has been broken ever since ZFS's initial import in change 168404. PR: 222078 Reviewed by: avg Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D12232 Changes: _U stable/10/ stable/10/cddl/compat/opensolaris/misc/zmount.c