table of contents
lsm_volume_raid_create_cap_get(3) | Libstoragemgmt C API Manual | lsm_volume_raid_create_cap_get(3) |
NAME¶
lsm_volume_raid_create_cap_get - Retrieves supported capability of lsm_volume_raid_create()
SYNOPSIS¶
int lsm_volume_raid_create_cap_get (lsm_connect *conn, lsm_system *system, uint32_t **supported_raid_types, uint32_t *supported_raid_type_count, uint32_t **supported_strip_sizes, uint32_t *supported_strip_size_count, lsm_flag flags);
ARGUMENTS¶
- conn
- Valid connection.
- system
- Pointer of lsm_system.
- supported_raid_types
- Output pointer of uint32_t array. Containing lsm_volume_raid_type values.
Memory should be freed via free. Valid values are:
LSM_VOLUME_RAID_TYPE_RAID0
Stripe. LSM_VOLUME_RAID_TYPE_RAID1
Two disks Mirror LSM_VOLUME_RAID_TYPE_RAID3
Byte-level striping with dedicated parity LSM_VOLUME_RAID_TYPE_RAID4
Block-level striping with dedicated parity LSM_VOLUME_RAID_TYPE_RAID5
Block-level striping with distributed parity LSM_VOLUME_RAID_TYPE_RAID6
Block-level striping with two distributed parities,
aka, RAID-DP LSM_VOLUME_RAID_TYPE_RAID10
Stripe of mirrors LSM_VOLUME_RAID_TYPE_RAID15
Parity of mirrors LSM_VOLUME_RAID_TYPE_RAID16
Dual parity of mirrors LSM_VOLUME_RAID_TYPE_RAID50
Stripe of parities LSM_VOLUME_RAID_TYPE_RAID60
Stripe of dual parities LSM_VOLUME_RAID_TYPE_RAID51
Mirror of parities LSM_VOLUME_RAID_TYPE_RAID61
Mirror of dual parities LSM_VOLUME_RAID_TYPE_JBOD
Just bunch of disks, no parity, no striping. - supported_raid_type_count
- Output pointer of uint32_t. Indicate the item count of supported_raid_types array.
- supported_strip_sizes
- The pointer of uint32_t array. Containing all supported strip sizes. Memory should be freed via free.
- supported_strip_size_count
- The pointer of uint32_t. Indicate the item count of supported_strip_sizes array.
- flags
- Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
VERSION¶
1.2
DESCRIPTION¶
Only available for hardware RAID cards. Query all supported RAID types and strip sizes which could be used in lsm_volume_raid_create functions.
CAPABILITY¶
LSM_CAP_VOLUME_RAID_CREATE
RETURN¶
Error code as enumerated by 'lsm_error_number'.
* LSM_ERR_OK
On success.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL or invalid flags.
* LSM_ERR_NO_SUPPORT
Not supported.
lsm_volume_raid_create_cap_get | January 2023 |