Skip to content

SES: Correctly interpret element index field when EIIOE=1#278

Open
cjs-nexsan wants to merge 2 commits into
md-raid-utilities:mainfrom
cjs-nexsan:ses-eiioe-support
Open

SES: Correctly interpret element index field when EIIOE=1#278
cjs-nexsan wants to merge 2 commits into
md-raid-utilities:mainfrom
cjs-nexsan:ses-eiioe-support

Conversation

@cjs-nexsan
Copy link
Copy Markdown

Issue:
If an SES enclosure reports elements using EIIOE=1 (defined in SES-3), the mapping of SAS devices to slots is offset by 1, causing the incorrect LEDs to be changed.

Cause:
When parsing Additional Element Status descriptors, ledmon does not correctly interpret the SES ELEMENT INDEX field when EIIOE=1; it assumes the SES-2 interpretation where ELEMENT INDEX does not include overall elements. The EIIOE field is defined in SES-3, where an EIIOE=1 indicates that the ELEMENT INDEX field includes overall elements.

Solution:
As the (Array) Device Slot elements are required to be first in the list, there will be exactly one overall element prior to the individual (Array) Device Slot elements, so subtracting one from ELEMENT_INDEX if EIIOE=1 produces the same 0-based individual element index as assumed elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant