[megaclisas-status] support out of order VDs
Don't assume that the virtual disk IDs are contiguous starting with ID 0. For example, it is possible to have two VDs with IDs 1 and 3.
Hi,
Two of our servers were upgraded, and their VD IDs are no longer contiguous. Here's a patch that might propertly address this problem. It seems to work fine here, but I'm assuming that the "Target Id" field is the correct ID value and not the "Virtual Drive" field, as can be seen from the output of:
megacli -LDInfo -LALL -a0 -NoLog | grep "^Virtual Drive: "
In our case, both numbers are exactly the same. I found another user who created a delta to solve this same problem, at https://github.com/npinto/megaclisas-status.
Could you please test with the latest version of megaclisas-status? I believe I had fixed that in my tree.. Thanks,