sg3_utils icon indicating copy to clipboard operation
sg3_utils copied to clipboard

sg_ses: fixed AES EI validation when EIIOE=1

Open cjs-nexsan opened this issue 6 months ago • 1 comments
trafficstars

The sg_ses join_aes_helper() function incorrectly fails with a "not in join" error when EIIOE=1, if an element with AES is near the end of the element list.

Per SES-3, when EIIOE=1, the ELEMENT INDEX field is based on the position in the status descriptor list including overall elements.

The validation code in join_aes_helper() for this case compares ELEMENT INDEX (ei) with "num_j_eoe", which excludes overall elements. This means that if there are 5 overall elements, the join fails if any of the last 5 elements have AES.

This change compares ELEMENT INDEX (ei) with num_j_rows, which includes overall elements as expected when EIIOE=1.

cjs-nexsan avatar May 09 '25 08:05 cjs-nexsan