Switch the cache partition to F2FS
Updated by Denis 'GNUtoo' Carikli 17 days ago
The cache partition filesystem is currently ext4.
Not only f2fs was used by Replicant 6, but it's also better adapted to caches as it's a log-structured filesystem.
To do that we need to test first that everything works fine with ext4.Then we need to switch the cache to f2fs. for all supported devices (at the time of writing, the GT-I9300 and GT-I9305), we need to:
- Switch the fstab cache entry to f2fs
- Switch BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE to f2fs in the BoardConfig
In addition we need to add F2FS support to the kernel (kernel_replicant_linux) and find out which options are needed, and see if it works well with selinux as well.