tree: 58524c43441d33af69e0108ed29cb33002f302bc [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. memory_watcher.cc
  34. memory_watcher.h
  35. mkfs.cc
  36. mkfs.h
  37. mount.cc
  38. mount.h
  39. namei.cc
  40. namestring.h
  41. node.cc
  42. node.h
  43. node_page.cc
  44. node_page.h
  45. reader.cc
  46. reader.h
  47. README.md
  48. recovery.cc
  49. segment.cc
  50. segment.h
  51. storage_buffer.cc
  52. storage_buffer.h
  53. super.cc
  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: xattr, fallocate

How to test

Fuchsia filesystem tests

  • Build configuration for fs-tests (Set the product as “core_with_f2fs.x64” if you want to format /data to f2fs)

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

  • Run Fuchsia filesystem test suite with f2fs

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

  • Run only unit tests

$ fx test f2fs-unittest

Debian guest based Linux compatibility tests

  • Prerequisite

Generate Linux image

$ ./src/virtualization/packages/debian_guest/build-image.sh
prebuilt/virtualization/packages/debian_guest/images/x64 x64

  • Build configuration

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

  • Run the test

$ fx test f2fs-compatibility-test