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:
parent
faa5673982
commit
793dffb04e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue