]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: don't require OSD W for MRemoveSnaps 6601/head
authorJohn Spray <john.spray@redhat.com>
Mon, 16 Nov 2015 10:57:56 +0000 (10:57 +0000)
committerJohn Spray <john.spray@redhat.com>
Fri, 27 Nov 2015 16:28:58 +0000 (16:28 +0000)
commit0b474c52abd3d528c041544f73b1d27d7d1b1320
tree5038db2dd350fb32b071bc9121559ad6dd48cfa2
parentd0690be526870f6987585e3d842145a60540eacb
mon: don't require OSD W for MRemoveSnaps

Use ability to execute "osd pool rmsnap" command
as a signal that the client should be permitted
to send MRemoveSnaps too.

Note that we don't also require the W ability,
unlike Monitor::_allowed_command -- this is slightly
more permissive handling, but anyone crafting caps
that explicitly permit "osd pool rmsnap" needs to
know what they are doing.

Fixes: #13777
Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/MonCap.cc
src/mon/OSDMonitor.cc