]> git.apps.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>
Tue, 17 Sep 2024 07:48:11 +0000 (13:18 +0530)
commita08ddab34abefaab5647e87552f3095c329d6b39
tree902abe29d19a12c6e768226f0c2576924c6fe7eb
parentfb471bdb0ca30e9301cfcfc3b5b6e030f5c82dd1
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>
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]