lsm_disk_type_get(3)

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

πŸ’… 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 argument d is NULL. 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