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

Method set_path

src/include/filepath.cc:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void filepath::set_path(std::string_view s) {
69 if (!s.empty() && s[0] == '/') {
70 path = s.substr(1);
71 ino = 1;
72 } else {
73 ino = 0;
74 path = s;
75 }
76 bits.clear();
77}
78
79filepath filepath::prefixpath(int s) const {
80 filepath t(ino);

Callers 7

set_string2Method · 0.45
readdir_r_cbMethod · 0.45
readdir_snapdiffMethod · 0.45
sanitize_rootsMethod · 0.45
enqueue_scrubMethod · 0.45
enqueueMethod · 0.45
set_string2Method · 0.45

Calls 3

substrMethod · 0.80
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected