lsm_nfs_list - Man Page
Gets a list of NFS exports on this connection.
Synopsis
int lsm_nfs_list (lsm_connect *conn, const char *search_key, const char *search_value, lsm_nfs_export **exports[], uint32_t *count, lsm_flag flags);
Arguments
- conn
Valid connection.
- search_key
Search key(NULL for all). Valid search keys are: "id", "fs_id".
- search_value
Search value.
- exports[]
Out pointer of lsm_nfs_export array. It should be manually freed by lsm_nfs_export_record_array_free.
- count
uint32_t. Number of items in array.
- flags
Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
Version
1.0
Description
Gets a list of NFS export on this connection. NFS export properties could be retrieved by these functions:
* lsm_nfs_export_id_get
* lsm_nfs_export_fs_id_get
* lsm_nfs_export_export_path_get
* lsm_nfs_export_auth_type_get
* lsm_nfs_export_root_get
* lsm_nfs_export_read_write_get
* lsm_nfs_export_read_only_get
* lsm_nfs_export_anon_gid_get
* lsm_nfs_export_anon_uid_get
* lsm_nfs_export_options_get
Capability
LSM_CAP_EXPORTS
Return
Error code as enumerated by 'lsm_error_number'.
* LSM_ERR_OK
On success or searched value not found.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL or invalid flags or invalid search
key.
* LSM_ERR_NO_SUPPORT
Not supported.