Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81cf353
)
Branch b1_6
author
bobijam
<bobijam>
Sat, 6 Sep 2008 10:44:28 +0000
(10:44 +0000)
committer
bobijam
<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
patch
|
blob
|
history
diff --git
a/lustre/mds/mds_open.c
b/lustre/mds/mds_open.c
index
8dcc85d
..
cfab6d3
100644
(file)
--- 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",