]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/volumes: Derive v2 from v1 to leverage common methods
authorShyamsundar Ranganathan <srangana@redhat.com>
Wed, 8 Jul 2020 12:15:57 +0000 (08:15 -0400)
committerShyamsundar Ranganathan <srangana@redhat.com>
Thu, 30 Jul 2020 01:14:40 +0000 (21:14 -0400)
commit0b80de9b6a3b950848fde8afa7a0d32b4641d26c
treeed8b5c807b2f35504330eb7f5c3db6caade578f6
parent9770d2699859a72864e21cef5a75d0030294a64d
mgr/volumes: Derive v2 from v1 to leverage common methods

With v2 introduction in subvolumes, there is quite a bit of
common code and methods that both v1 and v2 share.

To reduce overall code bloat and improve maintainability, derive
SubvolumeV2 from SubvolumeV1.

Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
src/pybind/mgr/volumes/fs/async_cloner.py
src/pybind/mgr/volumes/fs/operations/op_sm.py [deleted file]
src/pybind/mgr/volumes/fs/operations/subvolume.py
src/pybind/mgr/volumes/fs/operations/template.py
src/pybind/mgr/volumes/fs/operations/versions/__init__.py
src/pybind/mgr/volumes/fs/operations/versions/op_sm.py [new file with mode: 0644]
src/pybind/mgr/volumes/fs/operations/versions/subvolume_attrs.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