]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: add earmarking for subvol
authorAvan Thakkar <athakkar@redhat.com>
Tue, 17 Sep 2024 07:27:11 +0000 (12:57 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Fri, 20 Sep 2024 07:29:07 +0000 (12:59 +0530)
commit480bc61ed3cf2323c2a56bcfd357775984c35358
treec5d2868628b797fd5848bb4e1a454810a16f03df
parented8ee0f26ef720e6504cefa8be1a2d0872192de7
mgr/volumes: add earmarking for subvol

- Implemented earmarking functionality for subvolumes and subvolume groups,
ensuring that they do not share the same subvolume or subvolume group to avoid
data corruption due to unsupported mixed protocol use.
- Added a command to set set/rm earmark from a given subvolume / subvolume group
- Adding __init__.py for python-common/ceph/fs dir to have it as a package.
- Fixed subvolume info command when no earmark is set.

Fixes: https://tracker.ceph.com/issues/67460
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit a08ddab34abefaab5647e87552f3095c329d6b39)
src/pybind/mgr/volumes/fs/operations/subvolume.py
src/pybind/mgr/volumes/fs/operations/template.py
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
src/pybind/mgr/volumes/fs/volume.py
src/pybind/mgr/volumes/module.py
src/python-common/ceph/fs/__init__.py [new file with mode: 0644]
src/python-common/ceph/fs/earmarking.py [new file with mode: 0644]