lsm_local...vpd83_get(3)

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

πŸ’– NAME πŸ’–

lsm_local_disk_vpd83_get β€” bestie, this is the one that goes and asks your disk for its scsi VPD 0x83 NAA ID πŸ¦‹ (yes the whole manual is the Libstoragemgmt C API Manual, iykyk)


✨ SYNOPSIS ✨

int lsm_local_disk_vpd83_get (const char *disk_path, char **vpd83,
lsm_error **lsm_err);

πŸŽ€ ARGUMENTS πŸŽ€

  • disk_path β€” String, the path of the disk path, like for example "/dev/sdb". That's your girl. 🫢
  • vpd83 β€” Output pointer of the SCSI VPD83 NAA ID, and the format is literally this, no cap:
(?:^6[0-9a-f]{31})|(?:^[235][0-9a-f]{15})$

It gets set to NULL when there's an error, and the memory should be freed by free. Don't forget, bestie, or it's giving leak energy 😭

  • lsm_err β€” Output pointer of lsm_error. You can pull the error message out with lsm_error_message_get, and the memory should be freed by lsm_error_free. πŸ’…

🌸 VERSION 🌸

1.3 β€” yeah she's been around a minute, still iconic. πŸ‘‘


🌈 DESCRIPTION 🌈

Query the SCSI VPD 0x83 page NAA type ID of the specified disk path. That's it, that's the vibe check. ✨


πŸ’œ RETURN πŸ’œ

Error code as enumerated by 'lsm_error_number', so here's the whole lineup, no skipping:

  • LSM_ERR_OK β€” On success or not found. Slay. πŸ’–
  • LSM_ERR_INVALID_ARGUMENT β€” When any argument is NULL. Not the move, bestie. πŸ™ˆ
  • LSM_ERR_NO_MEMORY β€” When no memory. πŸ’€
  • LSM_ERR_LIB_BUG β€” When something unexpected happens. Main character plot twist energy. 😭
  • LSM_ERR_NOT_FOUND_DISK β€” When provided disk path not found. She's not here, babe. πŸ¦‹

Okay that's the whole page! Written up by the Libstoragemgmt C API Manual crew, February 2026 edition β€” mwah, love u, go free your memory πŸ’…πŸ’–
πŸ“¦ where this page comes from