lsm_local...ult_led_on(3)
π lsm_local_disk_fault_led_on(3) π
okay bestie, welcome to the Libstoragemgmt C API Manual, section 3, page lsm_local_disk_fault_led_on. yes the title is a whole mouthful, we're gonna get through it together π«Ά
β¨ NAME β¨
lsm_local_disk_fault_led_on β turn on the disk fault LED. that's it. that's the whole job. she's a specialist π
πΈ SYNOPSIS πΈ
int lsm_local_disk_fault_led_on (const char *disk_path, lsm_error **lsm_err);
π ARGUMENTS π
disk_pathβ aString. it's the path of the disk path, for example"/dev/sdb". that's the little guy you're about to make glow πlsm_errβ output pointer oflsm_error. the error message can be retrieved vialsm_error_message_get. and like, you gotta free that memory withlsm_error_free, no leaving it lying around, that's not cute π
π¦ VERSION π¦
1.3 β vintage but thriving, lowkey iconic β¨
π DESCRIPTION π
Turn on the fault LED for the specified disk. that's the main character move: one disk, one light, one vibe. β¨
bestie, listen β this requires read and write access to the specified disk path. no permission, no light show. periodt.
π₯ RETURN π₯
Error code as enumerated by lsm_error_number, and here's the full lineup, no skips, no cuts:
LSM_ERR_OKβ on success. we ate. πLSM_ERR_INVALID_ARGUMENTβ when any argument isNULL. she needs something to work with πLSM_ERR_NO_MEMORYβ when no memory. the brain cell is fully booked πLSM_ERR_LIB_BUGβ when something unexpected happens. it's giving "who did this" π«LSM_ERR_NOT_FOUND_DISKβ when provided disk path not found. that disk said "not me" πLSM_ERR_PERMISSION_DENIEDβ insufficient permission to access provided disk path. you are not on the list, babe π«LSM_ERR_NO_SUPPORTβ action is not supported. this disk simply does not participate π
that's the whole page, bestie, go forth and light up some fault LEDs responsibly πβ¨
cute sign-off time: this page is from February 2026, it's the lsm_local_disk_fault_led_on entry in the Libstoragemgmt C API Manual, and honestly? she understood the assignment. mwah. ππ
π¦ where this page comes from
- fedora 43: libstoragemgmt-devel 1.10.3-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libstoragemgmt-devel 1.10.3-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms