Skip to main content

Module disk

Module disk 

Source
Expand description

Filesystem free-space, via df — informational only (never blocks a backup).

Structs§

DiskUsage
Free-space snapshot for the filesystem holding a path.

Functions§

is_low
Is the filesystem low? Low = proportionally AND absolutely low, so a huge disk stays quiet until it is genuinely almost empty while a small one still trips. See the plan’s Global Constraints.
usage
Free space for the filesystem containing path, via df -Pk (POSIX, 1024-byte blocks). No new dependency — same shell-out pattern as git.