mirror of
https://github.com/kubernetes-csi/csi-driver-nvmf.git
synced 2025-09-09 08:58:58 +00:00
feat: add rdma support
Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
This commit is contained in:
@@ -32,15 +32,10 @@ import (
|
||||
|
||||
func waitForPathToExist(devicePath string, maxRetries, intervalSeconds int, deviceTransport string) (bool, error) {
|
||||
for i := 0; i < maxRetries; i++ {
|
||||
if deviceTransport == "tcp" {
|
||||
exist := utils.IsFileExisting(devicePath)
|
||||
if exist {
|
||||
return true, nil
|
||||
}
|
||||
} else {
|
||||
return false, fmt.Errorf("connect only support tcp")
|
||||
exist := utils.IsFileExisting(devicePath)
|
||||
if exist {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
if i == maxRetries-1 {
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user