F2FS/zh-cn

F2FS (Flash-Friendly File System) 是文件系统. ]] 它可在 Linux 内核 3.8.x 以及更高版本使用. 当在 eMMC, SSD, NVMe, SDCard, 或者基于闪存的 USB 设备安装 Gentoo时，此文件系统是一个好的选择.

内核
When enabling support to the filesystem in the Linux kernel, it is wise to enable at least the first four options in order to support extended filesystem attributes:


 * CONFIG_F2FS_FS
 * F2FS_FS_XATTR
 * CONFIG_F2FS_FS_POSIX_ACL
 * CONFIG_F2FS_FS_SECURITY

The fifth option in the list will enable F2FS's filesystem consistency checking. The checking will occur during run time and will decrease the filesystem's performance. This option provides an advantage when consistency is more important than speed.

The sixth, and final option, is encryption. If encryption is in the use case, then this option should be enabled as well. It does not hurt to enable this option even if encryption will not be used right away.

Emerge
Install the userspace tools for the F2FS filesystem:

创建
After emerging the userspace tools, create a filesystem by running the command followed by the appropriate device and partition number:

Troubleshooting
When using f2fs as rootfs fails on boot. Solutions are either disabling in  (setting the last number to 0) or enabling the force-flag for  in. See.

外部资源

 * F2FS (elinux.org)