tree: 0f432b5fb65e272a68db71ce1c82fdf5d044b202 [path history] [tgz]
  1. service/
  2. test/
  3. third_party/
  4. bcache.cc
  5. bcache.h
  6. BUILD.gn
  7. checkpoint.cc
  8. component_runner.cc
  9. component_runner.h
  10. data.cc
  11. dir.cc
  12. dir.h
  13. dir_entry_cache.cc
  14. dir_entry_cache.h
  15. dir_hash.cc
  16. f2fs.cc
  17. f2fs.h
  18. f2fs_internal.h
  19. f2fs_layout.h
  20. f2fs_lib.h
  21. f2fs_types.h
  22. file.cc
  23. file.h
  24. file_cache.cc
  25. file_cache.h
  26. fsck.cc
  27. fsck.h
  28. gc.cc
  29. gc.h
  30. inline.cc
  31. inspect.cc
  32. inspect.h
  33. mkfs.cc
  34. mkfs.h
  35. mount.cc
  36. mount.h
  37. namei.cc
  38. namestring.h
  39. node.cc
  40. node.h
  41. node_page.cc
  42. node_page.h
  43. README.md
  44. recovery.cc
  45. runner.cc
  46. runner.h
  47. segment.cc
  48. segment.h
  49. storage_buffer.cc
  50. storage_buffer.h
  51. super.cc
  52. sync_host.cc
  53. sync_host.h
  54. vmo_manager.cc
  55. vmo_manager.h
  56. vnode.cc
  57. vnode.h
  58. vnode_cache.cc
  59. vnode_cache.h
  60. writeback.cc
  61. writeback.h
src/storage/f2fs/README.md

What is F2FS?

F2FS is the most commonly used log-structured file system in Linux. It supports flash-friendly features such as adaptive logging, multi-head logging, fsync acceleration, and node address translation. For more information see: https://www.usenix.org/conference/fast15/technical-sessions/presentation/lee

Limitations

  • Features under development: mmap(shared), xattr, fallocate

How to test

Fuchsia filesystem tests

  • Build configuration for fs-tests (femu runs with f2fs data partition if you add --args=‘data_filesystem_format=“f2fs”’)

$ fx set core.x64 --with-base //src/storage/f2fs:tests

  • Run Fuchsia filesystem test suite with f2fs (slow-fs-tests can take more than 5 minutes.)

$ fx test f2fs-fs-tests f2fs-slow-fs-tests

  • Only run f2fs unit tests

$ fx test f2fs-unittest

Linux compatibility tests (EXPERIMENTAL)

  • Prerequisite

Linux kernel built with f2fs $ apt install f2fs-tools (on Debian/Ubuntu)

  • Build configuration for fs-tests

$ fx set core.x64 --with-base //src/storage/f2fs/test/compatibility:f2fs-compatibility-tests

  • Run Linux compatibility tests

$ fx test f2fs-compatibility-test