Trait base::FileAllocate

source ·
pub trait FileAllocate {
    // Required method
    fn allocate(&mut self, offset: u64, len: u64) -> Result<()>;
}
Expand description

A trait for allocating disk space in a sparse file. This is equivalent to fallocate() with no special flags.

Required Methods§

source

fn allocate(&mut self, offset: u64, len: u64) -> Result<()>

Allocate storage for the region of the file starting at offset and extending len bytes.

Implementations on Foreign Types§

source§

impl FileAllocate for File

source§

fn allocate(&mut self, offset: u64, len: u64) -> Result<()>

Implementors§