1 --- vmblock-only/linux/vmblockInt.h 2008-08-07 20:56:05.000000000 +0200
2 +++ vmblock-only/linux/vmblockInt.h 2008-08-07 21:00:10.000000000 +0200
4 #endif /* __KERNEL__ */
6 #define VMBLOCK_CONTROL_MODE S_IRUSR | S_IFREG
7 -#define VMBLOCK_CONTROL_PARENT proc_root_fs
9 + * constants like proc_root_fs has been removed from proc_fs.h
10 + * since kernel 2.6.26. We have to replace it by NULL and use
11 + * full path : to create /proc/fs/wonderful => use fs/wonderful
13 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
14 +# define VMBLOCK_CONTROL_PARENT proc_root_fs
16 +# define VMBLOCK_CONTROL_PARENT NULL
20 * Our modules may be compatible with kernels built for different processors.
21 --- vmblock-only/include/vmblock.h 2008-05-16 07:59:29.000000000 +0200
22 +++ vmblock-only/include/vmblock.h 2008-08-07 21:09:13.000000000 +0200
25 # include <sys/ioccom.h>
28 -#define VMBLOCK_FS_NAME "vmblock"
31 + * constants like proc_root_fs has been removed from proc_fs.h
32 + * since kernel 2.6.26. We have to replace it by NULL and use
33 + * full path : to create /proc/fs/wonderful => use fs/wonderful
35 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
36 +# define VMBLOCK_FS_NAME "vmblock"
38 +# define VMBLOCK_FS_NAME "fs/vmblock"
40 /* Commands for the control half of vmblock driver */
42 # define VMBLOCK_ADD_FILEBLOCK 98