From 32190d4470ade8aeef3cbc1ac2b797f9790353f9 Mon Sep 17 00:00:00 2001 From: yury Date: Wed, 12 Apr 2006 11:31:28 +0000 Subject: [PATCH] - fixes in lli_nfs.c. Seems nfs will not work due to incompatibility with fids, but in any case it will not cause oops. --- lustre/llite/llite_nfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/llite/llite_nfs.c b/lustre/llite/llite_nfs.c index b91b51c..0d8244f 100644 --- 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; } -- 1.8.3.1