]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/api: disallow mirror image operations on a group's member image
authorRamana Raja <rraja@redhat.com>
Thu, 20 Feb 2025 00:09:32 +0000 (19:09 -0500)
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Thu, 24 Apr 2025 15:56:31 +0000 (21:26 +0530)
commitb000b5c9920861558dd3c568542eee98bfc2acee
tree169174c73113f43b01e586843ee9ea925a28f217
parent2c190ec9a531f2e04cd48d176f83d1b0d73b215f
librbd/api: disallow mirror image operations on a group's member image

Disallow the following mirror image APIs when called directly on an
image that is member of a group:
- mirror image demote
- mirror image disable
- mirror image enable
- mirror image promote
- mirror image resync
- mirror image snapshot

Only allow mirror operations on a group's member image via the mirror
group APIs.

Signed-off-by: Ramana Raja <rraja@redhat.com>
src/librbd/api/Mirror.cc
src/librbd/api/Mirror.h