mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
mgr/nfs: add --squash option to 'nfs export create rgw ...'
The cephfs variant already has it. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
7d2f7efe3f
commit
ad5fe4452d
@ -197,7 +197,7 @@ To export a bucket
|
||||
|
||||
.. code::
|
||||
|
||||
$ ceph nfs export create rgw <bucket_name> <cluster_id> <pseudo_path> [--readonly] [--client_addr <value>...] [--realm <value>]
|
||||
$ ceph nfs export create rgw <bucket_name> <cluster_id> <pseudo_path> [--readonly] [--client_addr <value>...] [--squash <value>]
|
||||
|
||||
For example, to export *mybucket* via NFS cluster *mynfs* at the pseudo-path */bucketdata* to any host in the ``192.168.10.0/24`` network
|
||||
|
||||
@ -207,6 +207,23 @@ For example, to export *mybucket* via NFS cluster *mynfs* at the pseudo-path */b
|
||||
|
||||
.. note:: Export creation is supported only for NFS Ganesha clusters deployed using nfs interface.
|
||||
|
||||
``<bucket_name>`` is the name of the bucket that will be exported.
|
||||
|
||||
.. note:: Currently, if multi-site RGW is enabled, Ceph can only export RGW buckets in the default realm.
|
||||
|
||||
``<cluster_id>`` is the NFS Ganesha cluster ID.
|
||||
|
||||
``<pseudo_path>`` is the export position within the NFS v4 Pseudo Filesystem where the export will be available on the server. It must be an absolute path and unique.
|
||||
|
||||
``<client_addr>`` is the list of client address for which these export
|
||||
permissions will be applicable. By default all clients can access the export
|
||||
according to specified export permissions. See the `NFS-Ganesha Export Sample`_
|
||||
for permissible values.
|
||||
|
||||
``<squash>`` defines the kind of user id squashing to be performed. The default
|
||||
value is `no_root_squash`. See the `NFS-Ganesha Export Sample`_ for
|
||||
permissible values.
|
||||
|
||||
Delete Export
|
||||
-------------
|
||||
|
||||
|
@ -50,12 +50,13 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule):
|
||||
readonly: Optional[bool] = False,
|
||||
client_addr: Optional[List[str]] = None,
|
||||
realm: Optional[str] = None,
|
||||
squash: str = 'none',
|
||||
) -> Tuple[int, str, str]:
|
||||
"""Create an RGW export"""
|
||||
return self.export_mgr.create_export(fsal_type='rgw', bucket=bucket,
|
||||
realm=realm,
|
||||
cluster_id=cluster_id, pseudo_path=pseudo_path,
|
||||
read_only=readonly, squash='none',
|
||||
read_only=readonly, squash=squash,
|
||||
addr=client_addr)
|
||||
|
||||
@CLICommand('nfs export rm', perm='rw')
|
||||
|
Loading…
Reference in New Issue
Block a user