lsm_local...t_led_off(3)
β¨ lsm_local_disk_ident_led_off β¨
okay bestie, so this one is a C API function from the Libstoragemgmt C API Manual and it's about turning a little light off. that's it. that's the whole job. but it's a very important little light so let's get into it π
πΈ NAME πΈ
lsm_local_disk_ident_led_off β turn off the disk identification LED. that's right, we're hitting the lights, no cap.
π SYNOPSIS π
int lsm_local_disk_ident_led_off (const char *disk_path, lsm_error
**lsm_err);
π ARGUMENTS π
disk_pathβ aString. it's the path of the disk path, and yes the manpage says it like that, example being"/dev/sdb". so you hand over the disk path, and the disk path is a path, to a disk. iconic circularity honestly π«Άlsm_errβ output pointer oflsm_error. this is where the error message goes, and you can go grab it withlsm_error_message_get. important: that memory should be freed bylsm_error_free, or you're lowkey leaking. be a good citizen, free your errors π
β VERSION β
1.3
π¦ DESCRIPTION π¦
Turn off the identification LED for the specified disk. that's the vibe. one disk, one LED, off.
heads up bestie: this requires read and write access to the specified disk path. no permission, no light show. π₯
π RETURN π
the return value is an error code as enumerated by 'lsm_error_number'. here's the whole roster, no skips:
LSM_ERR_OKβ on success. slay πLSM_ERR_INVALID_ARGUMENTβ when any argument isNULLLSM_ERR_NO_MEMORYβ when no memory.LSM_ERR_LIB_BUGβ when something unexpected happens. π«LSM_ERR_NOT_FOUND_DISKβ when provided disk path not found.LSM_ERR_PERMISSION_DENIEDβ insufficient permission to access provided disk path.LSM_ERR_NO_SUPPORTβ action is not supported.
and that's the whole page, bestie π go forth and turn off some LEDs, you've got this, main character energy only π
β§ο½₯οΎ this has been lsm_local_disk_ident_led_off, page lsm_local...t_led_off(3), from the Libstoragemgmt C API Manual, dated February 2026 β mwah, periodt β§ο½₯οΎ
π¦ 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