};
class MonCaps {
+ string text;
rwx_t default_action;
map<int, MonServiceCap> services_map;
bool get_next_token(string s, size_t& pos, string& token);
bool allow_all;
public:
MonCaps() : default_action(0), allow_all(false) {}
+ const string& get_str() { return text; }
bool parse(bufferlist::iterator& iter);
rwx_t get_caps(int service);
void set_allow_all(bool allow) { allow_all = allow; }
}
}
src_is_mon = !connection || (connection->get_peer_type() & CEPH_ENTITY_TYPE_MON);
+
+ if (s)
+ dout(20) << " caps " << s->caps.get_str() << dendl;
+
#define ALLOW_CAPS(service_id, allow_caps) \
do { \
if (src_is_mon) \