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