if (!inode)
RETURN(ERR_PTR(-ENOENT));
-#warning "I think we need something another here -bzzz"
-#if 0
/* here we disabled generation check, as root inode i_generation
* of cache mds and real mds are different. */
- if (generation && inode->i_generation != generation) {
+ if (inode->i_ino != mds->mds_rootfid.id && generation &&
+ inode->i_generation != generation) {
/* we didn't find the right inode.. */
CERROR("bad inode %lu, link: %lu ct: %d or generation %u/%u\n",
inode->i_ino, (unsigned long)inode->i_nlink,
dput(result);
RETURN(ERR_PTR(-ENOENT));
}
-#endif
if (mnt) {
*mnt = mds->mds_vfsmnt;
int mea_size, update_mode;
ENTRY;
+ DEBUG_REQ(D_INODE, req, "parent "LPU64"/%u name %*s mode %o",
+ rec->ur_fid1->id, rec->ur_fid1->generation,
+ rec->ur_namelen - 1, rec->ur_name, rec->ur_mode);
+
parent_lockh[0].cookie = 0;
parent_lockh[1].cookie = 0;