lsm_local...t_led_off(3)

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

πŸ’– lsm_local_disk_fault_led_off β€” the Libstoragemgmt C API manual, bestie edition πŸŽ€

okay so. picture this: your disk is having a whole moment, the fault LED is lit up like it's the main character, and you just want the drama to STOP. that's literally this function. it's from the Libstoragemgmt C API Manual, and its manual name is lsm_local...t_led_off β€” yes the title got truncated, no we're not fixing it, it's iconic like that. πŸ’…


✨ NAME ✨

lsm_local_disk_fault_led_off β€” turn off the disk fault LED. that's it. that's the whole job. the light goes off. the vibe improves. πŸ•―οΈβž‘οΈπŸŒ‘


🌸 SYNOPSIS 🌸

int lsm_local_disk_fault_led_off (const char *disk_path, lsm_error
**lsm_err);

look at her. two arguments. no nonsense. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • disk_path β€” a String. it's the path of the disk path, and yes that's exactly how the original says it, example being "/dev/sdb". point it at the disk whose LED you're tryna silence. πŸ“
  • lsm_err β€” output pointer of lsm_error. if something goes sideways, the error message can be retrieved via lsm_error_message_get. and babes, the memory should be freed by lsm_error_free β€” do not leave that allocation hanging, it's giving leak energy and we don't do that here. 🧹

⭐ VERSION ⭐

1.3 β€” periodt.


πŸ’œ DESCRIPTION πŸ’œ

Turn off the fault LED for the specified disk. that's the whole plot. 🎬

heads up bestie: this one requires read and write access to the specified disk path. read and write. both. no cap. if you don't have both, she's not gonna work with you and that's on permissions. πŸ”

πŸ‘‘ RETURN πŸ‘‘

the return is an error code, as enumerated by 'lsm_error_number'. here's the full roster, no skips, no edits:

  • LSM_ERR_OK
    • On success. slay. ✨
  • LSM_ERR_INVALID_ARGUMENT
    • When any argument is NULL. give her real arguments, bestie. 😭
  • LSM_ERR_NO_MEMORY
    • When no memory. we're out here starving, apparently. πŸ’€
  • LSM_ERR_LIB_BUG
    • When something unexpected happens. not me finding out the library has lore. πŸ™ˆ
  • LSM_ERR_NOT_FOUND_DISK
    • When provided disk path not found. that disk is not in this group chat. πŸ‘»
  • LSM_ERR_PERMISSION_DENIED
    • Insufficient permission to access provided disk path. the door is locked and you are not on the list. πŸšͺ
  • LSM_ERR_NO_SUPPORT
    • Action is not supported. she simply does not do that here. 🀷

okay that's the whole page!! every flag, every error code, every argument, all present and accounted for, nothing skipped because we respect the source material around here. 🫑

this edition dropped in February 2026, brought to you by the lsm_local_disk_fault_led_off / lsm_local...t_led_off(3) page from the Libstoragemgmt C API Manual. mwah. go turn off that LED and go to bed. πŸ’–πŸŒŸ

πŸ“¦ where this page comes from