fs: Import sdFAT version 2.4.5
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / fs / sdfat / config.h
CommitLineData
00a9ab8c
BM
1/*
2 * Copyright (C) 2012-2013 Samsung Electronics Co., Ltd.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (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, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef _SDFAT_CONFIG_H
19#define _SDFAT_CONFIG_H
20/*======================================================================*/
21/* */
22/* FFS CONFIGURATIONS */
23/* (CHANGE THIS PART IF REQUIRED) */
24/* */
25/*======================================================================*/
26
27/*----------------------------------------------------------------------*/
28/* Feature Config */
29/*----------------------------------------------------------------------*/
30
31/*----------------------------------------------------------------------*/
32/* Debug/Experimental Config */
33/*----------------------------------------------------------------------*/
34//#define CONFIG_SDFAT_TRACE_IO
35//#define CONFIG_SDFAT_TRACE_LOCK /* Trace elapsed time in lock_super(sb) */
36
37/*----------------------------------------------------------------------*/
38/* Defragmentation Config */
39/*----------------------------------------------------------------------*/
40//#define CONFIG_SDFAT_DFR
41//#define CONFIG_SDFAT_DFR_PACKING
42//#define CONFIG_SDFAT_DFR_DEBUG
43
44/*----------------------------------------------------------------------*/
45/* Config for Kernel equal or newer than 3.7 */
46/*----------------------------------------------------------------------*/
47#ifndef CONFIG_SDFAT_WRITE_SB_INTERVAL_CSECS
48#define CONFIG_SDFAT_WRITE_SB_INTERVAL_CSECS (dirty_writeback_interval)
49#endif
50
51/*----------------------------------------------------------------------*/
52/* Default Kconfig */
53/*----------------------------------------------------------------------*/
54/* default mount options */
55#ifndef CONFIG_SDFAT_DEFAULT_CODEPAGE /* if Kconfig lacked codepage */
56#define CONFIG_SDFAT_DEFAULT_CODEPAGE 437
57#endif
58
59#ifndef CONFIG_SDFAT_DEFAULT_IOCHARSET /* if Kconfig lacked iocharset */
60#define CONFIG_SDFAT_DEFAULT_IOCHARSET "utf8"
61#endif
62
63#ifndef CONFIG_SDFAT_FAT32_SHORTNAME_SEQ /* Shortname ~1, ... ~9 have higher
64 * priority (WIN32/VFAT-like)
65 */
66//#define CONFIG_SDFAT_FAT32_SHORTNAME_SEQ
67#endif
68
69#ifndef CONFIG_SDFAT_ALIGNED_MPAGE_WRITE
70//#define CONFIG_SDFAT_ALIGNED_MPAGE_WRITE
71#endif
72
73#ifndef CONFIG_SDFAT_FAT_MIRRORING /* if Kconfig lacked fat-mirroring option */
74#define CONFIG_SDFAT_FAT_MIRRORING /* Write FAT 1, FAT 2 simultaneously */
75#endif
76
77#ifndef CONFIG_SDFAT_DELAYED_META_DIRTY
78//#define CONFIG_SDFAT_DELAYED_META_DIRTY /* delayed DIR/FAT dirty support */
79#endif
80
81#ifndef CONFIG_SDFAT_SUPPORT_DIR_SYNC
82//#define CONFIG_SDFAT_SUPPORT_DIR_SYNC /* support DIR_SYNC */
83#endif
84
85#ifndef CONFIG_SDFAT_CHECK_RO_ATTR
86//#define CONFIG_SDFAT_CHECK_RO_ATTR
87#endif
88
89#ifndef CONFIG_SDFAT_RESTRICT_EXT_ONLY_SFN
90#define CONFIG_SDFAT_RESTRICT_EXT_ONLY_SFN
91#endif
92
93#ifndef CONFIG_SDFAT_ALLOW_LOOKUP_LOSSY_SFN
94//#define CONFIG_SDFAT_ALLOW_LOOKUP_LOSSY_SFN
95#endif
96
97#ifndef CONFIG_SDFAT_DBG_SHOW_PID
98//#define CONFIG_SDFAT_DBG_SHOW_PID
99#endif
100
101#ifndef CONFIG_SDFAT_VIRTUAL_XATTR
102//#define CONFIG_SDFAT_VIRTUAL_XATTR
103#endif
104
105#ifndef CONFIG_SDFAT_SUPPORT_STLOG
106//#define CONFIG_SDFAT_SUPPORT_STLOG
107#endif
108
109#ifndef CONFIG_SDFAT_DEBUG
110//{
111//#define CONFIG_SDFAT_DEBUG
112
113#ifndef CONFIG_SDFAT_DBG_IOCTL
114//#define CONFIG_SDFAT_DBG_IOCTL
115#endif
116
117#ifndef CONFIG_SDFAT_DBG_MSG
118//#define CONFIG_SDFAT_DBG_MSG
119#endif
120
121#ifndef CONFIG_SDFAT_DBG_CAREFUL
122//#define CONFIG_SDFAT_DBG_CAREFUL
123#endif
124
125#ifndef CONFIG_SDFAT_DBG_BUGON
126//#define CONFIG_SDFAT_DBG_BUGON
127#endif
128
129#ifndef CONFIG_SDFAT_DBG_WARNON
130//#define CONFIG_SDFAT_DBG_WARNON
131#endif
132//}
133#endif /* CONFIG_SDFAT_DEBUG */
134
135
136#ifndef CONFIG_SDFAT_TRACE_SB_LOCK
137//#define CONFIG_SDFAT_TRACE_SB_LOCK
138#endif
139
140#ifndef CONFIG_SDFAT_TRACE_ELAPSED_TIME
141//#define CONFIG_SDFAT_TRACE_ELAPSED_TIME
142#endif
143
144#endif /* _SDFAT_CONFIG_H */
145
146/* end of config.h */