Method lrs::file::File::reserve

Reserves space for this file in the filesystem.

Syntax

impl File {
    fn reserve<R>(&self, range: R) -> Result<(), Errno>
        where R: BoundedRange<u64>,
}

Arguments

NameDescription
range

The range that should be available for writing.

Remarks

Further writes in the specified range are guaranteed not to fail because of a lack of storage capacity.

See also