Scroll to navigation

lsm_local_disk_vpd83_get(3) Libstoragemgmt C API Manual lsm_local_disk_vpd83_get(3)

NAME

lsm_local_disk_vpd83_get - Query disk VPD 0x83 ID.

SYNOPSIS

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

ARGUMENTS

String. The path of disk, example: "/dev/sdb", "/dev/nvme0n1".
Output pointer of VPD83 ID. The format is one of: * SCSI NAA: (?:^6[0-9a-f]{31})|(?:^[235][0-9a-f]{15})$ * EUI-64: ^[0-9a-f]{16}$ (8 bytes) * EUI-64 (12): ^[0-9a-f]{24}$ (12 bytes) * EUI-64 (16): ^[0-9a-f]{32}$ (16 bytes) * NVMe NGUID: ^[0-9a-f]{32}$ Set to NULL when error. Memory should be freed by free.
Output pointer of lsm_error. Error message could be retrieved via lsm_error_message_get. Memory should be freed by lsm_error_free.

VERSION

1.3

DESCRIPTION

Query the VPD 0x83 page ID of specified disk path. For SCSI/SAS/ATA disks, returns the NAA type ID if available, falling back to EUI-64 type ID. For NVMe disks, returns the namespace NGUID or EUI-64.

RETURN

Error code as enumerated by 'lsm_error_number':
* LSM_ERR_OK
On success or not found.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL
* LSM_ERR_NO_MEMORY
When no memory.
* LSM_ERR_LIB_BUG
When something unexpected happens.
* LSM_ERR_NOT_FOUND_DISK
When provided disk path not found.

lsm_local_disk_vpd83_get September 2026