lsm_local...tatus_get(3)

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

✨ NAME ✨

lsm_local_disk_health_status_get β€” bestie, this is the one that queries the health status of a local disk πŸ’–


🩺 SYNOPSIS 🩺

int lsm_local_disk_health_status_get (const char *disk_path, int32_t
*health_status, lsm_error **lsm_err);

πŸŽ€ ARGUMENTS πŸŽ€

  • disk_path β€” a String, aka the disk path. Like, the actual path-path. Example: "/dev/sdc" πŸ’…
  • health_status β€” an output pointer of int32_t. And the possible values it can hand you back are:
    • LSM_DISK_HEALTH_STATUS_UNKNOWN β€” either it's unsupported or it just straight up failed to retrieve the health status πŸ™ˆ
    • LSM_DISK_HEALTH_STATUS_FAIL
    • LSM_DISK_HEALTH_STATUS_WARN
    • LSM_DISK_HEALTH_STATUS_GOOD
  • lsm_err β€” an output pointer of lsm_error. The error message can be retrieved via lsm_error_message_get. And the memory? Free it with lsm_error_free, no cap 🫢

🌸 VERSION 🌸

1.5


πŸ’« DESCRIPTION πŸ’«

Okay so basically: it queries the health status of the disk path you specified. That's the whole vibe. The specified disk path gets its health status queried. Periodt ✨


πŸ”₯ RETURN πŸ”₯

You get back an error code, as enumerated by lsm_error_number, and here's the whole menu:

  • LSM_ERR_OK β€” on success πŸŽ‰
  • LSM_ERR_INVALID_ARGUMENT β€” when any argument is NULL 😭
  • LSM_ERR_NO_MEMORY β€” when there's no memory
  • LSM_ERR_LIB_BUG β€” when something unexpected happens πŸ’€
  • LSM_ERR_NOT_FOUND_DISK β€” when the disk path you provided isn't found

Not me writing a whole manpage for a disk health check… but honestly? She's iconic for it πŸ‘‘

This lil page came to you from the <strong>Libstoragemgmt C API Manual</strong>, version <strong>1.5</strong>, dated <strong>February 2026</strong> β€” and that's the sign-off bestie, go check those disks πŸŒˆπŸ¦‹

πŸ“¦ where this page comes from