lsm_volume_raid_create_cap_get - Man Page

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.

Info

July 2024 Libstoragemgmt C API Manual