From: bobijam Date: Sat, 6 Sep 2008 10:44:28 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: GIT_EPOCH_B_RELEASE_1_6_7~2^3~265 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c8da06410432689cd241f7d1af1c1135fef3893a;p=fs%2Flustre-release.git Branch b1_6 b=16871 i=johann i=adilger instead of LASSERTing MDS, return an error when inode created is not what we expect. --- diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 8dcc85d..cfab6d3 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -1099,7 +1099,8 @@ int mds_open(struct mds_update_record *rec, int offset, } inode = dchild->d_inode; if (ino) { - LASSERT(ino == inode->i_ino); + if (ino != inode->i_ino) + GOTO(cleanup, rc = -EFAULT); /* Written as part of setattr */ inode->i_generation = rec->ur_fid2->generation; CDEBUG(D_HA, "recreated ino %lu with gen %u\n",