Skip to main content

Module write_intent

Module write_intent 

Source
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§

IntentGuard
Keeps concurrent reconciliation from resolving pending intent or marking the watcher healthy while a filesystem mutation is still running.

Enums§

WriteIntent
Directory operations invalidate descendants, not just one indexed path.
WritePhase
Notifications bracket an AFT mutation: Before precedes any filesystem write; After runs when the guard drops, after formatting or rollback even on error.

Traits§

WriteIntentListener
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.