]> git.apps.os.sepia.ceph.com Git - ceph.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>
Mon, 10 Aug 2020 18:14:40 +0000 (14:14 -0400)
commit24d39ee170143f25068829b73500819f2a40fbb0
tree5b0d14433c3ec77021bcd2355b0d463e4d27a4cc
parent59ee59325cf68af233c208840e8e78d61dff5b8a
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>
Conflicts:
src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py
subvol pin operation not backported, required resolution
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py
Updated features with Enum values
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