From e9efa05d9ad3a2b6951f2732645ec463f8dcb81b Mon Sep 17 00:00:00 2001 From: Woomymy Date: Fri, 31 Mar 2023 18:51:47 +0200 Subject: [PATCH] LG8n: Enable F2FS Compression Signed-off-by: Woomymy Signed-off-by: Shirayuki39 --- BoardConfig.mk | 3 +++ rootdir/etc/fstab.mt6789 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 19928a2..4ca3e45 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -62,6 +62,9 @@ BOARD_PREBUILT_DTBIMAGE_DIR := $(KERNEL_PATH)/dtb TARGET_SCREEN_DENSITY := 396 TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS := 0x2000U +# Enable F2FS Compression +PRODUCT_FS_COMPRESSION := 1 + # Kernel TARGET_NO_KERNEL_OVERRIDE := true LOCAL_KERNEL := $(KERNEL_PATH)/Image.gz diff --git a/rootdir/etc/fstab.mt6789 b/rootdir/etc/fstab.mt6789 index 904bbce..b798909 100644 --- a/rootdir/etc/fstab.mt6789 +++ b/rootdir/etc/fstab.mt6789 @@ -37,7 +37,7 @@ odm_dlkm /odm_dlkm ext4 ro wait,slotselect,avb,logical,first_stage_mount /dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,check,formattable,first_stage_mount -/dev/block/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,noflush_merge,fsync_mode=nobarrier,reserve_root=134217,resgid=1065,inlinecrypt wait,check,formattable,quota,latemount,resize,reservedsize=128m,checkpoint=fs,fileencryption=aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized,keydirectory=/metadata/vold/metadata_encryption,fsverity, +/dev/block/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,noflush_merge,fsync_mode=nobarrier,reserve_root=134217,resgid=1065,inlinecrypt wait,check,formattable,quota,latemount,resize,reservedsize=128m,checkpoint=fs,fileencryption=aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized,keydirectory=/metadata/vold/metadata_encryption,fscompress,fsverity,