lsm_local...t_led_off(3)

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

✨ 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 β€” a String. 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 of lsm_error. this is where the error message goes, and you can go grab it with lsm_error_message_get. important: that memory should be freed by lsm_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 is NULL
  • LSM_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