From a0c14eab41cc55be2b0dd7e8633d39afe71bb0ce Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 11 Nov 2004 12:13:23 +0000 Subject: [PATCH] - added comment. --- lustre/mds/mds_lmv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre/mds/mds_lmv.c b/lustre/mds/mds_lmv.c index e4200a2..f1f618a 100644 --- a/lustre/mds/mds_lmv.c +++ b/lustre/mds/mds_lmv.c @@ -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); -- 1.8.3.1