diff options
author | Ryan Moeller <[email protected]> | 2021-04-28 18:58:30 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-05-13 15:13:20 -0700 |
commit | 099ca8186b071ad6db4f8d5fab66baa1be8877b0 (patch) | |
tree | 37b8edb8b25167d0098f049cc2651d06659a43d9 /lib | |
parent | da124ad8ec1b3b0f18057a6b0ff3160ca6053800 (diff) |
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 <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #11997
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzfs/os/freebsd/libzfs_zmount.c | 5 |
1 files changed, 0 insertions, 5 deletions
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); |