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

Method make_long_path

src/client/Inode.cc:100–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99
100void Inode::make_long_path(filepath& p)
101{
102 if (!dentries.empty()) {
103 Dentry *dn = get_first_parent();
104 ceph_assert(dn->dir && dn->dir->parent_inode);
105 dn->dir->parent_inode->make_long_path(p);
106 p.push_dentry(dn->name);
107 } else if (snapdir_parent) {
108 make_nosnap_relative_path(p);
109 } else
110 p = filepath(ino);
111}
112
113void Inode::make_short_path(filepath& p)
114{

Callers 1

dump_inodeMethod · 0.80

Calls 3

filepathClass · 0.70
emptyMethod · 0.45
push_dentryMethod · 0.45

Tested by

no test coverage detected