]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/nfs: add --addr to 'nfs export create'
authorSage Weil <sage@newdream.net>
Wed, 26 May 2021 18:37:34 +0000 (14:37 -0400)
committerSebastian Wagner <sewagner@redhat.com>
Thu, 9 Sep 2021 14:17:45 +0000 (16:17 +0200)
commitfb173776f69b9afcb05e23f05d4820a939a823f9
treec92c60f5329b965a2d73c08e65537808e073a185
parent3df0ec089fe0016dd3d95a096f533d6ad1255db4
mgr/nfs: add --addr to 'nfs export create'

Ganesha exports can have multiple client blocks with addresses and
access modes/squash behavior.  This cannot easily be exposed via a CLI.
However, providing no client address restriction is pretty useful to users
since it allows full access to the mount point with no restrictions.

Add an --addr argument that creates a single client block.  Set the top
export-level access_type to 'none' and squash to 'none' in this case.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 137090dac07f95c3af0b09afc19da210b085019b)
src/pybind/mgr/nfs/export.py
src/pybind/mgr/nfs/module.py