Home
last modified time | relevance | path

Searched refs:FallocateMode (Results 1 – 3 of 3) sorted by relevance

/external/crosvm/sys_util/src/
Dlib.rs233 pub enum FallocateMode { enum
242 mode: FallocateMode, in fallocate() argument
260 FallocateMode::PunchHole => libc::FALLOC_FL_PUNCH_HOLE, in fallocate()
261 FallocateMode::ZeroRange => libc::FALLOC_FL_ZERO_RANGE, in fallocate()
262 FallocateMode::Allocate => 0, in fallocate()
Dwrite_zeroes.rs11 use crate::FallocateMode;
21 fallocate(self, FallocateMode::PunchHole, true, offset, length as u64) in punch_hole()
91 if fallocate(self, FallocateMode::ZeroRange, true, offset, length as u64).is_ok() { in write_zeroes_at()
Dfile_traits.rs11 use crate::{fallocate, FallocateMode};
68 fallocate(self, FallocateMode::Allocate, true, offset, len) in allocate()