From 099ca8186b071ad6db4f8d5fab66baa1be8877b0 Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Wed, 28 Apr 2021 18:58:30 +0000 Subject: 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 Reviewed-by: Alexander Motin Signed-off-by: Ryan Moeller Closes #11997 --- lib/libzfs/os/freebsd/libzfs_zmount.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/libzfs/os') diff --git a/lib/libzfs/os/freebsd/libzfs_zmount.c b/lib/libzfs/os/freebsd/libzfs_zmount.c index e114b1e0c..699d330eb 100644 --- a/lib/libzfs/os/freebsd/libzfs_zmount.c +++ b/lib/libzfs/os/freebsd/libzfs_zmount.c @@ -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); -- cgit v1.2.3