@@ -19,7 +19,7 @@ import (
1919const (
2020 defaultPort = "3260"
2121 maxMultipathAttempts = 10
22- multipathDelay = 30
22+ multipathDelay = 10
2323)
2424
2525var (
@@ -162,7 +162,7 @@ func waitForPathToExistImpl(devicePath *string, maxRetries, intervalSeconds int,
162162 err = nil
163163 if deviceTransport == "tcp" {
164164 _ , err = osStat (* devicePath )
165- debug .Printf ("os stat device: exist %v device %v" , ! os .IsNotExist (err ), * devicePath )
165+ debug .Printf ("[%d] os stat device: exist %v device %v" , i , ! os .IsNotExist (err ), * devicePath )
166166 if err != nil && ! os .IsNotExist (err ) {
167167 debug .Printf ("Error attempting to stat device: %s" , err .Error ())
168168 return false , err
@@ -171,7 +171,7 @@ func waitForPathToExistImpl(devicePath *string, maxRetries, intervalSeconds int,
171171 }
172172
173173 } else {
174- debug .Printf ("filepathGlob: %s" , * devicePath )
174+ debug .Printf ("[%d] filepathGlob: %s" , i , * devicePath )
175175 fpath , _ := filepathGlob (* devicePath )
176176 if fpath == nil {
177177 err = os .ErrNotExist
@@ -191,6 +191,7 @@ func waitForPathToExistImpl(devicePath *string, maxRetries, intervalSeconds int,
191191 }
192192 time .Sleep (time .Second * time .Duration (intervalSeconds ))
193193 }
194+ debug .Printf ("device does NOT exist [%d*%ds] (%v)" , maxRetries , intervalSeconds , * devicePath )
194195 return false , err
195196}
196197
0 commit comments