.. 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
.. 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
-------------
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')