along with the client caps info
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
if (in.get_loner() != in.get_wanted_loner())
out << "(" << in.get_wanted_loner() << ")";
}
-
+ }
+ if (!in.get_mds_caps_wanted().empty()) {
+ out << " mcw={";
+ for (map<int,int>::iterator p = in.get_mds_caps_wanted().begin();
+ p != in.get_mds_caps_wanted().end(); ++p) {
+ if (p != in.get_mds_caps_wanted().begin())
+ out << ',';
+ out << p->first << '=' << ccap_string(p->second);
+ }
+ out << '}';
}
if (in.get_num_ref()) {
bool is_any_caps() { return !client_caps.empty(); }
bool is_any_nonstale_caps() { return count_nonstale_caps(); }
+ map<int,int>& get_mds_caps_wanted() { return mds_caps_wanted; }
+
map<client_t,Capability*>& get_client_caps() { return client_caps; }
Capability *get_client_cap(client_t client) {
if (client_caps.count(client))