lsm_volume_vpd83_verify man page

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 ref 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.

Info

lsm_volume_vpd83_verify October 2017 Libstoragemgmt C API Manual