~ubuntu-branches/ubuntu/raring/aufs/raring

« back to all changes in this revision

Viewing changes to fs/aufs/aufs.h

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2008-05-06 18:35:50 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080506183550-0b6c974kkgc46oeh
Tags: 0+20080506-1
* New upstream release, supports Kernel 2.6.25 (Closes: #479717)
* Fix building with older Kernels (Closes: #475042)
* Update the patches 01, 04 and 07 to also patch fs/aufs25

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
/*
20
20
 * main header files
21
21
 *
22
 
 * $Id: aufs.h,v 1.44 2008/03/31 07:40:38 sfjro Exp $
 
22
 * $Id: aufs.h,v 1.47 2008/04/21 01:31:25 sfjro Exp $
23
23
 */
24
24
 
25
25
#ifndef __AUFS_H__
34
34
#include <asm/uaccess.h>
35
35
#endif
36
36
 
 
37
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 24)
 
38
#error you got wrong version
 
39
#endif
 
40
 
37
41
/* ---------------------------------------------------------------------- */
38
42
 
39
43
/* limited support before 2.6.16, curretly 2.6.15 only. */
73
77
 
74
78
/* ---------------------------------------------------------------------- */
75
79
 
76
 
#define _AuNoNfsBranchMsg "NFS branch is not supported"
77
 
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16)
78
 
#define AuNoNfsBranch
79
 
#define AuNoNfsBranchMsg _AuNoNfsBranchMsg
80
 
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19) \
81
 
        && (!defined(CONFIG_AUFS_LHASH_PATCH) \
82
 
            || !(defined(CONFIG_AUFS) \
83
 
                 || defined(CONFIG_AUFS_PUT_FILP_PATCH)) \
84
 
            || defined(CONFIG_AUFS_FAKE_DM))
85
 
#define AuNoNfsBranch
86
 
#define AuNoNfsBranchMsg _AuNoNfsBranchMsg \
87
 
        ", try some configurations and patches included in aufs source CVS"
88
 
#else
89
 
#define AuNoNfsBranchMsg ""
90
 
#endif
91
 
 
92
 
/* ---------------------------------------------------------------------- */
93
 
 
94
 
/* see Makefile too */
95
 
#undef AuMagicSysRq
96
 
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18) \
97
 
        && defined(CONFIG_AUFS_DEBUG) \
98
 
        && defined(CONFIG_MAGIC_SYSRQ)
99
 
#define AuMagicSysRq 1
100
 
#endif
101
 
 
102
 
/* ---------------------------------------------------------------------- */
103
 
 
104
80
#include "debug.h"
105
81
 
106
82
#include "branch.h"