]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Persist auth and subvolume metadata
authorKotresh HR <khiremat@redhat.com>
Wed, 18 Nov 2020 10:13:25 +0000 (15:43 +0530)
committerKotresh HR <khiremat@redhat.com>
Fri, 5 Mar 2021 06:50:31 +0000 (12:20 +0530)
commitc4fd7eb7bf2dd48fa1760610fc4236b03a6e475e
treea36f7dc26756153d52c4b9fd9c603670baada799
parentbdc9a651a3d283503471aa16ff82280cceb1d557
mgr/volumes: Persist auth and subvolume metadata

1. Subvolume create and delete operations create and delete subvolume
   metadata file respectively.
2. Subvolume authorize creates the auth meta file and persists the
   required metadata on subvolume metadata file and auth metdata file
   on disk. Subvolume deauthorize clears the required metadata on
   both metadata files.

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 04d876ced756ca86580bdff4ac116333dbb102e5)
src/pybind/mgr/volumes/fs/operations/versions/auth_metadata.py [new file with mode: 0644]
src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py