Whamcloud - gitweb
- fixes in lli_nfs.c. Seems nfs will not work due to incompatibility with fids, but...
authoryury <yury>
Wed, 12 Apr 2006 11:31:28 +0000 (11:31 +0000)
committeryury <yury>
Wed, 12 Apr 2006 11:31:28 +0000 (11:31 +0000)
lustre/llite/llite_nfs.c

index b91b51c..0d8244f 100644 (file)
@@ -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;
         }