1lsm_local_disk_led_status_gLeitb(s3t)oragemgmt C APIlMsamn_ulaolcal_disk_led_status_get(3)
2
3
4
6 lsm_local_disk_led_status_get - Query disk LED status.
7
9 int lsm_local_disk_led_status_get (const char *disk_path, uint32_t
10 *led_status, lsm_error **lsm_err);
11
13 disk_path String. The path of disk, example "/dev/sdb".
14
15 led_status Output pointer of uint32_t. which is a bit sensitive field.
16
17 lsm_err Output pointer of lsm_error. Error message could be re‐
18 trieved via lsm_error_message_get. Memory should be freed
19 by lsm_error_free.
20
22 1.4
23
25 Query the disk LED status of specified disk path. Require permission
26 to open specified disk path(root user or disk group).
27
28 The output led_status is a bit sensitive field:
29 * LSM_DISK_LED_STATUS_UNKNOWN
30 * LSM_DISK_LED_STATUS_IDENT_ON
31 * LSM_DISK_LED_STATUS_IDENT_OFF
32 * LSM_DISK_LED_STATUS_IDENT_UNKNOWN
33 * LSM_DISK_LED_STATUS_FAULT_ON
34 * LSM_DISK_LED_STATUS_FAULT_OFF
35 * LSM_DISK_LED_STATUS_FAULT_UNKNOWN
36
38 Error code as enumerated by 'lsm_error_number':
39 * LSM_ERR_OK
40 On success.
41 * LSM_ERR_INVALID_ARGUMENT
42 When any argument is NULL
43 * LSM_ERR_LIB_BUG
44 When something unexpected happens.
45 * LSM_ERR_NOT_FOUND_DISK
46 When provided disk path not found.
47 * LSM_ERR_PERMISSION_DENIED
48 Insufficient permission to access provided disk path.
49 * LSM_ERR_NO_SUPPORT
50 Action is not supported.
51
52
53
54April 2022 lsm_local_disk_led_staltsums__lgoectal_disk_led_status_get(3)