blob: 1b8a079bba0aa8c6de0707212b0c4c93e35e1ed1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package mountmanager
import (
"fmt"
"github.com/seaweedfs/seaweedfs/weed/util"
)
// LocalSocketPath returns the unix socket path used to communicate with the weed mount process.
func LocalSocketPath(volumeID string) string {
hash := util.HashToInt32([]byte(volumeID))
if hash < 0 {
hash = -hash
}
return fmt.Sprintf("/var/lib/seaweedfs-mount/seaweedfs-mount-%d.sock", hash)
}
|