Whamcloud - gitweb
- added comment.
authoryury <yury>
Thu, 11 Nov 2004 12:13:23 +0000 (12:13 +0000)
committeryury <yury>
Thu, 11 Nov 2004 12:13:23 +0000 (12:13 +0000)
lustre/mds/mds_lmv.c

index e4200a2..f1f618a 100644 (file)
@@ -654,6 +654,13 @@ int mds_try_to_split_dir(struct obd_device *obd, struct dentry *dentry,
         oa->o_gr = FILTER_GROUP_FIRST_MDS + mds->mds_num;
         oa->o_valid |= OBD_MD_FLID | OBD_MD_FLFLAGS | OBD_MD_FLGROUP;
         oa->o_mode = dir->i_mode;
+
+        /* 
+         * until lmv_obd_create() properly rewritten, it is important to have
+         * here oa->o_id = dir->i_ino, as otherwise master object will have
+         * invalid store cookie (zero inode num), what will lead to -ESTALE in
+         * mds_open() or somewhere else.
+         */
        oa->o_id = dir->i_ino;
 
         down(&dir->i_sem);