vdev_id: implement slot numbering by port id #6484
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
With HPE hardware and hpsa-driven SAS adapters, only a single phy is
reported, but no individual per-port phys (ie. no
phy*
entry belowport_dir
), which breaks topology detection in the current sas_handlercode. Instead, slot information can be derived directly from the port
number. This change implements a new slot keyword
port
similar toid
andlun
, and assumes a default phy/port of 0 if no individualphy entry can be found.
Motivation and Context
This change allows to use
vdev_id
and itssas_direct
topology withcurrent HPE JBODs such as Dxxxx and Apollo 45xx. Currently, this is not
possible due to the check for
phy*
belowport_dir
.How Has This Been Tested?
Tested with HPE Apollo 45xx, D3xxx and D6xxx JBODs on systems running RHEL 7.3, hpsa 3.4.14 and 3.4.18.
Types of changes
Checklist:
Signed-off-by
.