tree: e8f4784e3985c9e266866ba6a5368c210ee6f907 [path history] [tgz]
  1. BUILD.gn
  2. README.md
  3. allocator/
  4. blob.cc
  5. blob.h
  6. blob_cache.cc
  7. blob_cache.h
  8. blob_corruption_notifier.cc
  9. blob_corruption_notifier.h
  10. blob_data_producer.cc
  11. blob_data_producer.h
  12. blob_layout.cc
  13. blob_layout.h
  14. blob_loader.cc
  15. blob_loader.h
  16. blob_verifier.cc
  17. blob_verifier.h
  18. blobfs.cc
  19. blobfs.h
  20. blobfs_checker.cc
  21. blobfs_checker.h
  22. blobfs_inspector.h
  23. cache_node.cc
  24. cache_node.h
  25. cache_policy.h
  26. common.cc
  27. common.h
  28. compression/
  29. compression_settings.cc
  30. compression_settings.h
  31. directory.cc
  32. directory.h
  33. format.cc
  34. format.h
  35. format_assertions.h
  36. fsck.cc
  37. fsck.h
  38. fsck_host.cc
  39. fsck_host.h
  40. health_check_service.cc
  41. health_check_service.h
  42. host.cc
  43. host.h
  44. inspector/
  45. iterator/
  46. meta/
  47. metrics.cc
  48. metrics.h
  49. mkfs.h
  50. mount.cc
  51. mount.h
  52. node_finder.h
  53. pager/
  54. query.cc
  55. query.h
  56. read_metrics.cc
  57. read_metrics.h
  58. runner.cc
  59. runner.h
  60. test/
  61. transaction.cc
  62. transaction.h
  63. transaction_manager.h
  64. verification_metrics.cc
  65. verification_metrics.h
  66. vfs_types.h
src/storage/blobfs/README.md

Blobfs: A content-addressable filesystem for Fuchsia

Blobfs is a filesystem for Fuchsia that stores all files according to their hashes. This is used for all binaries and other program-related data for Fuchsia. It is not used for storing dynamic data and it has no hierarchy (minfs handles this case).

The structure of blobfs is described in the main documentation. This page documents some internal details.

Version notes

Blobfs follows the storage versioning scheme. However, there were some versions before this was adopted that do not follow this scheme.

In major version 8, blobfs used “padded” Merkle trees. In this format, the Merkle tree was padded out to the nearest block boundary and immediately preceeded the blob data on the block device.

In major version 9, blobfs switched to “compact” Merkle trees where the Merkle tree data immediately follows the blob data and neither the offset nor the size is block-padded. This saves space. This change was made when the minor version was treated as a monotonically increasing “revision” and was not reset. As of this writing the format is controlled by a build flag so some builds will have major version 8, while others will have major version 9.

Across versions 8 and 9 are the following minor versions:

  • 8.1, 9.1: The initial minor version.
  • 8.2, 9.2: Introduced a backup superblock when running under FVM.
  • 8.3, 9.3: Removed support for ZSTD seekable compression.