Whamcloud - gitweb
Branch b1_6
authorbobijam <bobijam>
Sat, 6 Sep 2008 10:44:28 +0000 (10:44 +0000)
committerbobijam <bobijam>
Sat, 6 Sep 2008 10:44:28 +0000 (10:44 +0000)
b=16871
i=johann
i=adilger

instead of LASSERTing MDS, return an error when inode created is not what we expect.

lustre/mds/mds_open.c

index 8dcc85d..cfab6d3 100644 (file)
@@ -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",