1lsm_local_disk_health_statuLsi_bgsetto(r3a)gemgmt C AlPsIm_Mlaoncuaall_disk_health_status_get(3)
2
3
4
6 lsm_local_disk_health_status_get - Query the health status of local
7 disk.
8
10 int lsm_local_disk_health_status_get (const char *disk_path, int32_t
11 *health_status, lsm_error **lsm_err);
12
14 disk_path String. The disk path, example "/dev/sdc".
15
16 health_status
17 Output pointer of int32_t. Possible values are: *
18 LSM_DISK_HEALTH_STATUS_UNKNOWN
19 Unsupported or failed to retrieved health status. *
20 LSM_DISK_HEALTH_STATUS_FAIL * LSM_DISK_HEALTH_STATUS_WARN *
21 LSM_DISK_HEALTH_STATUS_GOOD
22
23 lsm_err Output pointer of lsm_error. Error message could be
24 retrieved via lsm_error_message_get. Memory should be freed
25 by lsm_error_free.
26
28 1.5
29
31 Query the health status of the specified disk path.
32
34 Error code as enumerated by 'lsm_error_number':
35 * LSM_ERR_OK
36 On success.
37 * LSM_ERR_INVALID_ARGUMENT
38 When any argument is NULL
39 * LSM_ERR_NO_MEMORY
40 When no memory.
41 * LSM_ERR_LIB_BUG
42 When something unexpected happens.
43 * LSM_ERR_NOT_FOUND_DISK
44 When provided disk path not found.
45
46
47
48April 2019 lsm_local_disk_healthl_ssmt_altoucsa_lg_edtisk_health_status_get(3)