//! Small filesystem helpers shared by the housekeeping paths.
use Path;
/// Reads a small control file, refusing anything that is not a regular file or is larger than
/// `max_bytes`.
///
/// A marker, a pid, or a state blob is small by construction, and the path often sits inside a
/// directory voom does not own. A FIFO at that path would block the read forever and a huge file
/// would exhaust memory, so both are refused rather than trusted. `symlink_metadata` also means
/// a symlink standing in for the file is not followed.
pub