Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
exfat: clean-up Kconfig
Browse files Browse the repository at this point in the history
Clean-up convoluted Kconfig and set sensible defaults.

 - Disable by default, following mainline style.
 - Make CONFIG_EXFAT_DELAYED_META_DIRTY a default mount option instead.
   Users must pass "nodelayed_meta" in order to disable this.
 - Always compile CONFIG_EXFAT_SUPPORT_DIR_SYNC.
   Users had to use "dirsync" to opt-in anyways.

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
  • Loading branch information
arter97 committed Sep 14, 2019
1 parent a611727 commit fe3e725
Show file tree
Hide file tree
Showing 9 changed files with 145 additions and 261 deletions.
64 changes: 15 additions & 49 deletions Kconfig
Original file line number Diff line number Diff line change
@@ -1,108 +1,74 @@
config EXFAT_FS
tristate
default y
tristate "exFAT fs support"
select NLS
select NLS_UTF8
select NLS_CODEPAGE_437
select NLS_ISO8859_1
help
If you want to use the exFAT file system, then you must say Y or M
here to inlucde exFAT support.
exFAT is unified FAT-based file system which supports not only fat12/
16/32 with vfat but also exfat. exFAT supports winnt short-name rule.
here to inlucde exFAT support. exFAT supports winnt short-name rule.
(winnt: emulate the Windows NT rule for display/create.)

To compile this as a module, choose M here: the module will be called
exfat_core and exfat_fs.

config EXFAT_DELAYED_META_DIRTY
bool "Enable delayed metadata dirty"
default y
depends on EXFAT_FS
help
If you enable this feature, metadata(FAT/Directory entry) is updated
by flush thread.

config EXFAT_SUPPORT_DIR_SYNC
bool "Enable supporting dir sync"
default n
depends on EXFAT_FS
help
If you enable this feature, the modification for directory operation
is written to a storage at once.
exfat.

if EXFAT_FS
config EXFAT_DEFAULT_CODEPAGE
int "Default codepage for exFAT"
default 437
depends on EXFAT_FS
help
This option should be set to the codepage of your exFAT filesystems.

config EXFAT_DEFAULT_IOCHARSET
string "Default iocharset for exFAT"
default "utf8"
depends on EXFAT_FS
help
Set this to the default input/output character set you'd
like exFAT to use. It should probably match the character set
that most of your exFAT filesystems use, and can be overridden
with the "iocharset" mount option for exFAT filesystems.

config EXFAT_CHECK_RO_ATTR
bool "Check read-only attribute"
default n
depends on EXFAT_FS

config EXFAT_ALIGNED_MPAGE_WRITE
bool "Enable supporting aligned mpage_write"
default y
depends on EXFAT_FS

config EXFAT_VIRTUAL_XATTR
bool "Virtual xattr support for exFAT"
default y
depends on EXFAT_FS
help
To support virtual xattr.

config EXFAT_VIRTUAL_XATTR_SELINUX_LABEL
string "Default string for SELinux label"
default "u:object_r:sdcard_external:s0"
depends on EXFAT_FS && EXFAT_VIRTUAL_XATTR
depends on EXFAT_VIRTUAL_XATTR
help
Set this to the default string for SELinux label.

config EXFAT_SUPPORT_STLOG
bool "Enable storage log"
default y
depends on EXFAT_FS && PROC_STLOG

config EXFAT_DEBUG
bool "enable debug features"
depends on EXFAT_FS
default y

if EXFAT_DEBUG

config EXFAT_DBG_IOCTL
bool "enable debug-ioctl features"
depends on EXFAT_FS && EXFAT_DEBUG
default n
depends on EXFAT_DEBUG

config EXFAT_DBG_MSG
bool "enable debug messages"
depends on EXFAT_FS && EXFAT_DEBUG
default y
depends on EXFAT_DEBUG

config EXFAT_DBG_BUGON
bool "enable strict BUG_ON() for debugging"
depends on EXFAT_FS && EXFAT_DEBUG
default n
depends on EXFAT_DEBUG

config EXFAT_DBG_WARNON
bool "enable strict WARN_ON() for debugging"
depends on EXFAT_FS && EXFAT_DEBUG
default n
depends on EXFAT_DEBUG

endif # if EXFAT_DEBUG

config EXFAT_STATISTICS
bool "enable statistics for bigdata"
depends on EXFAT_FS
default y

endif # if EXFAT_FS
Loading

0 comments on commit fe3e725

Please sign in to comment.