1lsm_nfs_list(3) Libstoragemgmt C API Manual lsm_nfs_list(3)
2
3
4
6 lsm_nfs_list - Gets a list of NFS exports on this connection.
7
9 int lsm_nfs_list (lsm_connect *conn, const char *search_key, const char
10 *search_value, lsm_nfs_export **exports[], uint32_t *count, lsm_flag
11 flags);
12
14 conn Valid connection.
15
16 search_key Search key(NULL for all). Valid search keys are: "id",
17 "fs_id".
18
19 search_value
20 Search value.
21
22 exports[] Out pointer of lsm_nfs_export array. It should be manually
23 freed by lsm_nfs_export_record_array_free.
24
25 count uint32_t. Number of items in array.
26
27 flags Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
28
30 1.0
31
33 Gets a list of NFS export on this connection. NFS export properties
34 could be retrieved by these functions:
35 * lsm_nfs_export_id_get
36 * lsm_nfs_export_fs_id_get
37 * lsm_nfs_export_export_path_get
38 * lsm_nfs_export_auth_type_get
39 * lsm_nfs_export_root_get
40 * lsm_nfs_export_read_write_get
41 * lsm_nfs_export_read_only_get
42 * lsm_nfs_export_anon_gid_get
43 * lsm_nfs_export_anon_uid_get
44 * lsm_nfs_export_options_get
45
47 LSM_CAP_EXPORTS
48
50 Error code as enumerated by 'lsm_error_number'.
51 * LSM_ERR_OK
52 On success or searched value not found.
53 * LSM_ERR_INVALID_ARGUMENT
54 When any argument is NULL or invalid flags or invalid search
55 key.
56 * LSM_ERR_NO_SUPPORT
57 Not supported.
58
59
60
61November 2022 lsm_nfs_list lsm_nfs_list(3)