aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_std.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-06-05 23:41:33 -0700
committerGitHub <noreply@github.com>2022-06-05 23:41:33 -0700
commit1e8d8029ec122c0dd7875c098cec63cc4d816dd0 (patch)
tree43a4dfaed59e14a6e73e7f4088e9f7b43b144fee /weed/command/mount_std.go
parent4a046e4de7a40730895f8149120ce8d6e95f961d (diff)
parentf32142f6f5ef42b1b70a2f2b207f6982b7f8c58f (diff)
downloadseaweedfs-1e8d8029ec122c0dd7875c098cec63cc4d816dd0.tar.xz
seaweedfs-1e8d8029ec122c0dd7875c098cec63cc4d816dd0.zip
Merge pull request #3140 from ningfdx/disable_xattr
add disableXAttr in mount option
Diffstat (limited to 'weed/command/mount_std.go')
-rw-r--r--weed/command/mount_std.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 1d929dc96..1aff3c5bb 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -175,7 +175,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
FsName: serverFriendlyName + ":" + filerMountRootPath,
Name: "seaweedfs",
SingleThreaded: false,
- DisableXAttrs: false,
+ DisableXAttrs: *option.disableXAttr,
Debug: *option.debug,
EnableLocks: false,
ExplicitDataCacheControl: false,
@@ -238,6 +238,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
VolumeServerAccess: *mountOptions.volumeServerAccess,
Cipher: cipher,
UidGidMapper: uidGidMapper,
+ DisableXAttr: *option.disableXAttr,
})
server, err := fuse.NewServer(seaweedFileSystem, dir, fuseMountOptions)