]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/nfs: refactor 'nfs export update' and export validation
authorSage Weil <sage@newdream.net>
Thu, 27 May 2021 23:25:06 +0000 (19:25 -0400)
committerSebastian Wagner <sewagner@redhat.com>
Thu, 9 Sep 2021 14:17:46 +0000 (16:17 +0200)
commit7c4e08621951a84dc07818da8bd2a7e530cbd25a
tree57863bb1c1266292173f9bda4039b70aa0961295
parentdbdf4fdaee980f461f7dbaf39cc50a914bf7e764
mgr/nfs: refactor 'nfs export update' and export validation

Move validation to the Export class, so it can check any object in
place.

Refactor update code to extract allowed changes checks from the old
validation class.

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