Expand description
Disk space management and guardrails for preventing disk exhaustion.
This module provides disk space tracking and enforcement across different platforms, with configurable minimum free space limits and pre-write checks.
Structs§
- Disk
Space Exhausted - Disk space limit exceeded error.
- Disk
Space Guard - Thread-safe disk space guard for monitoring and enforcing disk limits.
- Disk
Space Guard Config - Disk space guard configuration.
- Disk
Stats - Disk space usage statistics.
Enums§
- Output
Format - Output format for size estimation.
Functions§
- check_
sufficient_ disk_ space - Check if there’s enough disk space for planned output.
- estimate_
output_ size_ mb - Estimate output size in MB for planned generation.
- get_
available_ space_ mb - Get available disk space in MB (Linux/macOS implementation using statvfs).
- get_
disk_ space - Get total and available disk space in bytes (Linux/macOS).