[Libsysio-commit] b_lustre: libsysio/src namei.c
Brought to you by:
lward
|
From: Mei <me...@us...> - 2003-05-18 10:54:17
|
Update of /cvsroot/libsysio/libsysio/src
In directory sc8-pr-cvs1:/tmp/cvs-serv14428
Modified Files:
Tag: b_lustre
namei.c
Log Message:
don't pass down intent until we reached the last component.
Index: namei.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/src/namei.c,v
retrieving revision 1.5
retrieving revision 1.5.4.1
diff -u -w -b -B -p -r1.5 -r1.5.4.1
--- namei.c 24 Mar 2003 22:09:06 -0000 1.5
+++ namei.c 18 May 2003 10:54:10 -0000 1.5.4.1
@@ -369,11 +369,15 @@ _sysio_path_walk(struct pnode *parent, s
* node it is looking up, including the last, via the base
* path node and it's ancestor chain.
*/
+ /* I don't know why we need pass intent when first walk into the
+ * filesyste. But for lustre, we definetely don't want the intent
+ * unless we are handling the last component. -meijia FIXME
+ */
err =
lookup(parent,
&this,
&nd->nd_pno,
- (path || !next.len)
+ (/*path ||*/!next.len)
? nd->nd_intent
: NULL,
(path && next.len) ? path : NULL);
|