]> CyberLeo.Net >> Repos - CDN/portage-cdn.git/blob - app-emulation/vmware-modules/files/1.0.0.20-vmblock-2.6.26-1.patch
Initial import
[CDN/portage-cdn.git] / app-emulation / vmware-modules / files / 1.0.0.20-vmblock-2.6.26-1.patch
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
3 @@ -50,7 +50,16 @@
4  #endif /* __KERNEL__ */
5
6  #define VMBLOCK_CONTROL_MODE       S_IRUSR | S_IFREG
7 -#define VMBLOCK_CONTROL_PARENT     proc_root_fs
8 +/*
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
12 + */
13 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
14 +#  define VMBLOCK_CONTROL_PARENT     proc_root_fs
15 +#else
16 +#  define VMBLOCK_CONTROL_PARENT     NULL
17 +#endif
18
19  /*
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
23 @@ -14,9 +14,16 @@
24  #ifdef sun
25  # include <sys/ioccom.h>
26  #endif
27 -
28 -#define VMBLOCK_FS_NAME                "vmblock"
29 -
30 +/*
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
34 + */
35 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
36 +# define VMBLOCK_FS_NAME                "vmblock"
37 +#else
38 +# define VMBLOCK_FS_NAME                "fs/vmblock"
39 +#endif
40  /* Commands for the control half of vmblock driver */
41  #if defined(linux)
42  # define VMBLOCK_ADD_FILEBLOCK          98
43