-
Notifications
You must be signed in to change notification settings - Fork 20
/
config.h
146 lines (117 loc) · 4.73 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/*
* Copyright (C) 2012-2013 Samsung Electronics Co., Ltd.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SDFAT_CONFIG_H
#define _SDFAT_CONFIG_H
/*======================================================================*/
/* */
/* FFS CONFIGURATIONS */
/* (CHANGE THIS PART IF REQUIRED) */
/* */
/*======================================================================*/
/*----------------------------------------------------------------------*/
/* Feature Config */
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* Debug/Experimental Config */
/*----------------------------------------------------------------------*/
//#define CONFIG_SDFAT_TRACE_IO
//#define CONFIG_SDFAT_TRACE_LOCK /* Trace elapsed time in lock_super(sb) */
/*----------------------------------------------------------------------*/
/* Defragmentation Config */
/*----------------------------------------------------------------------*/
//#define CONFIG_SDFAT_DFR
//#define CONFIG_SDFAT_DFR_PACKING
//#define CONFIG_SDFAT_DFR_DEBUG
/*----------------------------------------------------------------------*/
/* Config for Kernel equal or newer than 3.7 */
/*----------------------------------------------------------------------*/
#ifndef CONFIG_SDFAT_WRITE_SB_INTERVAL_CSECS
#define CONFIG_SDFAT_WRITE_SB_INTERVAL_CSECS (dirty_writeback_interval)
#endif
/*----------------------------------------------------------------------*/
/* Default Kconfig */
/*----------------------------------------------------------------------*/
/* default mount options */
#ifndef CONFIG_SDFAT_DEFAULT_CODEPAGE /* if Kconfig lacked codepage */
#define CONFIG_SDFAT_DEFAULT_CODEPAGE 437
#endif
#ifndef CONFIG_SDFAT_DEFAULT_IOCHARSET /* if Kconfig lacked iocharset */
#define CONFIG_SDFAT_DEFAULT_IOCHARSET "utf8"
#endif
#ifndef CONFIG_SDFAT_FAT32_SHORTNAME_SEQ /* Shortname ~1, ... ~9 have higher
* priority (WIN32/VFAT-like)
*/
//#define CONFIG_SDFAT_FAT32_SHORTNAME_SEQ
#endif
#ifndef CONFIG_SDFAT_ALIGNED_MPAGE_WRITE
//#define CONFIG_SDFAT_ALIGNED_MPAGE_WRITE
#endif
#ifndef CONFIG_SDFAT_FAT_MIRRORING /* if Kconfig lacked fat-mirroring option */
#define CONFIG_SDFAT_FAT_MIRRORING /* Write FAT 1, FAT 2 simultaneously */
#endif
#ifndef CONFIG_SDFAT_DELAYED_META_DIRTY
//#define CONFIG_SDFAT_DELAYED_META_DIRTY /* delayed DIR/FAT dirty support */
#endif
#ifndef CONFIG_SDFAT_SUPPORT_DIR_SYNC
//#define CONFIG_SDFAT_SUPPORT_DIR_SYNC /* support DIR_SYNC */
#endif
#ifndef CONFIG_SDFAT_CHECK_RO_ATTR
//#define CONFIG_SDFAT_CHECK_RO_ATTR
#endif
#ifndef CONFIG_SDFAT_RESTRICT_EXT_ONLY_SFN
#define CONFIG_SDFAT_RESTRICT_EXT_ONLY_SFN
#endif
#ifndef CONFIG_SDFAT_ALLOW_LOOKUP_LOSSY_SFN
//#define CONFIG_SDFAT_ALLOW_LOOKUP_LOSSY_SFN
#endif
#ifndef CONFIG_SDFAT_DBG_SHOW_PID
//#define CONFIG_SDFAT_DBG_SHOW_PID
#endif
#ifndef CONFIG_SDFAT_VIRTUAL_XATTR
//#define CONFIG_SDFAT_VIRTUAL_XATTR
#endif
#ifndef CONFIG_SDFAT_SUPPORT_STLOG
//#define CONFIG_SDFAT_SUPPORT_STLOG
#endif
#ifndef CONFIG_SDFAT_DEBUG
//{
//#define CONFIG_SDFAT_DEBUG
#ifndef CONFIG_SDFAT_DBG_IOCTL
//#define CONFIG_SDFAT_DBG_IOCTL
#endif
#ifndef CONFIG_SDFAT_DBG_MSG
//#define CONFIG_SDFAT_DBG_MSG
#endif
#ifndef CONFIG_SDFAT_DBG_CAREFUL
//#define CONFIG_SDFAT_DBG_CAREFUL
#endif
#ifndef CONFIG_SDFAT_DBG_BUGON
//#define CONFIG_SDFAT_DBG_BUGON
#endif
#ifndef CONFIG_SDFAT_DBG_WARNON
//#define CONFIG_SDFAT_DBG_WARNON
#endif
//}
#endif /* CONFIG_SDFAT_DEBUG */
#ifndef CONFIG_SDFAT_TRACE_SB_LOCK
//#define CONFIG_SDFAT_TRACE_SB_LOCK
#endif
#ifndef CONFIG_SDFAT_TRACE_ELAPSED_TIME
//#define CONFIG_SDFAT_TRACE_ELAPSED_TIME
#endif
#endif /* _SDFAT_CONFIG_H */
/* end of config.h */