]> 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)
committerSage Weil <sage@newdream.net>
Thu, 17 Jun 2021 20:18:06 +0000 (16:18 -0400)
commit2b93356fac49a5bd50a9e4b97314db87ade51666
treef792a872967e18e1ce3654729f3a62370f953e92
parent0eea3d772667a6d9ba4d42427404e8e6730e5df5
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>
src/pybind/mgr/nfs/export.py
src/pybind/mgr/nfs/export_utils.py