e01.org

F2FS

F2FS (Flash-Friendly File System) is a flash file system initially developed by Samsung Electronics for the Linux kernel. The motive for F2FS was to build a file system that, from the start, takes into account the characteristics of NAND flash memory-based storage devices (such as solid-state disks, eMMC, and SD cards), which are widely used in computer systems ranging from mobile devices to servers. F2FS was designed on a basis of a log-structured file system approach, which is adapted to newer forms of storage. Jaegeuk Kim, the principal F2FS author, has stated that it remedies some known issues of the older log-structured file systems, such as the snowball effect of wandering trees and high cleaning overhead. In addition, since a NAND-based storage device shows different characteristics according to its internal geometry or flash memory management scheme (such as the Flash Translation Layer or FTL), it supports various parameters not only for configuring on-disk layout, but also...

F2FS (Flash-Friendly File System) is a flash file system initially developed by Samsung Electronics for the Linux kernel. The motive for F2FS was to build a file system that, from the start, takes into account the characteristics of NAND flash memory-based storage devices (such as solid-state disks, eMMC, and SD cards), which are widely used in computer systems ranging from mobile devices to servers. F2FS was designed on a basis of a log-structured file system approach, which is adapted to newer forms of storage. Jaegeuk Kim, the principal F2FS author, has stated that it remedies some known issues of the older log-structured file systems, such as the snowball effect of wandering trees and high cleaning overhead. In addition, since a NAND-based storage device shows different characteristics according to its internal geometry or flash memory management scheme (such as the Flash Translation Layer or FTL), it supports various parameters not only for configuring on-disk layout, but also for selecting allocation and cleaning algorithms. 4 KiB × (923 + 2×1018 + 2×1018 2 + 1018 3 ) = 4,228,213,756 KiB = 4,129,114.996 MiB = 4,032.338863 GiB = 3.937830921 TiB Note that all the node blocks are mapped by the NAT, which means that the location of each node is translated by the NAT. To mitigate the wandering tree problem, F2FS is able to cut off the propagation of node updates caused by leaf data writes. Dentry Block (4 K) = bitmap (27 bytes) + reserved (3 bytes) + dentries (11 * 214 bytes) + file name (8 * 214 bytes) F2FS implements multi-level hash tables for the directory structure. Each level has a hash table with a dedicated number of hash buckets as shown below. Note that "A(2B)" means a bucket includes 2 data blocks. Term A indicates bucket B indicates block N indicates MAX_DIR_HASH_DEPTH level #0 A(2B) level #1 A(2B) - A(2B) level #2 A(2B) - A(2B) - A(2B) - A(2B) ... level #N/2 A(2B) - A(2B) - A(2B) - A(2B) - A(2B) - ... - A(2B) ... level #N A(4B) - A(4B) - A(4B) - A(4B) - A(4B) - ... - A(4B) When F2FS finds a file name in a directory, first a hash value of the file name is calculated. Then, F2FS scans the hash table in level #0 to find the dentry consisting of the file name and its inode number. If not found, F2FS scans the next hash table in level #1. In this way, F2FS scans hash tables in each level incrementally from 1 to N. In each level F2FS needs to scan only one bucket determined by the following equation, which shows O(log(# of files)) complexity. bucket number to scan in level #n = (hash value) % (# of buckets in level #n) In the case of file creation, F2FS finds empty consecutive slots that cover the file name. F2FS searches the empty slots in the hash tables of whole levels from 1 to N in the same way as the lookup operation.

References

  1. ^ Michael Larabel (2012-12-22). "F2FS File-System Merged Into Linux 3.8 Kernel" . Phoronix . Retrieved 2016-05-25 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1464130800.0
  2. ^ Jaegeuk Kim (2013-08-26). "f2fs: add flags for inline xattrs" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  3. ^ Huajun Li (2013-11-10). "f2fs: Enable f2fs support inline data" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  4. ^ Chao Yu (2014-09-24). "f2fs: support inline dir" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  5. ^ Jaegeuk Kim (2014-09-20). "f2fs-tools: release 1.4.0" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  6. ^ Jaegeuk Kim (2014-09-25). "f2fs: support atomic_write feature for database" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  7. ^ Jaegeuk Kim (2015-06-24). "f2fs updates for v4.2" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  8. ^ Jaegeuk Kim (2016-04-25). "resize.f2fs: support to expand partition size" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  9. ^ Chao Yu (2015-12-17). "f2fs: support data flush in background" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  10. ^ Chao Yu (2015-01-25). "f2fs: enable rb-tree extent cache" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  11. ^ Ho, Joshua; Smith, Ryan. "The Google Nexus 9 Review" . www.anandtech.com . Archived from the original on February 6, 2015 . Retrieved 2019-05-10 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1557442800.0
  12. ^ Zhiguo Niu (2024-04-26). "f2fs: fix some ambiguous comments" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  13. ^ Frumusanu, Andrei (2018-11-02). "The Google Pixel 3 Review" . www.anandtech.com . Archived from the original on May 11, 2019 . Retrieved 2019-05-11 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1557529200.0
  14. ^ Larabel, Michael (2018-12-28). "F2FS Gets More Fixes In Linux 4.21 With The File-System Now Supported By Google's Pixel" . www.phoronix.com . Retrieved 2019-05-10 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1557442800.0
  15. ^ Humrick, Matt (2017-05-12). "Huawei P10 and P10 Plus" . www.anandtech.com . Archived from the original on May 15, 2017 . Retrieved 2019-05-11 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1557529200.0
  16. ^ Chester, Brandon. "The OnePlus 3T Review" . www.anandtech.com . Archived from the original on November 30, 2016 . Retrieved 2019-05-10 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1557442800.0
  17. ^ Matei, Mihai (2019-08-12). "Galaxy Note 10 uses F2FS, not EXT4 file system: What's the difference?" . SamMobile . Retrieved 2026-02-15 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1771110000.0
  18. ^ "ZTE Axon 10 Pro Officially Uncovered: The First To Use F2FS" . Gizchina.com . 2019-05-06 . Retrieved 2019-05-10 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1557442800.0
  19. ^ "Pull new F2FS filesystem from Jaegeuk Kim commit" . git.kernel.org . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  20. ^ "Arch Linux Wiki" . wiki.archlinux.org . Retrieved 27 June 2021 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  21. ^ "Debian Wiki" . wiki.debian.org . Retrieved 27 June 2021 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  22. ^ "Gentoo Wiki" . wiki.gentoo.org . Retrieved 27 June 2021 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  23. ^ Daniel Rosenberg (2023-12-04). "f2fs: Restrict max filesize for 16K f2fs" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  24. ^ Jaegeuk Kim (2013-03-18). "f2fs: align f2fs maximum name length to linux based filesystem" . GitHub . Retrieved 2023-05-16 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1684191600.0
  25. ^ Jaegeuk Kim (2014-09-22). "f2fs: introduce FITRIM in f2fs_ioctl" . Linux kernel mailing list (Mailing list) . Retrieved 2025-01-02 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1735772400.0
  26. ^ Chao Yu (2015-10-26). "f2fs: support file defragment" . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1795215600.0
  27. ^ a b Jaegeuk Kim (2012-10-05). "f2fs: introduce flash-friendly file system" . Retrieved 2016-05-25 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1464130800.0
  28. ^ a b Michael Larabel (2019-12-23). "F2FS Data Compression Using LZO/LZ4 + Selective File Extension Handling To Land In 2020" . Phoronix . Retrieved 2020-04-07 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1586214000.0
  29. ^ a b Michael Larabel (2020-04-07). "F2FS Introduces Zstd Compression Support With The Linux 5.7 Kernel" . Phoronix . Retrieved 2020-04-07 . Wikipedia revision 1374851533, retrieved 2026-11-21 · 1586214000.0
  30. Michael Larabel. F2FS File-System Merged Into Linux 3.8 Kernel . Phoronix . 2012-12-22. · 1789340400.0
  31. Jaegeuk Kim. f2fs: add flags for inline xattrs . 2013-08-26. · 1789340400.0
  32. Huajun Li. f2fs: Enable f2fs support inline data . 2013-11-10. · 1789340400.0
  33. Chao Yu. f2fs: support inline dir . 2014-09-24. · 1789340400.0
  34. Jaegeuk Kim. f2fs-tools: release 1.4.0 . 2014-09-20. · 1789340400.0
  35. Jaegeuk Kim. f2fs: support atomic_write feature for database . 2014-09-25. · 1789340400.0
  36. Jaegeuk Kim. f2fs updates for v4.2 . 2015-06-24. · 1789340400.0
  37. Jaegeuk Kim. resize.f2fs: support to expand partition size . 2016-04-25. · 1789340400.0
  38. Chao Yu. f2fs: support data flush in background . 2015-12-17. · 1789340400.0
  39. Chao Yu. f2fs: enable rb-tree extent cache . 2015-01-25. · 1789340400.0
  40. or zstd (with Linux 5.7) == Design == Refimprove section|date=May 2016 === On-disk layout === F2FS divides the whole volume into a number of segments, each of which is fixed at 2 MB. A sectio . · 1789340400.0
  41. f2fs: Restrict max filesize for 16K f2fs . · 1789340400.0
  42. anandtech.com . · 1789340400.0
  43. web.archive.org . (archived copy) · 1789340400.0
  44. F2FS Gets More Fixes In Linux 4.21 With The File-System Now Supported By Google's Pixel . · 1789340400.0
  45. Cite web |url=https://www.anandtech.com/show/11292/performance-battery-life-report-huawei-p10 |archive-url=https://web.archive.org/web/20170515160107/http://www.anandtech.com/show/11292/performance- . · 1789340400.0
  46. Cite web |url=https://www.anandtech.com/show/10836/the-oneplus-3t-mini-review/4 |archive-url=https://web.archive.org/web/20161130082359/http://www.anandtech.com/show/10836/the-oneplus-3t-mini-review . · 1789340400.0
  47. Galaxy Note 10 uses F2FS, not EXT4 file system: What's the difference? . · 1789340400.0
  48. ZTE Axon 10 Pro Officially Uncovered: The First To Use F2FS . · 1789340400.0
  49. Pull new F2FS filesystem from Jaegeuk Kim commit . g . · 1789340400.0
  50. Arch Linux Wiki . wiki.archlinux.org . retrieved 27 June 2021 · 1789340400.0
  51. Debian Wiki . wiki.debian.org . retrieved 27 June 2021 · 1789340400.0
  52. Jaegeuk Kim. f2fs: align f2fs maximum name length to linux based filesystem . · 1789340400.0
  53. Gentoo Wiki . wiki.gentoo.org . retrieved 27 June 2021 · 1789340400.0
  54. Zhigu. f2fs: fix some ambiguous comments . · 1789340400.0
  55. F2FS Data Compression Using LZO/LZ4 + Selective File Extension Handling To Land In 2020 . · 1789340400.0
  56. Mich. F2FS Introduces Zstd Compression Support With The Linux 5.7 Kernel . 2020-04-07. · 1789340400.0
  57. Jaegeuk Kim. f2fs: introduce flash-friendly file system . 2012-10-05. retrieved 2016-05-25 · 1464130800.0
  58. of the older log-structured file systems, such as the snowball effect of wandering trees and high cleaning overhead. In addition, since a NAND-based storage device shows different characterist . · 1789340400.0
  59. Chao Yu. f2fs: support file defragment . 2015-10-26. · 1789340400.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"F2FS". 1789381952. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1374851533

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·