From 86f63903f955c99228bdfcde2a27eb5dfd43c567 Mon Sep 17 00:00:00 2001 From: Arnab Chaudhuri Date: Sun, 14 Feb 2016 20:38:55 +0530 Subject: galaxys2-common: Add f2fs filesystem support Change-Id: I593fe2057a057e7fcf73a6158df7646ad1a9bceb --- BoardCommonConfig.mk | 1 + common.mk | 5 +++++ rootdir/fstab.smdk4210 | 2 ++ 3 files changed, 8 insertions(+) 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 -- cgit v1.1