config.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. #ifndef _SDFAT_CONFIG_H
  18. #define _SDFAT_CONFIG_H
  19. /*======================================================================*/
  20. /* */
  21. /* FFS CONFIGURATIONS */
  22. /* (CHANGE THIS PART IF REQUIRED) */
  23. /* */
  24. /*======================================================================*/
  25. /*----------------------------------------------------------------------*/
  26. /* Feature Config */
  27. /*----------------------------------------------------------------------*/
  28. /*----------------------------------------------------------------------*/
  29. /* Debug/Experimental Config */
  30. /*----------------------------------------------------------------------*/
  31. //#define CONFIG_SDFAT_TRACE_IO
  32. //#define CONFIG_SDFAT_TRACE_LOCK /* Trace elapsed time in lock_super(sb) */
  33. /*----------------------------------------------------------------------*/
  34. /* Defragmentation Config */
  35. /*----------------------------------------------------------------------*/
  36. //#define CONFIG_SDFAT_DFR
  37. //#define CONFIG_SDFAT_DFR_PACKING
  38. //#define CONFIG_SDFAT_DFR_DEBUG
  39. /*----------------------------------------------------------------------*/
  40. /* Config for Kernel equal or newer than 3.7 */
  41. /*----------------------------------------------------------------------*/
  42. #ifndef CONFIG_SDFAT_WRITE_SB_INTERVAL_CSECS
  43. #define CONFIG_SDFAT_WRITE_SB_INTERVAL_CSECS (dirty_writeback_interval)
  44. #endif
  45. /*----------------------------------------------------------------------*/
  46. /* Default Kconfig */
  47. /*----------------------------------------------------------------------*/
  48. /* default mount options */
  49. #ifndef CONFIG_SDFAT_DEFAULT_CODEPAGE /* if Kconfig lacked codepage */
  50. #define CONFIG_SDFAT_DEFAULT_CODEPAGE 437
  51. #endif
  52. #ifndef CONFIG_SDFAT_DEFAULT_IOCHARSET /* if Kconfig lacked iocharset */
  53. #define CONFIG_SDFAT_DEFAULT_IOCHARSET "utf8"
  54. #endif
  55. #ifndef CONFIG_SDFAT_FAT32_SHORTNAME_SEQ /* Shortname ~1, ... ~9 have higher
  56. * priority (WIN32/VFAT-like)
  57. */
  58. //#define CONFIG_SDFAT_FAT32_SHORTNAME_SEQ
  59. #endif
  60. #ifndef CONFIG_SDFAT_ALIGNED_MPAGE_WRITE
  61. //#define CONFIG_SDFAT_ALIGNED_MPAGE_WRITE
  62. #endif
  63. #ifndef CONFIG_SDFAT_FAT_MIRRORING /* if Kconfig lacked fat-mirroring option */
  64. #define CONFIG_SDFAT_FAT_MIRRORING /* Write FAT 1, FAT 2 simultaneously */
  65. #endif
  66. #ifndef CONFIG_SDFAT_DELAYED_META_DIRTY
  67. //#define CONFIG_SDFAT_DELAYED_META_DIRTY /* delayed DIR/FAT dirty support */
  68. #endif
  69. #ifndef CONFIG_SDFAT_SUPPORT_DIR_SYNC
  70. //#define CONFIG_SDFAT_SUPPORT_DIR_SYNC /* support DIR_SYNC */
  71. #endif
  72. #ifndef CONFIG_SDFAT_CHECK_RO_ATTR
  73. //#define CONFIG_SDFAT_CHECK_RO_ATTR
  74. #endif
  75. #ifndef CONFIG_SDFAT_RESTRICT_EXT_ONLY_SFN
  76. #define CONFIG_SDFAT_RESTRICT_EXT_ONLY_SFN
  77. #endif
  78. #ifndef CONFIG_SDFAT_ALLOW_LOOKUP_LOSSY_SFN
  79. //#define CONFIG_SDFAT_ALLOW_LOOKUP_LOSSY_SFN
  80. #endif
  81. #ifndef CONFIG_SDFAT_DBG_SHOW_PID
  82. //#define CONFIG_SDFAT_DBG_SHOW_PID
  83. #endif
  84. #ifndef CONFIG_SDFAT_VIRTUAL_XATTR
  85. //#define CONFIG_SDFAT_VIRTUAL_XATTR
  86. #endif
  87. #ifndef CONFIG_SDFAT_SUPPORT_STLOG
  88. //#define CONFIG_SDFAT_SUPPORT_STLOG
  89. #endif
  90. #ifndef CONFIG_SDFAT_DEBUG
  91. //{
  92. //#define CONFIG_SDFAT_DEBUG
  93. #ifndef CONFIG_SDFAT_DBG_IOCTL
  94. //#define CONFIG_SDFAT_DBG_IOCTL
  95. #endif
  96. #ifndef CONFIG_SDFAT_DBG_MSG
  97. //#define CONFIG_SDFAT_DBG_MSG
  98. #endif
  99. #ifndef CONFIG_SDFAT_DBG_CAREFUL
  100. //#define CONFIG_SDFAT_DBG_CAREFUL
  101. #endif
  102. #ifndef CONFIG_SDFAT_DBG_BUGON
  103. //#define CONFIG_SDFAT_DBG_BUGON
  104. #endif
  105. #ifndef CONFIG_SDFAT_DBG_WARNON
  106. //#define CONFIG_SDFAT_DBG_WARNON
  107. #endif
  108. //}
  109. #endif /* CONFIG_SDFAT_DEBUG */
  110. #ifndef CONFIG_SDFAT_TRACE_SB_LOCK
  111. //#define CONFIG_SDFAT_TRACE_SB_LOCK
  112. #endif
  113. #ifndef CONFIG_SDFAT_TRACE_ELAPSED_TIME
  114. //#define CONFIG_SDFAT_TRACE_ELAPSED_TIME
  115. #endif
  116. #endif /* _SDFAT_CONFIG_H */
  117. /* end of config.h */