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

Method caps_file_wanted

src/client/Inode.cc:355–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355int Inode::caps_file_wanted()
356{
357 int want = 0;
358 for (const auto &[mode, cnt] : open_by_mode)
359 if (cnt) {
360 want |= ceph_caps_for_mode(mode);
361
362#if defined(__linux__)
363 //want Fr cap during fscrypt rmw
364 if ((mode == CEPH_FILE_MODE_WR) && fscrypt_ctx) {
365 want |= CEPH_CAP_FILE_RD;
366 }
367#endif
368 }
369 return want;
370}
371
372int Inode::caps_wanted()
373{

Callers 3

get_capsMethod · 0.80
wake_up_session_capsMethod · 0.80
_renew_capsMethod · 0.80

Calls 1

ceph_caps_for_modeFunction · 0.85

Tested by

no test coverage detected