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

Commit

Permalink
Rename to exFAT
Browse files Browse the repository at this point in the history
The name sdFAT is misleading and Android-specific.

While the module supports other FAT types, limit it to exFAT as using the
existing Linux's vfat implementation for other FAT types makes the most sense.

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
  • Loading branch information
arter97 committed Aug 12, 2019
1 parent a27a08f commit 9e9d3b8
Show file tree
Hide file tree
Showing 27 changed files with 1,846 additions and 1,846 deletions.
82 changes: 41 additions & 41 deletions Kconfig
Original file line number Diff line number Diff line change
@@ -1,103 +1,103 @@
config SDFAT_FS
config EXFAT_FS
tristate
default y
select NLS
select NLS_UTF8
select NLS_CODEPAGE_437
select NLS_ISO8859_1
help
If you want to use the sdFAT file system, then you must say Y or M
here to inlucde sdFAT support.
sdFAT is unified FAT-based file system which supports not only fat12/
16/32 with vfat but also exfat. sdFAT supports winnt short-name rule.
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.
(winnt: emulate the Windows NT rule for display/create.)

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

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

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

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

config SDFAT_DEFAULT_IOCHARSET
string "Default iocharset for sdFAT"
config EXFAT_DEFAULT_IOCHARSET
string "Default iocharset for exFAT"
default "utf8"
depends on SDFAT_FS
depends on EXFAT_FS
help
Set this to the default input/output character set you'd
like sdFAT to use. It should probably match the character set
that most of your sdFAT filesystems use, and can be overridden
with the "iocharset" mount option for sdFAT filesystems.
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 SDFAT_CHECK_RO_ATTR
config EXFAT_CHECK_RO_ATTR
bool "Check read-only attribute"
default n
depends on SDFAT_FS
depends on EXFAT_FS

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

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

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

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

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

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

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

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

config SDFAT_STATISTICS
config EXFAT_STATISTICS
bool "enable statistics for bigdata"
depends on SDFAT_FS
depends on EXFAT_FS
default y
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# Makefile for the linux FAT12/16/32(VFAT)/64(exFAT) filesystem driver.
#

obj-$(CONFIG_SDFAT_FS) += sdfat_fs.o
obj-$(CONFIG_EXFAT_FS) += exfat_fs.o

sdfat_fs-objs := sdfat.o core.o core_fat.o core_exfat.o api.o blkdev.o \
exfat_fs-objs := exfat.o core.o core_fat.o core_exfat.o api.o blkdev.o \
fatent.o amap_smart.o cache.o dfr.o nls.o misc.o \
mpage.o extent.o

sdfat_fs-$(CONFIG_SDFAT_VIRTUAL_XATTR) += xattr.o
sdfat_fs-$(CONFIG_SDFAT_STATISTICS) += statistics.o
exfat_fs-$(CONFIG_EXFAT_VIRTUAL_XATTR) += xattr.o
exfat_fs-$(CONFIG_EXFAT_STATISTICS) += statistics.o


all:
Expand Down
Loading

0 comments on commit 9e9d3b8

Please sign in to comment.