2 * Copyright (C) 2012-2013 Samsung Electronics Co., Ltd.
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.
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, see <http://www.gnu.org/licenses/>.
18 #ifndef _SDFAT_CONFIG_H
19 #define _SDFAT_CONFIG_H
20 /*======================================================================*/
22 /* FFS CONFIGURATIONS */
23 /* (CHANGE THIS PART IF REQUIRED) */
25 /*======================================================================*/
27 /*----------------------------------------------------------------------*/
29 /*----------------------------------------------------------------------*/
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) */
37 /*----------------------------------------------------------------------*/
38 /* Defragmentation Config */
39 /*----------------------------------------------------------------------*/
40 //#define CONFIG_SDFAT_DFR
41 //#define CONFIG_SDFAT_DFR_PACKING
42 //#define CONFIG_SDFAT_DFR_DEBUG
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)
51 /*----------------------------------------------------------------------*/
53 /*----------------------------------------------------------------------*/
54 /* default mount options */
55 #ifndef CONFIG_SDFAT_DEFAULT_CODEPAGE /* if Kconfig lacked codepage */
56 #define CONFIG_SDFAT_DEFAULT_CODEPAGE 437
59 #ifndef CONFIG_SDFAT_DEFAULT_IOCHARSET /* if Kconfig lacked iocharset */
60 #define CONFIG_SDFAT_DEFAULT_IOCHARSET "utf8"
63 #ifndef CONFIG_SDFAT_FAT32_SHORTNAME_SEQ /* Shortname ~1, ... ~9 have higher
64 * priority (WIN32/VFAT-like)
66 //#define CONFIG_SDFAT_FAT32_SHORTNAME_SEQ
69 #ifndef CONFIG_SDFAT_ALIGNED_MPAGE_WRITE
70 //#define CONFIG_SDFAT_ALIGNED_MPAGE_WRITE
73 #ifndef CONFIG_SDFAT_FAT_MIRRORING /* if Kconfig lacked fat-mirroring option */
74 #define CONFIG_SDFAT_FAT_MIRRORING /* Write FAT 1, FAT 2 simultaneously */
77 #ifndef CONFIG_SDFAT_DELAYED_META_DIRTY
78 //#define CONFIG_SDFAT_DELAYED_META_DIRTY /* delayed DIR/FAT dirty support */
81 #ifndef CONFIG_SDFAT_SUPPORT_DIR_SYNC
82 //#define CONFIG_SDFAT_SUPPORT_DIR_SYNC /* support DIR_SYNC */
85 #ifndef CONFIG_SDFAT_CHECK_RO_ATTR
86 //#define CONFIG_SDFAT_CHECK_RO_ATTR
89 #ifndef CONFIG_SDFAT_RESTRICT_EXT_ONLY_SFN
90 #define CONFIG_SDFAT_RESTRICT_EXT_ONLY_SFN
93 #ifndef CONFIG_SDFAT_ALLOW_LOOKUP_LOSSY_SFN
94 //#define CONFIG_SDFAT_ALLOW_LOOKUP_LOSSY_SFN
97 #ifndef CONFIG_SDFAT_DBG_SHOW_PID
98 //#define CONFIG_SDFAT_DBG_SHOW_PID
101 #ifndef CONFIG_SDFAT_VIRTUAL_XATTR
102 //#define CONFIG_SDFAT_VIRTUAL_XATTR
105 #ifndef CONFIG_SDFAT_SUPPORT_STLOG
106 //#define CONFIG_SDFAT_SUPPORT_STLOG
109 #ifndef CONFIG_SDFAT_DEBUG
111 //#define CONFIG_SDFAT_DEBUG
113 #ifndef CONFIG_SDFAT_DBG_IOCTL
114 //#define CONFIG_SDFAT_DBG_IOCTL
117 #ifndef CONFIG_SDFAT_DBG_MSG
118 //#define CONFIG_SDFAT_DBG_MSG
121 #ifndef CONFIG_SDFAT_DBG_CAREFUL
122 //#define CONFIG_SDFAT_DBG_CAREFUL
125 #ifndef CONFIG_SDFAT_DBG_BUGON
126 //#define CONFIG_SDFAT_DBG_BUGON
129 #ifndef CONFIG_SDFAT_DBG_WARNON
130 //#define CONFIG_SDFAT_DBG_WARNON
133 #endif /* CONFIG_SDFAT_DEBUG */
136 #ifndef CONFIG_SDFAT_TRACE_SB_LOCK
137 //#define CONFIG_SDFAT_TRACE_SB_LOCK
140 #ifndef CONFIG_SDFAT_TRACE_ELAPSED_TIME
141 //#define CONFIG_SDFAT_TRACE_ELAPSED_TIME
144 #endif /* _SDFAT_CONFIG_H */
146 /* end of config.h */