aboutsummaryrefslogtreecommitdiff
path: root/weed/command/fuse.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-10-09 18:58:14 -0700
committerchrislu <chris.lu@gmail.com>2022-10-09 18:58:14 -0700
commit1e27d36576afd1d2525e1146b7994cd3d7ef51c5 (patch)
tree81a9ef90764dd4c50d9adafe3d547d12fab0ea6d /weed/command/fuse.go
parentf9383aa726771b9bd9027cf5e9d62fcaecad9cee (diff)
parentb7de4a967e14f4d7419378e1daf590d3ef8c3c82 (diff)
downloadseaweedfs-1e27d36576afd1d2525e1146b7994cd3d7ef51c5.tar.xz
seaweedfs-1e27d36576afd1d2525e1146b7994cd3d7ef51c5.zip
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
Diffstat (limited to 'weed/command/fuse.go')
-rw-r--r--weed/command/fuse.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/command/fuse.go b/weed/command/fuse.go
index cf088022c..5beeb3b1f 100644
--- a/weed/command/fuse.go
+++ b/weed/command/fuse.go
@@ -47,7 +47,10 @@ func runFuse(cmd *Command, args []string) bool {
for i++; i < rawArgsLen && rawArgs[i] != ' '; i++ {
option.WriteByte(rawArgs[i])
}
- options = append(options, parameter{option.String(), "true"})
+ // ignore "-o"
+ if option.String() != "o" {
+ options = append(options, parameter{option.String(), "true"})
+ }
option.Reset()
// equal separator start option with pending value