1lsm_disk_list(3) Libstoragemgmt C API Manual lsm_disk_list(3)
2
3
4
6 lsm_disk_list - Gets a list of disks on this connection.
7
9 int lsm_disk_list (lsm_connect *conn, const char *search_key, const
10 char *search_value, lsm_disk **disks[], uint32_t *count, lsm_flag
11 flags);
12
14 conn Valid lsm_connect pointer.
15
16 search_key Search key(NULL for all). Valid search keys are: "id",
17 "system_id".
18
19 search_value
20 Search value.
21
22 disks[] Output pointer of lsm_disk array. It should be manually
23 freed by lsm_disk_record_array_free.
24
25 count Output pointer of uint32_t. Number of disks.
26
27 flags Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
28
30 1.0
31
33 Gets a list of disks on this connection. Disk properties could be re‐
34 trieved by these functions:
35 * lsm_disk_id_get
36 * lsm_disk_name_get
37 * lsm_disk_system_id_get
38 * lsm_disk_type_get
39 * lsm_disk_number_of_blocks_get
40 * lsm_disk_block_size_get
41 * lsm_disk_status_get
42 * lsm_disk_location_get
43 * lsm_disk_rpm_get
44 * lsm_disk_link_type_get
45 * lsm_disk_vpd83_get
46
48 LSM_CAP_DISKS
49
51 Error code as enumerated by 'lsm_error_number'.
52 * LSM_ERR_OK
53 On success or searched value not found.
54 * LSM_ERR_INVALID_ARGUMENT
55 When any argument is NULL or invalid flags or invalid search
56 key.
57 * LSM_ERR_NO_SUPPORT
58 Not supported.
59
60
61
62November 2022 lsm_disk_list lsm_disk_list(3)