From 793dffb04ee0bf8d84cad5b62d4600e80f2f2719 Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Wed, 28 Apr 2021 18:58:30 +0000 Subject: [PATCH] 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(-) diff --git a/lib/libzfs/os/freebsd/libzfs_zmount.c b/lib/libzfs/os/freebsd/libzfs_zmount.c index e114b1e0ca..699d330ebd 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);