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

Method path_capable

src/mds/MDSAuthCaps.cc:212–221  ·  view source on GitHub ↗

* Is the client *potentially* able to access this path? Actual * permission will depend on uids/modes in the full is_capable. */

Source from the content-addressed store, hash-verified

210 * permission will depend on uids/modes in the full is_capable.
211 */
212bool MDSAuthCaps::path_capable(string_view inode_path) const
213{
214 for (const auto &i : grants) {
215 if (i.match.match_path(inode_path)) {
216 return true;
217 }
218 }
219
220 return false;
221}
222
223/**
224 * For a given filesystem path, query whether this capability carries`

Callers 1

handle_client_sessionMethod · 0.80

Calls 1

match_pathMethod · 0.80

Tested by

no test coverage detected