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