The fix has passed the CI testing for DS8k.
The fix include:
Add a new struct:ScbeVolumeMapInfo, it will include the Host and LunNumber
The LunNumber will be get from GetVolMapping.
Add two new function:
function isLun0 to judge if the volume is Lun0
RescanSCSILun0 to scan the Lun0 volume.
In the function RescanSCSILun0, I used WriteFile to rescan the volume.
In the design, I wanted to use the command echo to rescan the volume . But the command doesn't work here. So I used WriteFile to rescan the volume, it works well.
Coverage increased (+1.3%) to 59.09% when pulling 73c226f05967137385f8624fdb41eafc673e96f3 on fix/UB-1103_ds8k_storwize_lun0_rescan into ae6a0a55dd776cfac7fa96c973b9f7691e2c6e2a on dev.
The fix has passed the CI testing for DS8k. The fix include:
This change is