Struct rustix_uring::opcode::Fallocate
source · pub struct Fallocate { /* private fields */ }
👎Deprecated: use Fallocate64 instead, which always takes a 64-bit length
Expand description
Preallocate or deallocate space to a file, equivalent to fallocate(2)
.
Implementations§
source§impl Fallocate
impl Fallocate
pub fn new(fd: impl UseFixed, len: u64) -> Self
sourcepub const CODE: IoringOp = _
pub const CODE: IoringOp = _
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.