lsm_local_disk_list man page
lsm_local_disk_list — Query local disks.
int lsm_local_disk_list (lsm_string_list **disk_paths, lsm_error **lsm_err);
lsm_string_list pointer. The disk_path string format is '/dev/sd[a-z]+' for SCSI and ATA disks, NULL will be returned if no disk found. Memory should be freed by lsm_string_list_free.
Output pointer of lsm_error. Error message could be retrieved via lsm_error_message_get. Memory should be freed by lsm_error_free.
Query local disk paths. Currently, only SCSI, SAS, ATA and NVMe disks will be included.
Error code as enumerated by 'lsm_error_number':
On success or not found.
When any argument is NULL
When no memory.
When something unexpected happens.