From dfd4d7db60d9b1abeeadcd203179803e6d9be7c6 Mon Sep 17 00:00:00 2001 From: Simon Shields Date: Sun, 14 Feb 2016 23:15:20 +1100 Subject: i9300: enable f2fs support Change-Id: I4405cbf6573e277ac7d2dbcb0014131d9cbbcc9d --- BoardConfig.mk | 1 + i9300.mk | 6 ++++++ rootdir/fstab.smdk4x12 | 2 ++ 3 files changed, 9 insertions(+) diff --git a/BoardConfig.mk b/BoardConfig.mk index 3130ef3..262c044 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -44,6 +44,7 @@ BOARD_RIL_CLASS := ../../../device/samsung/i9300/ril # Recovery TARGET_RECOVERY_FSTAB := device/samsung/i9300/rootdir/fstab.smdk4x12 +TARGET_USERIMAGES_USE_F2FS := true RECOVERY_FSTAB_VERSION := 2 # Selinux diff --git a/i9300.mk b/i9300.mk index c426f41..0b14d57 100644 --- a/i9300.mk +++ b/i9300.mk @@ -68,6 +68,12 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ camera.smdk4x12 +# f2fs +PRODUCT_PACKAGES += \ + fibmap.f2fs \ + fsck.f2fs \ + mkfs.f2fs + PRODUCT_COPY_FILES += \ packages/apps/Nfc/migrate_nfc.txt:system/etc/updatecmds/migrate_nfc.txt \ frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \ diff --git a/rootdir/fstab.smdk4x12 b/rootdir/fstab.smdk4x12 index 507d3ed..878876e 100644 --- a/rootdir/fstab.smdk4x12 +++ b/rootdir/fstab.smdk4x12 @@ -4,8 +4,10 @@ # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK /dev/block/mmcblk0p3 /efs ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait /dev/block/mmcblk0p9 /system ext4 ro,noatime wait +/dev/block/mmcblk0p8 /cache f2fs noatime,nosuid,nodev wait /dev/block/mmcblk0p8 /cache ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait /dev/block/mmcblk0p10 /preload ext4 noatime,nosuid,nodev,journal_async_commit wait +/dev/block/mmcblk0p12 /data f2fs noatime,nosuid,nodev wait,check,encryptable=footer /dev/block/mmcblk0p12 /data ext4 noatime,nosuid,nodev,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=footer # vold-managed volumes ("block device" is actually a sysfs devpath) -- cgit v1.1