lanman1 - 2007-01-03

I use Debian Sarge stable with a self compiled Kernel 2.6.18.2.
When I try to compile the lufs Module there appear a lot of errors.

I did some Modifications:

1: -----------------------------------------------------------------------------------------------------

Beginning with kernel 2.6.10 'kill_proc_info' is no longer exported and you'll get this error:

*** Warning: "kill_proc_info" [/usr/local/src/lufs-0.9.7-mp/kernel/Linux/2.6/lufs.ko] undefined

/* kill_proc_info(SIGUSR1, &info, GET_INFO(sb)->server_pid); */
kill_proc(GET_INFO(sb)->server_pid, SIGUSR1, &info);

The solution is to make the following change to ./kernel/Linux/2.6/inode.c

Comment out the following line (around line 415):
/* kill_proc_info(SIGUSR1, &info, GET_INFO(sb)->server_pid); */
Add this one:
kill_proc(GET_INFO(sb)->server_pid, SIGUSR1, &info);

2: -----------------------------------------------------------------------------------------------------
debian-bugs-dist Bug#388386: [patch] C.Y.M Wed, 20 Sep 2006 20:04:10 -0700

This is a quick hack that solves the build problem with kernel 2.6.18.  This is
not a backwards compatible patch.

Thanks.

--- lufs/kernel/Linux/2.6/inode.c.orig    2006-09-20 18:31:59.000000000 -0700
+++ lufs/kernel/Linux/2.6/inode.c    2006-09-20 18:33:02.000000000 -0700
@@ -510,9 +510,9 @@
     return -EINVAL;
}

-static struct super_block *lu_get_sb(struct file_system_type *fs_type, int flags, char *dev_name, void *data)
+static struct super_block *lu_get_sb(struct file_system_type *fs_type, int flags, char *dev_name, void *data, struct vfsmount *mnt)
{
-    return get_sb_nodev(fs_type, flags, data, lu_fill_super);
+    return get_sb_nodev(fs_type, flags, data, lu_fill_super, mnt);
}

-----------------------------------------------------------------------------------------------------

and so I could compile the Module.
Now I can mount via the cryptofilesystem crypfs my crypted data. When I try und umount the cryptofs the lufs module crashs and all components of lufs hung. So the only thing I can do is to reboot the System.

Can anybody help me or give me a hint how i could solve this problem? Which Information Do you need to help me?

Best greethings
chris