~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/osd/OSDCaps.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-07-16 09:56:24 UTC
  • mfrom: (0.3.11)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120716095624-azr2w4hbhei1rxmx
Tags: upstream-0.48
ImportĀ upstreamĀ versionĀ 0.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
  rwx_t default_allow;
88
88
  rwx_t default_deny;
89
89
  bool allow_all;
90
 
  int peer_type;
91
90
  uint64_t auid;
92
91
 
93
92
  bool get_next_token(string s, size_t& pos, string& token);
97
96
              auid(CEPH_AUTH_UID_DEFAULT) {}
98
97
  bool parse(bufferlist::iterator& iter);
99
98
  int get_pool_cap(string& pool_name, uint64_t uid = CEPH_AUTH_UID_DEFAULT);
100
 
  bool is_mon() { return CEPH_ENTITY_TYPE_MON == peer_type; }
101
 
  bool is_osd() { return CEPH_ENTITY_TYPE_OSD == peer_type; }
102
 
  bool is_mds() { return CEPH_ENTITY_TYPE_MDS == peer_type; }
103
99
  void set_allow_all(bool allow) { allow_all = allow; }
104
 
  void set_peer_type (int pt) { peer_type = pt; }
105
100
  void set_auid(uint64_t uid) { auid = uid; }
106
101
};
107
102