lsm_nfs_export_fs - Man Page

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.

Info

July 2024 Libstoragemgmt C API Manual