1lsm_local_disk_list(3)    Libstoragemgmt C API Manual   lsm_local_disk_list(3)
2
3
4

NAME

6       lsm_local_disk_list - Query local disks.
7

SYNOPSIS

9       int   lsm_local_disk_list   (lsm_string_list   **disk_paths,  lsm_error
10       **lsm_err);
11

ARGUMENTS

13       disk_paths  lsm_string_list pointer.  The disk_path  string  format  is
14                   '/dev/sd[a-z]+'  for  SCSI  and  ATA  disks,  NULL  will be
15                   returned if no  disk  found.  Memory  should  be  freed  by
16                   lsm_string_list_free.
17
18       lsm_err     Output   pointer  of  lsm_error.  Error  message  could  be
19                   retrieved via lsm_error_message_get. Memory should be freed
20                   by lsm_error_free.
21

VERSION

23       1.3
24

DESCRIPTION

26       Query  local  disk paths. Currently, only SCSI, SAS, ATA and NVMe disks
27       will be included.
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
40
41
42May 2018                      lsm_local_disk_list       lsm_local_disk_list(3)
Impressum