1lsm_nfs_export_fs(3)      Libstoragemgmt C API Manual     lsm_nfs_export_fs(3)
2
3
4

NAME

6       lsm_nfs_export_fs - Creates or modifies an NFS export.
7

SYNOPSIS

9       int lsm_nfs_export_fs (lsm_connect *conn, const char *fs_id, const char
10       *export_path,  lsm_string_list  *root_list,  lsm_string_list  *rw_list,
11       lsm_string_list  *ro_list,  uint64_t anon_uid, uint64_t anon_gid, const
12       char  *auth_type,  const  char  *options,  lsm_nfs_export   **exported,
13       lsm_flag flags);
14

ARGUMENTS

16       conn        Valid connection.
17
18       fs_id       String. File system ID to export.
19
20       export_path String. Export path.
21
22       root_list   Pointer  of  lsm_string_list.  List of hosts that have root
23                   access
24
25       rw_list     Pointer  of  lsm_string_list.  List  of  hosts  that   have
26                   read/write access
27
28       ro_list     Pointer  of  lsm_string_list.  List of hosts that have read
29                   only access
30
31       anon_uid    uint64_t. UID to map to anonymous.
32
33       anon_gid    uint64_t. GID to map to anonymous.
34
35       auth_type   String. NFS client authentication type.
36
37       options     Array specific options
38
39       exported    Output pointer of  lsm_nfs_export  for  newly  created  NFS
40                   export.     Returned    value    must    be    freed   with
41                   lsm_nfs_export_record_free.
42
43       flags       Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
44

VERSION

46       1.0
47

DESCRIPTION

49       Creates or modifies an NFS export.
50

CAPABILITY

52       LSM_CAP_EXPORT_FS
53

RETURN

55       Error code as enumerated by 'lsm_error_number'.
56           * LSM_ERR_OK
57               On success.
58           * LSM_ERR_INVALID_ARGUMENT
59               When any argument is NULL or not a valid lsm_connect pointer
60               or invalid flags.
61           * LSM_ERR_NOT_FOUND_FS
62               When file system not found.
63
64
65
66February 2020                  lsm_nfs_export_fs          lsm_nfs_export_fs(3)
Impressum