lsm_local_disk_vpd83_get - Man Page
Query scsi VPD 0x83 NAA ID.
Synopsis
int lsm_local_disk_vpd83_get (const char *disk_path, char **vpd83, lsm_error **lsm_err);
Arguments
- disk_path
String. The path of disk path, example "/dev/sdb".
- vpd83
Output pointer of SCSI VPD83 NAA ID. The format is: (?:^6[0-9a-f]{31})|(?:^[235][0-9a-f]{15})$ Set to NULL when error. Memory should be freed by free.
- lsm_err
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 SCSI VPD 0x83 page NAA type ID of specified disk path.
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.