1lsm_local_disk_vpd83_get(3)Libstoragemgmt C API Manuallsm_local_disk_vpd83_get(3)
2
3
4

NAME

6       lsm_local_disk_vpd83_get - Query scsi VPD 0x83 NAA ID.
7

SYNOPSIS

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

ARGUMENTS

13       disk_path   String. The path of disk path, example "/dev/sdb".
14
15       vpd83       Output pointer  of  SCSI  VPD83  NAA  ID.  The  format  is:
16                   (?:^6[0-9a-f]{31})|(?:^[235][0-9a-f]{15})$ Set to NULL when
17                   error. Memory should be freed by free.
18
19       lsm_err     Output pointer of lsm_error. Error  message  could  be  re‐
20                   trieved  via  lsm_error_message_get. Memory should be freed
21                   by lsm_error_free.
22

VERSION

24       1.3
25

DESCRIPTION

27       Query the SCSI VPD 0x83 page NAA type ID of specified disk path.
28

RETURN

30       Error code as enumerated by 'lsm_error_number':
31           * LSM_ERR_OK
32               On success or not found.
33           * LSM_ERR_INVALID_ARGUMENT
34               When any argument is NULL
35           * LSM_ERR_NO_MEMORY
36               When no memory.
37           * LSM_ERR_LIB_BUG
38               When something unexpected happens.
39           * LSM_ERR_NOT_FOUND_DISK
40               When provided disk path not found.
41
42
43
44May 2021                   lsm_local_disk_vpd83_getlsm_local_disk_vpd83_get(3)
Impressum