amarao / sdled

Control fault/locate indicators in disk slots in enclosures (SES devices)
GNU General Public License v2.0
49 stars 20 forks source link

GOOD off applying for devices didn't marked as fault only #7

Closed dthpulse closed 2 years ago

dthpulse commented 2 years ago

It's safer to do not apply 'ALL off' to devices marked as fault. Fault devices LEDs can be turned off by specifying device exactly like

encled /dev/sdbo off
amarao commented 2 years ago

Thank you for your feedback and efforts!

I think ALL means ALL. You have an additional case to worry about. Can you, please, to adjust code to support both cases? May be your case can be encoded as 'GOOD' (encled GOOD off, which turn off all non-faulty indicators). And encled ALL off is, well, literally, ALL off.

dthpulse commented 2 years ago

Hi amarao, you're right. I've implemented the changes according your suggestions.

thx!

amarao commented 2 years ago

Thank you a lot for your contribution, it looks nice!

dthpulse commented 2 years ago

Thank you George!