[Bug 222078] Only the last option of "zfs mount -o" is honored

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Sep 5 18:26:07 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222078

            Bug ID: 222078
           Summary: Only the last option of "zfs mount -o" is honored
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: asomers at FreeBSD.org

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list