Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix weed fuse parameters parsing

danielflira586e066897c0
diff --git a/weed/command/fuse.go b/weed/command/fuse.go
index ac306876a0..f2534e8530 100644
--- a/weed/command/fuse.go
+++ b/weed/command/fuse.go
@@ -55,14 +55,14 @@ func runFuse(cmd *Command, args []string) bool {
name := option.String()
option.Reset()
- for i++; i < rawArgsLen && rawArgs[i] != ','; i++ {
+ for i++; i < rawArgsLen && rawArgs[i] != ',' && rawArgs[i] != ' '; i++ {
// double quote separator read option until next double quote
if rawArgs[i] == '"' {
for i++; i < rawArgsLen && rawArgs[i] != '"'; i++ {
option.WriteByte(rawArgs[i])
}
- // single quote separator read option until next single quote
+ // single quote separator read option until next single quote
} else if rawArgs[i] == '\'' {
for i++; i < rawArgsLen && rawArgs[i] != '\''; i++ {
option.WriteByte(rawArgs[i])