perms(perms), fd(fd)
{ }
+void dir_result_t::dentry::print(std::ostream& os) const
+{
+ os << "dn(name=" << name << " altn=" << alternate_name;
+ if (inode) {
+ os << " ino=" << inode->ino;
+ } else {
+ os << " null";
+ }
+ os << ")";
+}
+
void Client::_reset_faked_inos()
{
ino_t start = 1024;
explicit dentry(int64_t o) : offset(o) {}
dentry(int64_t o, std::string n, std::string an, InodeRef in) :
offset(o), name(std::move(n)), alternate_name(std::move(an)), inode(std::move(in)) {}
+ void print(std::ostream& os) const;
};
struct dentry_off_lt {
bool operator()(const dentry& d, int64_t off) const {