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:
cc9a100
)
Branch b1_6
author
bobijam
<bobijam>
Sat, 27 Sep 2008 02:18:54 +0000
(
02:18
+0000)
committer
bobijam
<bobijam>
Sat, 27 Sep 2008 02:18:54 +0000
(
02:18
+0000)
b=16871
i=mikhail.pershin (tappro)
i=johann
Correct set created to clear name and inode when operation fails with EFAULT.
lustre/mds/mds_open.c
patch
|
blob
|
history
diff --git
a/lustre/mds/mds_open.c
b/lustre/mds/mds_open.c
index
7823d52
..
8b4e3f1
100644
(file)
--- a/
lustre/mds/mds_open.c
+++ b/
lustre/mds/mds_open.c
@@
-1115,6
+1115,7
@@
int mds_open(struct mds_update_record *rec, int offset,
GOTO(cleanup, rc);
}
inode = dchild->d_inode;
+ created = 1;
if (ino) {
if (ino != inode->i_ino)
GOTO(cleanup, rc = -EFAULT);
@@
-1124,7
+1125,6
@@
int mds_open(struct mds_update_record *rec, int offset,
inode->i_ino, inode->i_generation);
}
- created = 1;
LTIME_S(iattr.ia_atime) = rec->ur_time;
LTIME_S(iattr.ia_ctime) = rec->ur_time;
LTIME_S(iattr.ia_mtime) = rec->ur_time;