]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: block osd pool mksnap for fs pools
authorMilind Changire <mchangir@redhat.com>
Mon, 8 May 2023 07:52:12 +0000 (13:22 +0530)
committerMilind Changire <mchangir@redhat.com>
Tue, 11 Jul 2023 16:04:57 +0000 (21:34 +0530)
commit7891368a7a498ba5930404cbbcd3ccc2231dd5ad
tree9844aaec2f4e7fe59df28eba1c46fa0095eabe51
parent322d99c40c0c860ff6e3138356f83ea1ffcefeea
mon: block osd pool mksnap for fs pools

Commit 23db15d5c2b disabled pool snaps for the rados mksnap path. But
ceph osd pool mksnap was an alternate way that pool snaps could be
created.
This commit disables pool snaps via this alternate path as well.

NOTE:
Pool-level snaps and fs-level snaps can't co-exist since snap IDs are
likely to clash between the two different mechanisms and can result in
unintentional data loss when either of the snaps are deleted.

Fixes: https://tracker.ceph.com/issues/59552
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 6203fe15289d27bf02441fd413a40371cb0bc516)
src/mon/OSDMonitor.cc