|
@@ -32,8 +32,8 @@ type ServerMessageBlockFileSystemAbstraction struct {
|
|
|
share *smb2.Share
|
|
|
}
|
|
|
|
|
|
-func NewServerMessageBlockFileSystemAbstraction(uuid string, hierarchy string, ipaddr string, username string, password string) (ServerMessageBlockFileSystemAbstraction, error) {
|
|
|
- conn, err := net.Dial("tcp", ipaddr+":445")
|
|
|
+func NewServerMessageBlockFileSystemAbstraction(uuid string, hierarchy string, ipaddr string, rootShare string, username string, password string) (ServerMessageBlockFileSystemAbstraction, error) {
|
|
|
+ conn, err := net.Dial("tcp", ipaddr)
|
|
|
if err != nil {
|
|
|
log.Println("[SMB-FS] Unable to connect to remote: ", err.Error())
|
|
|
return ServerMessageBlockFileSystemAbstraction{}, err
|
|
@@ -53,9 +53,7 @@ func NewServerMessageBlockFileSystemAbstraction(uuid string, hierarchy string, i
|
|
|
}
|
|
|
|
|
|
//Mound remote storage
|
|
|
- //SSDBuffer
|
|
|
-
|
|
|
- fs, err := s.Mount("SSDBuffer")
|
|
|
+ fs, err := s.Mount(rootShare)
|
|
|
if err != nil {
|
|
|
log.Println("[SMB-FS] Unable to connect to remote: ", err.Error())
|
|
|
return ServerMessageBlockFileSystemAbstraction{}, err
|