This section explains how to use the
qq nfs_add_export
command.Description
Add a new NFS export
Usage
qq nfs_add_export [-h] --export-path EXPORT_PATH --fs-path FS_PATH [--tenant-id TENANT_ID] [--description DESCRIPTION] (--no-restrictions | --restrictions JSON_FILE_PATH) [--create-fs-path] [--fields-to-present-as-32-bit FIELD [FIELD ...]]
Flags
Flag Name | Required | Description |
---|---|---|
--export-path
|
Yes | NFS Export path |
--fs-path
|
Yes | File system path |
--tenant-id
|
No | ID of the tenant to add the export to |
--description
|
No | Description of this export |
--no-restrictions
|
No | Specify no restrictions for this export. |
--restrictions
|
No |
Path to local file containing the restrictions in JSON format.
host_restrictions is a comma separated list of IPs/ IP ranges/ hostnames/ wildcarded hostnames/
and the strings KRB5@, KRB5I@, and KRB5P@ for the 3 kerberos security flavors: basic auth,
Integrity, and Privacy.
user_mapping can be "none"|"root"|"all". map_to_user may be "{ "id_type": "LOCAL_USER",
"id_value": " |
--create-fs-path
|
No | Creates the specified file system path if it does not exist |
--fields-to-present-as-32-bit
|
No | Fields that should be forced to fit in 32 bits for this export, to support legacy clients and applications. FILE_IDS will hash file IDs (inode numbers), which can be observed by "stat", and is also necessary for some deprecated linux system calls (e.g. to list a directory) to work. FS_SIZE saturates the available, used, and total capacity reported to tools like "df" to 4GiB. FILE_SIZES saturates the reported size of individual files to 4GiB, and should be used with caution as it could cause application misbehavior in the handling of larger files. NONE explicitly specifies no 32 bit mapping. |