Skip to main content

free_bytes

Function free_bytes 

Source
pub fn free_bytes(path: &Path) -> Option<u64>
Expand description

Free bytes available to unprivileged writes on path’s filesystem.

f_bavail (available to non-root), not f_bfree: the reserved root blocks are headroom the store cannot actually use, and counting them reports a disk as fine right up until every write fails.