Scroll to navigation

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

Valid connection.
String. File system ID to export.
String. Export path.
Pointer of lsm_string_list. List of hosts that have root access
Pointer of lsm_string_list. List of hosts that have read/write access
Pointer of lsm_string_list. List of hosts that have read only access
uint64_t. UID to map to anonymous.
uint64_t. GID to map to anonymous.
String. NFS client authentication type.
Array specific options
Output pointer of lsm_nfs_export for newly created NFS export. Returned value must be freed with lsm_nfs_export_record_free.
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