lsm_local...vpd83_get(3)
π 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 oflsm_error. You can pull the error message out withlsm_error_message_get, and the memory should be freed bylsm_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 isNULL. 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
- 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