| 98 | |
| 99 | |
| 100 | void 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 | |
| 113 | void Inode::make_short_path(filepath& p) |
| 114 | { |
no test coverage detected