FreeBSD: Don't force xattr mount option

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 #11997
This commit is contained in:
Ryan Moeller 2021-04-28 18:58:30 +00:00 committed by Brian Behlendorf
parent faa5673982
commit 793dffb04e
1 changed files with 0 additions and 5 deletions

View File

@ -97,11 +97,6 @@ do_mount_(const char *spec, const char *dir, int mflag, char *fstype,
iovlen = 0; iovlen = 0;
if (strstr(optstr, MNTOPT_REMOUNT) != NULL) if (strstr(optstr, MNTOPT_REMOUNT) != NULL)
build_iovec(&iov, &iovlen, "update", NULL, 0); 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) if (mflag & MS_RDONLY)
build_iovec(&iov, &iovlen, "ro", NULL, 0); build_iovec(&iov, &iovlen, "ro", NULL, 0);
build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1);