mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
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
da124ad8ec
commit
099ca8186b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user