lsm_local_disk_list - Man Page

Query local disks.

Synopsis

int lsm_local_disk_list (lsm_string_list **disk_paths, lsm_error **lsm_err);

Arguments

disk_paths

lsm_string_list pointer. The disk_path string format is "/dev/sd[a-z]+" for SCSI and ATA disks, "/dev/nvme[0-9]+n[0-9]+" for NVMe disks. Empty lsm_string_list but not NULL will be returned if no disk found. Memory should be freed by lsm_string_list_free.

lsm_err

Output pointer of lsm_error. Error message could be retrieved via lsm_error_message_get. Memory should be freed by lsm_error_free.

Version

1.3

Description

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

Return

Error code as enumerated by 'lsm_error_number':
   * LSM_ERR_OK
       On success or not found.
   * LSM_ERR_INVALID_ARGUMENT
       When any argument is NULL
   * LSM_ERR_NO_MEMORY
       When no memory.
   * LSM_ERR_LIB_BUG
       When something unexpected happens.

Info

July 2024 Libstoragemgmt C API Manual