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.

refactor(socket mount): Update socket mount pattern to `/tmp/seaweedf… (#3662)

Ryan Russell19652c1b83d3
diff --git a/weed/command/filer.go b/weed/command/filer.go
index 452e76228f..3a7bc00493 100644
--- a/weed/command/filer.go
+++ b/weed/command/filer.go
@@ -295,7 +295,7 @@ func (fo *FilerOptions) startFiler() {
if runtime.GOOS != "windows" {
localSocket := *fo.localSocket
if localSocket == "" {
- localSocket = fmt.Sprintf("/tmp/seaweefs-filer-%d.sock", *fo.port)
+ localSocket = fmt.Sprintf("/tmp/seaweedfs-filer-%d.sock", *fo.port)
}
if err := os.Remove(localSocket); err != nil && !os.IsNotExist(err) {
glog.Fatalf("Failed to remove %s, error: %s", localSocket, err.Error())
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index a39d88ccec..5226e708ba 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -107,7 +107,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
if mountDirHash < 0 {
mountDirHash = -mountDirHash
}
- *option.localSocket = fmt.Sprintf("/tmp/seaweefs-mount-%d.sock", mountDirHash)
+ *option.localSocket = fmt.Sprintf("/tmp/seaweedfs-mount-%d.sock", mountDirHash)
}
if err := os.Remove(*option.localSocket); err != nil && !os.IsNotExist(err) {
glog.Fatalf("Failed to remove %s, error: %s", *option.localSocket, err.Error())
diff --git a/weed/shell/command_mount_configure.go b/weed/shell/command_mount_configure.go
index ea9202c174..941b7c7979 100644
--- a/weed/shell/command_mount_configure.go
+++ b/weed/shell/command_mount_configure.go
@@ -47,7 +47,7 @@ func (c *commandMountConfigure) Do(args []string, commandEnv *CommandEnv, writer
if mountDirHash < 0 {
mountDirHash = -mountDirHash
}
- localSocket := fmt.Sprintf("/tmp/seaweefs-mount-%d.sock", mountDirHash)
+ localSocket := fmt.Sprintf("/tmp/seaweedfs-mount-%d.sock", mountDirHash)
clientConn, err := grpc.Dial("passthrough:///unix://"+localSocket, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {