lsm_local...ent_led_on(3)
π lsm_local_disk_ident_led_on β bestie edition π
okay so real talk, this is a page from the Libstoragemgmt C API Manual, and it's about lsm_local_disk_ident_led_on, which is lowkey one of the most satisfying little functions in the whole library. no cap.
β¨ NAME β¨
lsm_local_disk_ident_led_on β turn on the disk identification LED. yes bestie, the little blinky light. the main character of the server rack. π‘
πΈ SYNOPSIS πΈ
int lsm_local_disk_ident_led_on (const char *disk_path, lsm_error
**lsm_err);
π ARGUMENTS π
disk_pathβ aString. it's the path of the disk path (yes, that's what the docs say, we don't make the rules π ), for example"/dev/sdb".lsm_errβ output pointer oflsm_error. the error message could be retrieved vialsm_error_message_get. and the memory should be freed bylsm_error_free. don't forget to free it, bestie, we are not leaking in this house. π«Ά
π¦ VERSION π¦
1.3 β she's been here a minute, she's established, she's iconic. π
β DESCRIPTION β
Turn on the identification LED for the specified disk. that's it, that's the whole vibe. β¨
it requires read and write access to the specified disk path. so if you're running as some random unprivileged little guy, she's gonna say no. π
π₯ RETURN π₯
it hands you back an error code, as enumerated by lsm_error_number, and here's the full rundown, no skips:
LSM_ERR_OKβ on success. slay. πLSM_ERR_INVALID_ARGUMENTβ when any argument isNULL.LSM_ERR_NO_MEMORYβ when no memory. πLSM_ERR_LIB_BUGβ when something unexpected happens. πLSM_ERR_NOT_FOUND_DISKβ when the provided disk path is not found.LSM_ERR_PERMISSION_DENIEDβ insufficient permission to access the provided disk path.LSM_ERR_NO_SUPPORTβ action is not supported. it's giving "we don't do that here."
and that's the whole page, bestie. go forth and light up those disks. π
this was lsm_local_disk_ident_led_on, from the lsm_local...ent_led_on(3) page in the Libstoragemgmt C API Manual, dated February 2026. 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