Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02934aa1 authored by Bruno Martins's avatar Bruno Martins Committed by Razziell
Browse files

fs: Import sdFAT driver

 * Samsung driver version 1.4.16

 * From Samsung package version: G950FXXU1CRAP

Change-Id: I0a0f7365d432f0e006ecc6ca0d305008cc44444c
parent d729b66c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ if BLOCK
menu "DOS/FAT/NT Filesystems"

source "fs/fat/Kconfig"
source "fs/sdfat/Kconfig"
source "fs/ntfs/Kconfig"

endmenu
+1 −0
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@ obj-$(CONFIG_HUGETLBFS) += hugetlbfs/
obj-$(CONFIG_CODA_FS)		+= coda/
obj-$(CONFIG_MINIX_FS)		+= minix/
obj-$(CONFIG_FAT_FS)		+= fat/
obj-$(CONFIG_SDFAT_FS)		+= sdfat/
obj-$(CONFIG_BFS_FS)		+= bfs/
obj-$(CONFIG_ISO9660_FS)	+= isofs/
obj-$(CONFIG_HFSPLUS_FS)	+= hfsplus/ # Before hfs to find wrapped HFS+

fs/sdfat/Kconfig

0 → 100644
+103 −0
Original line number Diff line number Diff line
config SDFAT_FS
	tristate "sdFAT fs support"
	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.
	  (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.

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

config SDFAT_SUPPORT_DIR_SYNC
	bool "Enable supporting dir sync"
	default n
	depends on SDFAT_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"
	default 437
	depends on SDFAT_FS
	help
	  This option should be set to the codepage of your sdFAT filesystems.

config SDFAT_DEFAULT_IOCHARSET
	string "Default iocharset for sdFAT"
	default "utf8"
	depends on SDFAT_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.

config SDFAT_CHECK_RO_ATTR
	bool "Check read-only attribute"
	default n
	depends on SDFAT_FS

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

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

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

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

config SDFAT_DEBUG
	bool "Enable debug features"
	depends on SDFAT_FS
	default y

config SDFAT_DBG_IOCTL
	bool "Enable debug-ioctl features"
	depends on SDFAT_FS && SDFAT_DEBUG
	default n

config SDFAT_DBG_MSG
	bool "Enable debug messages"
	depends on SDFAT_FS && SDFAT_DEBUG
	default y

config SDFAT_DBG_BUGON
	bool "Enable strict BUG_ON() for debugging"
	depends on SDFAT_FS && SDFAT_DEBUG
	default n

config SDFAT_STATISTICS
	bool "Enable statistics for bigdata"
	depends on SDFAT_FS
	default y

fs/sdfat/Makefile

0 → 100644
+24 −0
Original line number Diff line number Diff line
#
# Makefile for the linux FAT12/16/32(VFAT)/64(exFAT) filesystem driver.
#

obj-$(CONFIG_SDFAT_FS) += sdfat_fs.o

sdfat_fs-objs	:= sdfat.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


all:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

cscope:
	rm -rf cscope.files cscope.files
	find $(PWD) \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files
	cscope

fs/sdfat/amap_smart.c

0 → 100644
+1302 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading