"[EMAIL PROTECTED]":
> Im still stuck :-(
> today i download the 2.6.15 source, pached it and tried to
> compile it native (x86).

Here is a patch for you while I didn't test it.


Junjiro Okajima

----------------------------------------------------------------------
Index: fs/aufs/super.h
===================================================================
RCS file: /cvsroot/aufs/aufs/fs/aufs/super.h,v
retrieving revision 1.58
diff -u -p -r1.58 super.h
--- fs/aufs/super.h     1 Oct 2007 04:47:52 -0000       1.58
+++ fs/aufs/super.h     5 Oct 2007 04:29:53 -0000
@@ -24,14 +24,15 @@
 #ifdef __KERNEL__
 
 #include <linux/fs.h>
-#include <linux/version.h>
 #include <linux/cramfs_fs.h>
+#include <linux/version.h>
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)
 #include <linux/magic.h>
 #else
 #include <linux/nfs_fs.h>
 #endif
 #include <linux/aufs_type.h>
+
 //#include "hinode.h"
 #include "misc.h"
 #include "sysaufs.h"
@@ -81,7 +82,14 @@ struct aufs_sbinfo {
        readf_t                 si_xread;
        writef_t                si_xwrite;
        struct file             *si_xib;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16)
        struct mutex            si_xib_mtx; /* protect xib members */
+#else
+       struct semaphore        si_xib_mtx; /* protect xib members */
+#define mutex_init(mtx)                sema_init(mtx, 1)
+#define mutex_lock(mtx)                down(mtx)
+#define mutex_unlock(mtx)      up(mtx)
+#endif
        unsigned long           *si_xib_buf;
        unsigned long           si_xib_last_pindex;
        int                     si_xib_next_bit;
Index: fs/aufs/xino.c
===================================================================
RCS file: /cvsroot/aufs/aufs/fs/aufs/xino.c,v
retrieving revision 1.41
diff -u -p -r1.41 xino.c
--- fs/aufs/xino.c      1 Oct 2007 04:49:02 -0000       1.41
+++ fs/aufs/xino.c      5 Oct 2007 04:29:53 -0000
@@ -174,6 +174,10 @@ int xino_write(struct super_block *sb, a
 
 /* ---------------------------------------------------------------------- */
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16) \
+       && !defined(BITS_PER_BYTE)
+#define BITS_PER_BYTE 8
+#endif
 static const int page_bits = (int)PAGE_SIZE * BITS_PER_BYTE;
 //static const int page_bits = 4;
 static ino_t xib_calc_ino(unsigned long pindex, int bit)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

Reply via email to