lsm_disk_type_get(3)
π lsm_disk_type_get β the Libstoragemgmt C API manual, bestie edition π
β¨ NAME β¨
lsm_disk_type_get β lowkey just retrieves the disk type. That's the whole job. She's a simple girl and she eats every time. π
πΈ SYNOPSIS πΈ
lsm_disk_type lsm_disk_type_get (lsm_disk *d);
π¦ ARGUMENTS π¦
dβ the Disk you want the type for. She's the main character of this function, no cap.
β VERSION β
1.0 β she's been iconic since day one. π
π DESCRIPTION π
So basically, this function retrieves the type for the disk. The possible values it can hand you back are giving:
LSM_DISK_TYPE_UNKNOWNβ the unknown one, which you get when argumentdisNULL. Not her ghosting you, it's literally the documented behaviour. πLSM_DISK_TYPE_OTHERβ vendor specific, iykyk.LSM_DISK_TYPE_ATAβ IDE/ATA disk.LSM_DISK_TYPE_SATAβ SATA disk.LSM_DISK_TYPE_SASβ SAS disk.LSM_DISK_TYPE_FCβ FC disk.LSM_DISK_TYPE_SOPβ SCSI over PCI-E for Solid State Storage.LSM_DISK_TYPE_SCSIβ SCSI disk.LSM_DISK_TYPE_LUNβ LUN from external storage array.LSM_DISK_TYPE_NL_SASβ NL_SAS disk (SATA disk using SAS interface).LSM_DISK_TYPE_HDDβ failback value for hard disk drive (rotational). Spinning queen. πLSM_DISK_TYPE_SSDβ Solid State Disk. Fast girlie. β¨LSM_DISK_TYPE_HYBRIDβ combination of HDD and SSD. Best of both worlds, literally the definition of balance. π§
π₯ RETURN π₯
A string. And it gives you NULL if argument d is NULL or not a valid lsm_disk pointer β so please, bestie, hand her a real disk. π
Fr fr though: pass a bad pointer and you get NULL back. That's the documented vibe, don't come for her.
Okay that's the whole page, mwah. π This one's from the Libstoragemgmt C API Manual, dated February 2026, and it's lsm_disk_type_get on the 3 manual page. Go read it again if you forgot something, I'll wait. π«Άπ
π¦ 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