Searched refs:FlockOperation (Results 1 – 3 of 3) sorted by relevance
202 pub enum FlockOperation { enum211 pub fn flock(file: &dyn AsRawFd, op: FlockOperation, nonblocking: bool) -> Result<()> { in flock() argument213 FlockOperation::LockShared => libc::LOCK_SH, in flock()214 FlockOperation::LockExclusive => libc::LOCK_EX, in flock()215 FlockOperation::Unlock => libc::LOCK_UN, in flock()
12 use base::{flock, FlockOperation};63 if let Err(_) = flock(&raw_image, FlockOperation::LockExclusive, true) { in expand_disk_image()
507 FlockOperation::LockShared in create_block_device()509 FlockOperation::LockExclusive in create_block_device()