aboutsummaryrefslogtreecommitdiff
path: root/weed/command/fuse.go
diff options
context:
space:
mode:
authorBakerBunker <17872844+BakerBunker@users.noreply.github.com>2022-10-08 13:25:19 -0500
committerGitHub <noreply@github.com>2022-10-08 11:25:19 -0700
commitb9d8a837afee80d000a8e6d075f4b2a363b90778 (patch)
tree899e5a0dbc5d886425e0dcb73de9d8de8ea702b5 /weed/command/fuse.go
parent5db25a8f2ad235c40c2b19306a6a49b5c4715331 (diff)
downloadseaweedfs-b9d8a837afee80d000a8e6d075f4b2a363b90778.tar.xz
seaweedfs-b9d8a837afee80d000a8e6d075f4b2a363b90778.zip
Fix `mount -t weed` with extra options (#3807)
fuse: Ignore "-o" command
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