lsm_local_disk_health_status_get - Man Page

Query the health status of local disk.

Synopsis

int lsm_local_disk_health_status_get (const char *disk_path, int32_t *health_status, lsm_error **lsm_err);

Arguments

disk_path

String. The disk path, example "/dev/sdc".

health_status

Output pointer of int32_t. Possible values are: * LSM_DISK_HEALTH_STATUS_UNKNOWN
  Unsupported or failed to retrieved health status. * LSM_DISK_HEALTH_STATUS_FAIL * LSM_DISK_HEALTH_STATUS_WARN * LSM_DISK_HEALTH_STATUS_GOOD

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.5

Description

Query the health status of the specified disk path.

Return

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

Info

March 2021 Libstoragemgmt C API Manual