lsm_local_disk_led_status_get(3) | Libstoragemgmt C API Manual | lsm_local_disk_led_status_get(3) |
NAME¶
lsm_local_disk_led_status_get - Query disk LED status.
SYNOPSIS¶
int lsm_local_disk_led_status_get (const char *disk_path, uint32_t *led_status, lsm_error **lsm_err);
ARGUMENTS¶
- disk_path
- String. The path of disk, example "/dev/sdb".
- led_status
- Output pointer of uint32_t. which is a bit sensitive field.
- 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.4
DESCRIPTION¶
Query the disk LED status of specified disk path. Require permission to open specified disk path(root user or disk group).
The output led_status is a bit sensitive field:
* LSM_DISK_LED_STATUS_UNKNOWN
* LSM_DISK_LED_STATUS_IDENT_ON
* LSM_DISK_LED_STATUS_IDENT_OFF
* LSM_DISK_LED_STATUS_IDENT_UNKNOWN
* LSM_DISK_LED_STATUS_FAULT_ON
* LSM_DISK_LED_STATUS_FAULT_OFF
* LSM_DISK_LED_STATUS_FAULT_UNKNOWN
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_LIB_BUG
When something unexpected happens.
* LSM_ERR_NOT_FOUND_DISK
When provided disk path not found.
* LSM_ERR_PERMISSION_DENIED
Insufficient permission to access provided disk path.
* LSM_ERR_NO_SUPPORT
Action is not supported.
lsm_local_disk_led_status_get | April 2021 |