diff options
| author | Ryan Russell <ryanrussell@users.noreply.github.com> | 2022-09-14 11:14:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-14 09:14:44 -0700 |
| commit | 19652c1b83d3b26355a820988fce977c99173c60 (patch) | |
| tree | 3e00a6862d94a68924ded0792fabb2b69faf1068 | |
| parent | b6a1b84a00186c3e1b30bc3f2717fc7005daca62 (diff) | |
| download | seaweedfs-19652c1b83d3b26355a820988fce977c99173c60.tar.xz seaweedfs-19652c1b83d3b26355a820988fce977c99173c60.zip | |
refactor(socket mount): Update socket mount pattern to `/tmp/seaweedf… (#3662)
| -rw-r--r-- | weed/command/filer.go | 2 | ||||
| -rw-r--r-- | weed/command/mount_std.go | 2 | ||||
| -rw-r--r-- | weed/shell/command_mount_configure.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go index 452e76228..3a7bc0049 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 a39d88cce..5226e708b 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 ea9202c17..941b7c797 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 { |
