lsm_local_disk_vpd83_search man page
lsm_local_disk_vpd83_search — Search disks by VPD83 string.
int lsm_local_disk_vpd83_search (const char *vpd83, lsm_string_list **disk_path_list, lsm_error **lsm_err);
String. The SCSI VPD 0x83 page NAA type ID.
Output pointer of lsm_string_list. The format of disk path will be like "/dev/sdb" for SCSI or ATA disk. NULL if no found or got error. Memory should be freed by lsm_string_list_free.
Output pointer of lsm_error. Error message could be retrieved via lsm_error_message_get. Memory should be freed by lsm_error_free.
Search all the disk paths of specified SCSI VPD 0x83 page NAA type ID. For any ATA and other non-SCSI protocol disks supporting VPD 0x83 pages NAA ID, their disk path will also be included.
Error code as enumerated by 'lsm_error_number':
On success or not found.
When any argument is NULL.
When no memory.
When something unexpected happens.