lsm_disk_status_get(3)
πΎ 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 withLSM_DISK_STATUS_OKorLSM_DISK_STATUS_STOPPEDfor 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 version1.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 asLSM_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
- fedora 43: libstoragemgmt-devel 1.10.3-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libstoragemgmt-devel 1.10.3-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms