aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_std.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-10-27 09:12:10 -0700
committerChris Lu <chris.lu@gmail.com>2019-10-27 09:12:10 -0700
commiteb2172f63fcdf7f5455c142daaceb6b1a489f7f4 (patch)
tree1f0187bfa368e84db93244199048f3af785a1529 /weed/command/mount_std.go
parent71eb8efd208fc7f2c3bc41bed424faa2d758beea (diff)
downloadseaweedfs-eb2172f63fcdf7f5455c142daaceb6b1a489f7f4.tar.xz
seaweedfs-eb2172f63fcdf7f5455c142daaceb6b1a489f7f4.zip
FUSE: add os specific mount options
related to https://github.com/chrislusf/seaweedfs/issues/1094
Diffstat (limited to 'weed/command/mount_std.go')
-rw-r--r--weed/command/mount_std.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 0519ae7b8..6ca9bfdca 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -1,4 +1,4 @@
-// +build linux darwin
+// +build linux darwin freebsd
package command
@@ -107,6 +107,9 @@ func RunMount(filer, filerMountRootPath, dir, collection, replication, dataCente
fuse.WritebackCache(),
fuse.AllowNonEmptyMount(),
}
+
+ options = append(options, osSpecificMountOptions()...)
+
if allowOthers {
options = append(options, fuse.AllowOther())
}