F2FS File-System Gets A Lost & Found, Performance Enhancements

Written by Michael Larabel in Linux Storage on 5 April 2018 at 06:12 AM EDT. 6 Comments
LINUX STORAGE
The explicitly flash-focused F2FS file-system is the latest noteworthy pull request on its way to the mainline Linux 4.17 kernel.

F2FS maintainer Jaegeuk Kim says most of this past round of development was focused on performance tuning and critical bug fixes for low-end devices. But there's also some new features and we surely love any and all performance work.

One of the new features is a "lost_found" feature whereby it's a lost and found for placing files with no parent. The F2FS MKFS utility can now create a default lost+found folder in the root directory where these dangling files will be placed whenever found by the F2FS fsck process. When the lost and found feature is enabled, F2FS cannot support native encryption of the root directory.

Other work for F2FS in Linux 4.17 includes Nowait AIO support, better tuning for low-end/small devices, enabling readdir_ra by default, a new fsync_mode to determine whether POSIX behavior or not, and a variety of bug fixes. Among the low-end work were memory-related issues being resolved as well as some race conditions and corner cases being ironed out.

The new fsync_mode mount option allows values of posix or strict for determining the fsync behavior. The POSIX mode is enabled by default that uses a light fsync with POSIX semantics while the strict mode forces heavier file synchronization that behaves like EXT4/Btrfs/XFS. Using this strict fsync mode will lead to a performance drop.

The list of F2FS changes for Linux 4.17 can be found via this PR.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week