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:
f3aa74d
)
- fixes in lli_nfs.c. Seems nfs will not work due to incompatibility with fids, but...
author
yury
<yury>
Wed, 12 Apr 2006 11:31:28 +0000
(11:31 +0000)
committer
yury
<yury>
Wed, 12 Apr 2006 11:31:28 +0000
(11:31 +0000)
lustre/llite/llite_nfs.c
patch
|
blob
|
history
diff --git
a/lustre/llite/llite_nfs.c
b/lustre/llite/llite_nfs.c
index
b91b51c
..
0d8244f
100644
(file)
--- a/
lustre/llite/llite_nfs.c
+++ b/
lustre/llite/llite_nfs.c
@@
-210,14
+210,14
@@
int ll_dentry_to_fh(struct dentry *dentry, __u32 *datap, int *lenp,
{
struct inode *child = dentry->d_inode;
- if (*lenp <
3
)
+ if (*lenp <
5
)
return 255;
/* XXX: there is suspection that @datap is 5*4 bytes max long, so that
* 10*4 bytes (two fids + two times mode) does not fit into it. Not sure
* how to fix it though. */
ll_fid_to_fh(&ll_i2info(child)->lli_fid, (__u32 *)&child->i_mode, datap);
- if (*lenp ==
3 || *lenp ==
5 || S_ISDIR(child->i_mode)) {
+ if (*lenp == 5 || S_ISDIR(child->i_mode)) {
*lenp = 5;
return 1;
}