summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnab Chaudhuri <coolguyforgenerationx@gmail.com>2016-02-14 20:38:55 +0530
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-23 11:10:42 -0800
commit86f63903f955c99228bdfcde2a27eb5dfd43c567 (patch)
tree1962877b90c5fc247e6399771eebe5d9611e3c10
parent4319094e4419935efcff4d3ae7954bd978b9c40e (diff)
downloaddevice_samsung_galaxys2-common-86f63903f955c99228bdfcde2a27eb5dfd43c567.zip
device_samsung_galaxys2-common-86f63903f955c99228bdfcde2a27eb5dfd43c567.tar.gz
device_samsung_galaxys2-common-86f63903f955c99228bdfcde2a27eb5dfd43c567.tar.bz2
galaxys2-common: Add f2fs filesystem support
Change-Id: I593fe2057a057e7fcf73a6158df7646ad1a9bceb
-rw-r--r--BoardCommonConfig.mk1
-rw-r--r--common.mk5
-rwxr-xr-xrootdir/fstab.smdk42102
3 files changed, 8 insertions, 0 deletions
diff --git a/BoardCommonConfig.mk b/BoardCommonConfig.mk
index 6c3900a..4a195eb 100644
--- a/BoardCommonConfig.mk
+++ b/BoardCommonConfig.mk
@@ -64,6 +64,7 @@ MALLOC_IMPL := dlmalloc
# Filesystem
TARGET_USERIMAGES_USE_EXT4 := true
+TARGET_USERIMAGES_USE_F2FS := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 8388608
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912
BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147467264
diff --git a/common.mk b/common.mk
index d35de14..9f311ac 100644
--- a/common.mk
+++ b/common.mk
@@ -138,6 +138,11 @@ PRODUCT_PACKAGES += \
resize2fs_static \
setup_fs
+# F2FS Filesystem
+PRODUCT_PACKAGES += \
+ fsck.f2fs \
+ mkfs.f2fs
+
# Live Wallpapers
PRODUCT_PACKAGES += \
Galaxy4 \
diff --git a/rootdir/fstab.smdk4210 b/rootdir/fstab.smdk4210
index eb5a7dd..103b824 100755
--- a/rootdir/fstab.smdk4210
+++ b/rootdir/fstab.smdk4210
@@ -5,8 +5,10 @@
# data partition must be located at the bottom for supporting device encryption
/dev/block/mmcblk0p9 /system ext4 ro,noatime wait
+/dev/block/mmcblk0p7 /cache f2fs noatime,nosuid,nodev,background_gc=off,inline_xattr,active_logs=2 wait
/dev/block/mmcblk0p7 /cache ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check_spo
/dev/block/mmcblk0p1 /efs ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check_spo
+/dev/block/mmcblk0p10 /data f2fs noatime,nosuid,nodev,background_gc=off,inline_data,inline_xattr,active_logs=2 wait,encryptable=footer,length=-16384
/dev/block/mmcblk0p10 /data ext4 noatime,nosuid,nodev,noauto_da_alloc,journal_async_commit,errors=panic wait,check_spo,encryptable=footer,length=-16384
/dev/block/mmcblk0p12 /preload ext4 noatime,nosuid,nodev,journal_async_commit wait