lsm_local...ent_led_on(3)

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

πŸ’– 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 β€” a String. 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 of lsm_error. the error message could be retrieved via lsm_error_message_get. and the memory should be freed by lsm_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 is NULL.
  • 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