[blobfs] Make next_node undefined at end of list.

The documentation in format.h and the public markdown said that
next_node should be zero in the case of the last node in the linked
list. The header file specified that node zero should be reserved,
making this a safe "null" node, however the documentation didn't include
this detail and we never enforced it anywhere in our code.

This change updates the documentation to match our implementation where
we determine the end of the list based on the extent count in the inode
and derive no meaning from the next_node at the end of a list. We
instead purposely populate next_node there as 0xFFFFFFFF only as an
implementation detail to trigger crashes with high probability when the
pointer is erroneously followed.

Bug: 53860
Change-Id: I6c697f5c0a5a4bb5be464a1a6c329dcc4cc6ab56
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/402887
Reviewed-by: Jared Bhatti <jaredb@google.com>
Reviewed-by: James Sullivan <jfsulliv@google.com>
Commit-Queue: Martin Lindsay <mlindsay@google.com>
Testability-Review: James Sullivan <jfsulliv@google.com>
7 files changed
tree: 5d42471edace859e9d56c7eeaada80ccce7ee089
  1. boards/
  2. build/
  3. bundles/
  4. cts/
  5. docs/
  6. examples/
  7. garnet/
  8. products/
  9. scripts/
  10. sdk/
  11. src/
  12. third_party/
  13. tools/
  14. zircon/
  15. .clang-format
  16. .clang-tidy
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. AUTHORS
  22. BUILD.gn
  23. CODE_OF_CONDUCT.md
  24. CONTRIBUTING.md
  25. LICENSE
  26. OWNERS
  27. PATENTS
  28. README.md
  29. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.