1lsm_volume_raid_create_cap_Lgiebts(t3o)ragemgmt C APIlsMma_nvuoallume_raid_create_cap_get(3)
2
3
4
6 lsm_volume_raid_create_cap_get - Retrieves supported capability of
7 lsm_volume_raid_create()
8
10 int lsm_volume_raid_create_cap_get (lsm_connect *conn, lsm_system *sys‐
11 tem, uint32_t **supported_raid_types, uint32_t *sup‐
12 ported_raid_type_count, uint32_t **supported_strip_sizes, uint32_t
13 *supported_strip_size_count, lsm_flag flags);
14
16 conn Valid connection.
17
18 system Pointer of lsm_system.
19
20 supported_raid_types
21 Output pointer of uint32_t array. Containing lsm_vol‐
22 ume_raid_type values. Memory should be freed via free.
23 Valid values are: LSM_VOLUME_RAID_TYPE_RAID0
24 Stripe. LSM_VOLUME_RAID_TYPE_RAID1
25 Two disks Mirror LSM_VOLUME_RAID_TYPE_RAID3
26 Byte-level striping with dedicated parity LSM_VOL‐
27 UME_RAID_TYPE_RAID4
28 Block-level striping with dedicated parity LSM_VOL‐
29 UME_RAID_TYPE_RAID5
30 Block-level striping with distributed parity LSM_VOL‐
31 UME_RAID_TYPE_RAID6
32 Block-level striping with two distributed parities,
33 aka, RAID-DP LSM_VOLUME_RAID_TYPE_RAID10
34 Stripe of mirrors LSM_VOLUME_RAID_TYPE_RAID15
35 Parity of mirrors LSM_VOLUME_RAID_TYPE_RAID16
36 Dual parity of mirrors LSM_VOLUME_RAID_TYPE_RAID50
37 Stripe of parities LSM_VOLUME_RAID_TYPE_RAID60
38 Stripe of dual parities LSM_VOLUME_RAID_TYPE_RAID51
39 Mirror of parities LSM_VOLUME_RAID_TYPE_RAID61
40 Mirror of dual parities LSM_VOLUME_RAID_TYPE_JBOD
41 Just bunch of disks, no parity, no striping.
42
43 supported_raid_type_count
44 Output pointer of uint32_t. Indicate the item count of sup‐
45 ported_raid_types array.
46
47 supported_strip_sizes
48 The pointer of uint32_t array. Containing all supported
49 strip sizes. Memory should be freed via free.
50
51 supported_strip_size_count
52 The pointer of uint32_t. Indicate the item count of sup‐
53 ported_strip_sizes array.
54
55 flags Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
56
58 1.2
59
61 Only available for hardware RAID cards. Query all supported RAID types
62 and strip sizes which could be used in lsm_volume_raid_create func‐
63 tions.
64
66 LSM_CAP_VOLUME_RAID_CREATE
67
69 Error code as enumerated by 'lsm_error_number'.
70 * LSM_ERR_OK
71 On success.
72 * LSM_ERR_INVALID_ARGUMENT
73 When any argument is NULL or invalid flags.
74 * LSM_ERR_NO_SUPPORT
75 Not supported.
76
77
78
79February 2019 lsm_volume_raid_createl_scma_pv_ogleutme_raid_create_cap_get(3)