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:
1101c20
)
b=2313
author
phil
<phil>
Fri, 5 Dec 2003 11:49:50 +0000
(11:49 +0000)
committer
phil
<phil>
Fri, 5 Dec 2003 11:49:50 +0000
(11:49 +0000)
My fix to bug 2313 accidentally created a lot of noise by returning
non-zero return codes when multiple clients had a file open for write.
lustre/mds/mds_open.c
patch
|
blob
|
history
diff --git
a/lustre/mds/mds_open.c
b/lustre/mds/mds_open.c
index
6ddd8da
..
1d9b134
100644
(file)
--- a/
lustre/mds/mds_open.c
+++ b/
lustre/mds/mds_open.c
@@
-1075,6
+1075,9
@@
int mds_mfd_close(struct ptlrpc_request *req, struct obd_device *obd,
CERROR("error in setattr(%s): rc %d\n", fidname, rc);
#endif
}
+ /* If other clients have this file open for write, rc will be > 0 */
+ if (rc > 0)
+ rc = 0;
l_dput(mfd->mfd_dentry);
mds_mfd_destroy(mfd);