[OpenAFS] Still no luck on linux 2.6.10

Kevin Coffman kwc@citi.umich.edu
Thu, 10 Feb 2005 10:21:29 -0500


> Hi,
> 
> just for the record,
> the current (2005/02/10) cvs version of OpenAFS does build
> and load on my linux (kernel 2.6.10).
> BUT,
> the very first action, be it an 'ls /afs/...'
> or just an afs shutdown, produces a segment fault
> and freezes the whole system.
> 
> So, it's a pity, but I have to say good-bye after
> some years of using OpenAFS and switch to NFS4,
> since I do need the 2.6 kernel.

FYI, I have OpenAFS running on a 2.6.11-rc3 kernel with
NVSv4.  I'm betting you need the patch that Chas Williams
sent me and put into CVS:

(Chas, I couldn't find any configure change that tests for,
and defines STRUCT_INODE_HAS_I_SB_LIST.)


% cvs diff -u -r 1.74 -r 1.75 afs_vcache.c
Index: afs_vcache.c
===================================================================
RCS file: /cvs/openafs/src/afs/afs_vcache.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- afs_vcache.c        21 Jan 2005 19:13:33 -0000      1.74
+++ afs_vcache.c        4 Feb 2005 21:13:54 -0000       1.75
@@ -39,7 +39,7 @@
 #include "afs/param.h"
 
 RCSID
-    ("$Header: /cvs/openafs/src/afs/afs_vcache.c,v 1.74 2005/01/21 
19:13:33 shadow Exp $");
+    ("$Header: /cvs/openafs/src/afs/afs_vcache.c,v 1.75 2005/02/04 
21:13:54 shadow Exp $");
 
 #include "afs/sysincludes.h"   /*Standard vendor system headers */
 #include "afsincludes.h"       /*AFS-based standard headers */
@@ -952,6 +952,9 @@
 #endif
        ip->i_sb = afs_globalVFS;
        put_inode_on_dummy_list(ip);
+#ifdef STRUCT_INODE_HAS_I_SB_LIST
+       list_add(&ip->i_sb_list, &ip->i_sb->s_inodes);
+#endif
     }
 #endif