Skip to content

Commit

Permalink
FreeBSD: Don't force xattr mount option
Browse files Browse the repository at this point in the history
The kernel will use the xattr property by default when not overridden
by a mount option.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes openzfs#11997
  • Loading branch information
Ryan Moeller authored and RageLtMan committed May 31, 2021
1 parent 95d28e2 commit 8b4eccc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/libzfs/os/freebsd/libzfs_zmount.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ do_mount_(const char *spec, const char *dir, int mflag, char *fstype,
iovlen = 0;
if (strstr(optstr, MNTOPT_REMOUNT) != NULL)
build_iovec(&iov, &iovlen, "update", NULL, 0);
if (strstr(optstr, MNTOPT_NOXATTR) == NULL &&
strstr(optstr, MNTOPT_XATTR) == NULL &&
strstr(optstr, MNTOPT_SAXATTR) == NULL &&
strstr(optstr, MNTOPT_DIRXATTR) == NULL)
build_iovec(&iov, &iovlen, "xattr", NULL, 0);
if (mflag & MS_RDONLY)
build_iovec(&iov, &iovlen, "ro", NULL, 0);
build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1);
Expand Down

0 comments on commit 8b4eccc

Please sign in to comment.