Skip to content

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

Closed
cjs-nexsan wants to merge 3 commits into
md-raid-utilities:mainfrom
cjs-nexsan:main
Closed

SES: Correctly interpret element index field when EIIOE=1#276
cjs-nexsan wants to merge 3 commits into
md-raid-utilities:mainfrom
cjs-nexsan:main

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.

@cjs-nexsan cjs-nexsan marked this pull request as draft June 4, 2026 16:02
@cjs-nexsan cjs-nexsan closed this Jun 4, 2026
@cjs-nexsan
Copy link
Copy Markdown
Author

Closed - incorrect branch.

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