lsm_local...ult_led_on(3)

πŸ“¦
version 1.10.3 Β· 3 versions
, in fedora 43, fedora 44

πŸ’– 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 β€” a String. 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 of lsm_error. the error message can be retrieved via lsm_error_message_get. and like, you gotta free that memory with lsm_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 is NULL. 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