~ubuntu-branches/ubuntu/precise/aufs/precise

« back to all changes in this revision

Viewing changes to include/linux/aufs_type.h

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2007-05-09 15:29:28 UTC
  • Revision ID: james.westby@ubuntu.com-20070509152928-4sywrmkifvz0bq02
Tags: upstream-0+20070509
ImportĀ upstreamĀ versionĀ 0+20070509

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2005, 2006, 2007 Junjiro Okajima
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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
 
17
 */
 
18
 
 
19
/* $Id: aufs_type.h,v 1.54 2007/05/09 01:22:32 sfjro Exp $ */
 
20
 
 
21
#ifndef __AUFS_TYPE_H__
 
22
#define __AUFS_TYPE_H__
 
23
 
 
24
#define AUFS_VERSION    "20070509"
 
25
 
 
26
/* ---------------------------------------------------------------------- */
 
27
 
 
28
#ifdef CONFIG_AUFS_BRANCH_MAX_127
 
29
typedef char aufs_bindex_t;
 
30
#define AUFS_BRANCH_MAX 127
 
31
#else
 
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
 
39
#else
 
40
#error unknown CONFIG_AUFS_BRANCH_MAX value
 
41
#endif
 
42
#endif
 
43
 
 
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
 
53
 
 
54
#define AUFS_FSTYPE             AUFS_NAME
 
55
#ifdef CONFIG_AUFS_COMPAT
 
56
#define AUFS_DIROPQ_NAME        "__dir_opaque"
 
57
#else
 
58
#define AUFS_DIROPQ_NAME        AUFS_WH_PFX ".opq" // whiteouted doubly
 
59
#endif
 
60
 
 
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
 
64
 
 
65
#endif /* __AUFS_TYPE_H__ */