2
* Copyright (C) 2005, 2006, 2007 Junjiro Okajima
4
* This program, aufs is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
/* $Id: aufs_type.h,v 1.54 2007/05/09 01:22:32 sfjro Exp $ */
21
#ifndef __AUFS_TYPE_H__
22
#define __AUFS_TYPE_H__
24
#define AUFS_VERSION "20070509"
26
/* ---------------------------------------------------------------------- */
28
#ifdef CONFIG_AUFS_BRANCH_MAX_127
29
typedef char aufs_bindex_t;
30
#define AUFS_BRANCH_MAX 127
32
typedef short aufs_bindex_t;
33
#ifdef CONFIG_AUFS_BRANCH_MAX_511
34
#define AUFS_BRANCH_MAX 511
35
#elif defined(CONFIG_AUFS_BRANCH_MAX_1023)
36
#define AUFS_BRANCH_MAX 1023
37
#elif defined(CONFIG_AUFS_BRANCH_MAX_32767)
38
#define AUFS_BRANCH_MAX 32767
40
#error unknown CONFIG_AUFS_BRANCH_MAX value
44
#define AUFS_NAME "aufs"
45
#define AUFS_WH_PFX ".wh."
46
#define AUFS_WH_LEN (sizeof(AUFS_WH_PFX)-1)
47
#define AUFS_XINO_FNAME "." AUFS_NAME ".xino"
48
#define AUFS_XINO_DEFPATH "/tmp/" AUFS_XINO_FNAME
49
#define AUFS_DIRWH_DEF 3
50
#define AUFS_RDCACHE_DEF 10 // seconds
51
#define AUFS_WKQ_NAME AUFS_NAME "d"
52
#define AUFS_NWKQ_DEF 4
54
#define AUFS_FSTYPE AUFS_NAME
55
#ifdef CONFIG_AUFS_COMPAT
56
#define AUFS_DIROPQ_NAME "__dir_opaque"
58
#define AUFS_DIROPQ_NAME AUFS_WH_PFX ".opq" // whiteouted doubly
61
#define AUFS_WH_BASENAME AUFS_WH_PFX AUFS_NAME // will be whiteouted doubly
62
#define AUFS_WH_DIROPQ AUFS_WH_PFX AUFS_DIROPQ_NAME
63
#define AUFS_WH_PLINKDIR AUFS_WH_PFX "plink" // will be whiteouted doubly
65
#endif /* __AUFS_TYPE_H__ */