aboutsummaryrefslogtreecommitdiff
path: root/weed/command/fuse.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-09-30 08:49:38 -0700
committerchrislu <chris.lu@gmail.com>2022-09-30 08:49:38 -0700
commitc3487d3da7ad97cd21b7ab7e5109ecd5d46a01cb (patch)
tree4dbcc3961c88f919a400332c53fc2e9e3d4ca89e /weed/command/fuse.go
parentba0db28dbb1cf73a9148de827c89f1cff81a3272 (diff)
downloadseaweedfs-c3487d3da7ad97cd21b7ab7e5109ecd5d46a01cb.tar.xz
seaweedfs-c3487d3da7ad97cd21b7ab7e5109ecd5d46a01cb.zip
better fix for option format
Diffstat (limited to 'weed/command/fuse.go')
-rw-r--r--weed/command/fuse.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/weed/command/fuse.go b/weed/command/fuse.go
index 1d58ffdd7..cf088022c 100644
--- a/weed/command/fuse.go
+++ b/weed/command/fuse.go
@@ -191,7 +191,11 @@ func runFuse(cmd *Command, args []string) bool {
case "fusermount.path":
fusermountPath = parameter.value
default:
- mountOptions.extraOptions = append(mountOptions.extraOptions, fmt.Sprintf("%s=%s", parameter.name, parameter.value))
+ t := parameter.name
+ if parameter.value != "true" {
+ t = fmt.Sprintf("%s=%s", parameter.name, parameter.value)
+ }
+ mountOptions.extraOptions = append(mountOptions.extraOptions, t)
}
}