]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Remove stale snapshot user metadata
authorKotresh HR <khiremat@redhat.com>
Tue, 16 Aug 2022 11:41:33 +0000 (17:11 +0530)
committerKotresh HR <khiremat@redhat.com>
Thu, 1 Sep 2022 07:38:16 +0000 (13:08 +0530)
commit9c31c6130b7bc0554c7c3b8efbf57ec9cb0861ae
treecdd5cb4af80b6358ba1aecb633dab861e930abf8
parent2b9a5bc3d31c0bae5d31d97ded13abd42a91707f
mgr/volumes: Remove stale snapshot user metadata

This patch adds the capability to remove the stale snapshot user
metadata while loading the subvolume if it is present. It can't
be done in 'SubvolumeBase.discover' since v1 and v2 snapshot paths
are different. This is done just after the discover before returning
the specific version object.

Fixes: https://tracker.ceph.com/issues/55976
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 65af2d123a1f1ef9c4b370e908ece588eec19a1f)
src/pybind/mgr/volumes/fs/operations/versions/__init__.py
src/pybind/mgr/volumes/fs/operations/versions/metadata_manager.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py