lsm_volume_vpd83_verify(3) | Libstoragemgmt C API Manual | lsm_volume_vpd83_verify(3) |
NAME¶
lsm_volume_vpd83_verify -
SYNOPSIS¶
int lsm_volume_vpd83_verify (const char *vpd83);
ARGUMENTS¶
- vpd83
- String to verify.
DESCRIPTION¶
param vpd83 VPD string to check return Error code as enumerated by ef lsm_error_number. retval LSM_ERR_OK if vpd is OK retval LSM_INVALID_ARGUMENT otherwise. lsm_volume_vpd83_verify - Verifies if volume vpd83 is valid.
Verifies whether specified string is a valid volume vpd83:
* For string start with '2' or '3' or '5', the valid vpd83 should
be 16 hex digits(0-9a-f).
* For string start with '6', the valid vpd83 should be 32 hex
digits(0-9a-f).
VERSION¶
1.0
RETURN¶
Error code as enumerated by 'lsm_error_number':
* LSM_ERR_OK
Is valid volume vpd83.
* LSM_ERR_INVALID_ARGUMENT
Not a valid volume vpd83 or argument is NULL.
lsm_volume_vpd83_verify | April 2021 |