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

Method depth

src/include/filepath.h:94–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93 int length() const { return path.length(); }
94 unsigned depth() const {
95 if (bits.empty() && path.length() > 0) parse_bits();
96 return bits.size();
97 }
98 bool empty() const { return path.length() == 0 && ino == 0; }
99
100 bool absolute() const { return ino == 1; }

Callers 15

get_random_subMethod · 0.80
choose_target_mdsMethod · 0.80
mountMethod · 0.80
path_walkMethod · 0.80
upMethod · 0.80
random_walkMethod · 0.80
handle_client_getattrMethod · 0.80
handle_client_linkMethod · 0.80
can_batchMethod · 0.80
path_traverseMethod · 0.80

Calls 3

emptyMethod · 0.45
lengthMethod · 0.45
sizeMethod · 0.45

Tested by 1

printFunction · 0.64