[OpenAFS-devel] patch for linux-xfs kernels...

Chas Williams chas@cmf.nrl.navy.mil
Sat, 2 Dec 2000 11:59:32 -0500 (EST)


since the xfs port for linux also uses something called struct vnode 
i needed to make the following changes to get the kernel module to build.
[its very similar to the workarounds for coda]

Index: afs_osi.h
===================================================================
RCS file: /afs/cmf/users/chas/cvsroot/openafs/src/afs/afs_osi.h,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 afs_osi.h
--- afs_osi.h	2000/10/31 23:12:03	1.1.1.1
+++ afs_osi.h	2000/12/02 16:56:39
@@ -17,6 +17,10 @@
 #define _CODA_HEADER_
 struct coda_inode_info {};
 #endif
+#ifndef _LINUX_XFS_FS_I
+#define _LINUX_XFS_FS_I
+struct xfs_inode_info {};
+#endif
 #include "../h/fs.h"
 #include "../h/mm.h"
 #endif
Index: sysincludes.h
===================================================================
RCS file: /afs/cmf/users/chas/cvsroot/openafs/src/afs/sysincludes.h,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 sysincludes.h
--- sysincludes.h	2000/10/31 23:12:05	1.1.1.1
+++ sysincludes.h	2000/12/02 16:56:52
@@ -23,6 +23,8 @@
 #define _LINUX_CODA_FS_I
 #define _CFS_HEADER_
 struct coda_inode_info {};
+#define _LINUX_XFS_FS_I
+struct xfs_inode_info {};
 #include <asm/uaccess.h>
 #include <linux/list.h>
 #include <linux/dcache.h>