lsm_disk_status_get(3)

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

πŸ’Ύ lsm_disk_status_get(3) β€” the Libstoragemgmt C API Manual page, bestie edition πŸŽ€

okay so bestie, we're in the Libstoragemgmt C API Manual today and we're gonna talk about lsm_disk_status_get(3) β€” yes the whole manual name, yes I'm saying it out loud, we're being thorough πŸ’…


✨ NAME ✨

lsm_disk_status_get β€” retrieves status of specified disk. that's it. that's the job. she's a simple girl with one (1) purpose 🫢


🌸 SYNOPSIS 🌸

uint64_t lsm_disk_status_get (lsm_disk *d);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • d β€” the disk you want the status for. hand her over, she'll spill the tea πŸ’–

⭐ VERSION ⭐

1.0 β€” vintage, iconic, still slaying ✨


πŸ‘‘ DESCRIPTION πŸ‘‘

Retrieves status of the specified disk. literally that's the whole vibe. you give her a disk, she gives you the status. no cap πŸ”₯


πŸ’œ RETURN πŸ’œ

Returns a uint64_t. it's the status of the specified disk, and heads up β€” this is a bit sensitive field, so don't be out here doing bitwise nonsense without knowing what you're doing 😭

possible values are:

  • LSM_DISK_STATUS_UNKNOWN β€” the plugin failed to query out the status of disk. she tried, she really did πŸ™ˆ
  • LSM_DISK_STATUS_OK β€” everything is OK. the girlies are thriving 🌈
  • LSM_DISK_STATUS_OTHER β€” vendor specific status. mysterious. we don't know her πŸ’€
  • LSM_DISK_STATUS_PREDICTIVE_FAILURE β€” disk is still functional but will fail soon. she's giving final girl energy, get your backups together fr fr 😭
  • LSM_DISK_STATUS_ERROR β€” error make disk not functional. she's not okay and cannot be made okay πŸ’€
  • LSM_DISK_STATUS_REMOVED β€” disk was removed by administrator. ghosted, by an admin 🫢
  • LSM_DISK_STATUS_STARTING β€” disk is starting up. she's waking up, give her a minute β˜•
  • LSM_DISK_STATUS_STOPPING β€” disk is shutting down. she's clocking out πŸ’…
  • LSM_DISK_STATUS_STOPPED β€” disk is stopped by administrator. admin said sit down. she sat. πŸ‘‘
  • LSM_DISK_STATUS_INITIALIZING β€” disk is not functional yet, internal storage system is initializing this disk, it could be:
    • Initialising new disk.
    • Zeroing disk.
    • Scrubbing disk data.

she's in her prep era, let her cook 🧚

  • LSM_DISK_STATUS_MAINTENANCE_MODE β€” in maintenance for bad sector scan, integrity check and etc. It might be combined with LSM_DISK_STATUS_OK or LSM_DISK_STATUS_STOPPED for online maintenance or offline maintenance. spa day, but for sectors πŸ’–
  • LSM_DISK_STATUS_SPARE_DISK β€” disk is configured as spare disk. she's on standby, ready to be called up 🌸
  • LSM_DISK_STATUS_RECONSTRUCT β€” disk is reconstructing its data. glow-up in progress, do not disturb πŸ¦‹
  • LSM_DISK_STATUS_FREE β€” new in version 1.2, indicate the whole disk is not holding any data or acting as a dedicate spare disk. This disk could be assigned as a dedicated spare disk or used for creating pool. If any spare disk(like those on NetApp ONTAP) does not require any explicit action when assigning to pool, it should be treated as free disk and marked as LSM_DISK_STATUS_FREE|LSM_DISK_STATUS_SPARE_DISK. brand new, blank slate, main character energy ⭐
bestie reminder: this is a bit sensitive field, so when you're checking statuses, check the bit you actually care about. no yolo-ing the whole integer, iykyk πŸ’…

and that's the whole page, we ate and left no crumbs πŸ“

this was the lsm_disk_status_get(3) page from the Libstoragemgmt C API Manual, dated February 2026, version 1.0 (with 1.2 content showing up in LSM_DISK_STATUS_FREE, as noted above) β€” mwah, take care of your disks, ily, bye πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from