mirror of
https://github.com/sol1/rustguac.git
synced 2026-09-11 13:50:14 +00:00
d8cbf6d35c
Disk-based rotation deleted the oldest .guac unconditionally until statvfs usage fell below max_disk_percent. Recordings for live sessions are held open by the recording tee, so unlinking one frees no space and statvfs never drops: the loop then deleted every recording in the directory in a single pass while the disk stayed full (a production host lost all recordings this way). rotate() now excludes live-session recordings (SessionManager:: active_recording_paths) and stops if a deletion frees no space. Adds regression tests.