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.

locate the weed binary

Chris Lud8bda0b2294a
diff --git a/weed/command/fuse.go b/weed/command/fuse.go
index f2534e8530..609892b5ba 100644
--- a/weed/command/fuse.go
+++ b/weed/command/fuse.go
@@ -195,7 +195,11 @@ func runFuse(cmd *Command, args []string) bool {
// the master start the child, release it then finish himself
if masterProcess {
- arg0 := os.Args[0]
+ arg0, err := os.Executable()
+ if err != nil {
+ panic(err)
+ }
+
argv := append(os.Args, "-o", "child")
attr := os.ProcAttr{}