Expand description
Cross-boundary recovery fence shared by Windows and a managed WSL guest.
Windows share locks, Unix flock, and SQLite byte-range locks do not
interoperate reliably through DrvFS. Directory creation does: exactly one
side can create the same directory. The directory is intentionally durable
on process death; an abandoned owner blocks recovery instead of allowing a
possibly concurrent runner launch.
Structs§
- Drain
Request - Fence
Claim - A successfully created cross-boundary directory claim.
- Fence
Owner - Guest
Heartbeat - Guest
Recovery Config - Recovery
Status
Enums§
Constants§
- FENCE_
DIRECTORY - GUEST_
CONFIG_ FILE - HEARTBEAT_
FILE - OWNER_
FILE - RECOVERY_
STATUS_ FILE - REQUEST_
FILE - SCHEMA_
VERSION
Functions§
- clear_
recovery - recovery_
root - Windows-side directory shared with one exact distribution.
- retire_
windows_ recovery - Retire coordination written by a Windows recovery watchdog that no longer has authority to run. A guest launch claim is deliberately preserved. The fence and request may have different generations after a watchdog restart, so each Windows-owned generation is cleared independently.
- unmanaged_
runner_ service_ count - Persistent runner services are outside runner-manager’s attempt journal. Their presence blocks automated WSL termination even while they look idle.