various corrections in pkg/volume
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
@@ -211,7 +211,7 @@ func searchDisk(b fcDiskMounter) (string, error) {
|
||||
diskIDs = wwids
|
||||
}
|
||||
|
||||
rescaned := false
|
||||
rescanned := false
|
||||
// two-phase search:
|
||||
// first phase, search existing device path, if a multipath dm is found, exit loop
|
||||
// otherwise, in second phase, rescan scsi bus and search again, return with any findings
|
||||
@@ -228,13 +228,13 @@ func searchDisk(b fcDiskMounter) (string, error) {
|
||||
}
|
||||
}
|
||||
// if a dm is found, exit loop
|
||||
if rescaned || dm != "" {
|
||||
if rescanned || dm != "" {
|
||||
break
|
||||
}
|
||||
// rescan and search again
|
||||
// rescan scsi bus
|
||||
scsiHostRescan(io)
|
||||
rescaned = true
|
||||
rescanned = true
|
||||
}
|
||||
// if no disk matches input wwn and lun, exit
|
||||
if disk == "" && dm == "" {
|
||||
|
Reference in New Issue
Block a user