Expand description
Synchronous write intent around every AFT filesystem mutation.
An intent is deliberately not cleared when a command fails: formatting, partial writes and rollback can all change bytes before the error returns. Only whoever indexes the paths may resolve it, by reading their bytes again.
Structs§
- Intent
Guard - Keeps concurrent reconciliation from resolving pending intent or marking the watcher healthy while a filesystem mutation is still running.
Enums§
- Write
Intent - Directory operations invalidate descendants, not just one indexed path.
- Write
Phase - Notifications bracket an AFT mutation: Before precedes any filesystem write; After runs when the guard drops, after formatting or rollback even on error.
Traits§
- Write
Intent Listener - The runtime uses this to invalidate trigram, semantic and callgraph data under its shared revision/snapshot lock. Listeners filter paths to their owning root. Callbacks must not write files, which would recurse into intent.
Functions§
- record_
paths - Called before the first possible filesystem mutation, not after success. Directory intents invalidate the whole watcher epoch: their descendants (including newly created names) cannot safely be enumerated from an index.
- register_
listener - Register a weak listener reference, so dropping the driver stops callbacks.