Function fallocate

Source
pub fn fallocate<Fd: AsFd>(
    fd: Fd,
    mode: FallocateFlags,
    offset: off_t,
    len: off_t,
) -> Result<()>
Available on crate feature fs only.
Expand description

Manipulates file space.

Allows the caller to directly manipulate the allocated disk space for the file referred to by fd.