[OpenAFS-devel] OpenAFS and Linux 2.6.25 (again)

Marc Dionne marc.c.dionne@gmail.com
Wed, 12 Mar 2008 22:03:11 -0400


Le 12/03/08 09:53 PM, Derrick Brashear a =C3=A9crit :
> On Wed, Mar 12, 2008 at 9:49 PM, Gautam Iyer <gi1242@stanford.edu> =
wrote:
>> Hi All,
>>
>>  I've desperately been trying to get OpenAFS (any version) to comp=
ile
>>  with the recent Linux 2.6.25 kernels.
>>
>=20
> cvs co -ropenafs-stable-1_4_x openafs and try it

I think you'll also need this - a few variables are missing :

diff -u -r1.19.2.13 osi_file.c
--- osi_file.c  10 Mar 2008 19:05:28 -0000      1.19.2.13
+++ osi_file.c  13 Mar 2008 02:00:20 -0000
@@ -40,6 +40,11 @@
      struct inode *tip =3D NULL;
      struct dentry *dp =3D NULL;
      struct file *filp =3D NULL;
+#if defined(AFS_CACHE_VNODE_PATH)
+    int code;
+    int dummy;
+    char fname[1024];
+#endif
      AFS_STATCNT(osi_UFSOpen);
      if (cacheDiskType !=3D AFS_FCACHE_TYPE_UFS) {
         osi_Panic("UFSOpen called for non-UFS cache\n");

Marc