MCPcopy Create free account
hub / github.com/ceph/ceph / may_write

Method may_write

src/messages/MClientRequest.h:195–199  ·  view source on GitHub ↗

bool open_file_mode_is_readonly() { return file_mode_is_readonly(ceph_flags_to_mode(head.args.open.flags)); }*/

Source from the content-addressed store, hash-verified

193 return file_mode_is_readonly(ceph_flags_to_mode(head.args.open.flags));
194 }*/
195 bool may_write() const {
196 return
197 (head.op & CEPH_MDS_OP_WRITE) ||
198 (head.op == CEPH_MDS_OP_OPEN && (head.args.open.flags & (O_CREAT|O_TRUNC)));
199 }
200
201 int get_flags() const {
202 return head.flags;

Callers 3

reply_client_requestMethod · 0.45
handle_client_openMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected