table of contents
lsm_nfs_export_fs(3) | Libstoragemgmt C API Manual | lsm_nfs_export_fs(3) |
NAME¶
lsm_nfs_export_fs - Creates or modifies an NFS export.
SYNOPSIS¶
int lsm_nfs_export_fs (lsm_connect *conn, const char *fs_id, const char *export_path, lsm_string_list *root_list, lsm_string_list *rw_list, lsm_string_list *ro_list, uint64_t anon_uid, uint64_t anon_gid, const char *auth_type, const char *options, lsm_nfs_export **exported, lsm_flag flags);
ARGUMENTS¶
- conn
- Valid connection.
- fs_id
- String. File system ID to export.
- export_path
- String. Export path.
- root_list
- Pointer of lsm_string_list. List of hosts that have root access
- rw_list
- Pointer of lsm_string_list. List of hosts that have read/write access
- ro_list
- Pointer of lsm_string_list. List of hosts that have read only access
- anon_uid
- uint64_t. UID to map to anonymous.
- anon_gid
- uint64_t. GID to map to anonymous.
- auth_type
- String. NFS client authentication type.
- options
- Array specific options
- exported
- Output pointer of lsm_nfs_export for newly created NFS export. Returned value must be freed with lsm_nfs_export_record_free.
- flags
- Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
VERSION¶
1.0
DESCRIPTION¶
Creates or modifies an NFS export.
CAPABILITY¶
LSM_CAP_EXPORT_FS
RETURN¶
Error code as enumerated by 'lsm_error_number'.
* LSM_ERR_OK
On success.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL or not a valid lsm_connect pointer
or invalid flags.
* LSM_ERR_NOT_FOUND_FS
When file system not found.
lsm_nfs_export_fs | April 2021 |