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,
15                   "/dev/nvme[0-9]+n[0-9]+"    for    NVMe    disks.     Empty
16                   lsm_string_list  but  not  NULL will be returned if no disk
17                   found. Memory should be freed by lsm_string_list_free.
18
19       lsm_err     Output  pointer  of  lsm_error.  Error  message  could   be
20                   retrieved via lsm_error_message_get. Memory should be freed
21                   by lsm_error_free.
22

VERSION

24       1.3
25

DESCRIPTION

27       Query local disk paths. Currently, only SCSI, SAS, ATA and  NVMe  disks
28       will be included.
29

RETURN

31       Error code as enumerated by 'lsm_error_number':
32           * LSM_ERR_OK
33               On success or not found.
34           * LSM_ERR_INVALID_ARGUMENT
35               When any argument is NULL
36           * LSM_ERR_NO_MEMORY
37               When no memory.
38           * LSM_ERR_LIB_BUG
39               When something unexpected happens.
40
41
42
43April 2019                    lsm_local_disk_list       lsm_local_disk_list(3)
Impressum