services/mounttable/btmtd: Add fsck command

The fsck command scans the node table for inconsistencies:
  - orphan nodes, i.e. parent doesn't exist, or parent doesn't have a
    reference to it
  - dangling references, i.e. a node has a reference to a node that
    doesn't exist.

Optionally, fsck will delete orphan rows and dangling references when
--fix is used, in which case, all the counters will also be
recalculated.

The --fix flag should not be used while other processes could be
mutating the nodes.

Change-Id: I7eeed693c2e7717285f4a632b09648971377c3d0
6 files changed
tree: 049d35e63546897e141ca185148b98bc19d156bd
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.