various corrections in pkg/volume

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal
2022-09-16 16:42:06 +05:30
parent 0f582f7c3f
commit f22a74aa6a
18 changed files with 30 additions and 30 deletions

View File

@@ -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 == "" {