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

  • Run the test

$ fx test f2fs-compatibility-test-pkg