Skip to main content

punch_hole

Function punch_hole 

Source
pub(in pool::file) fn punch_hole(
    file: &File,
    offset: u64,
    len: usize,
) -> Result<()>
Available on Linux and Unix and crate feature pool only.
Expand description

Deallocates the blocks of [offset, offset + len), keeping the file size.