Function nix::fcntl::fallocate
pub fn fallocate(fd: RawFd, mode: FallocateFlags, offset: libc::off_t, len: libc::off_t) -> Result<()>
The portability is definied by:
#[cfg(any(target_os = "linux"))]
Documentation
Manipulates file space.
Allows the caller to directly manipulate the allocated disk space for the file referred to by fd.