lsm_disk_vpd83_get(3)

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

✨ lsm_disk_vpd83_get ✨

okay bestie, welcome to the Libstoragemgmt C API Manual πŸ’– this one is lsm_disk_vpd83_get(3) and it's literally the little function that goes and grabs your disk's SCSI VPD 0x83 ID. short page, big vibes, let's go πŸ¦‹


🌸 NAME 🌸

lsm_disk_vpd83_get β€” Retrieve the SCSI VPD 0x83 ID for the disk.


πŸŽ€ SYNOPSIS πŸŽ€

const char * lsm_disk_vpd83_get (lsm_disk *d);

πŸ’… ARGUMENTS πŸ’…

  • d β€” the Disk to retrieve system ID for. that's it, that's the whole ask 🫢

⭐ VERSION ⭐

1.3


πŸ¦‹ DESCRIPTION πŸ¦‹

So like, what this does is retrieve the system id for the specified disk. Only available for direct attached storage system btw β€” no cap. It returns the SCSI VPD83 NAA ID of the disk, and that ID is genuinely iconic because you can hand it to lsm_local_disk_vpd83_search when the physical disk is exposed to the OS directly β€” aka system HBA mode 😌

now, gentle heads up, this is important: the capability LSM_CAP_DISK_VPD83_GET only means the plugin could query VPD83 for HBA mode disk. For those physical disks acting as RAID member, the plugin might return NULL as their VPD83 NAA ID. so like, don't come for the plugin if that happens, it's documented, periodt πŸ’€


πŸ™ˆ NOTE πŸ™ˆ

The address returned is valid until lsm_disk gets freed. If you need it to live longer than that, copy the return value. And whatever you do, do not free the returned string. like, do not. it's not yours to free bestie 😭

πŸ’œ RETURN πŸ’œ

Returns a string. It's NULL if the argument d is NULL or not a valid lsm_disk pointer. simple as that ✨


and that's the whole page, you ate it πŸ’… this was lsm_disk_vpd83_get from the Libstoragemgmt C API Manual, dated February 2026 β€” go forth and query your VPD83 NAA IDs responsibly, ily, bye πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from