Lines Matching defs:offset
62 /// Also sets the file offset to the beginning of the file.
576 .map(|offset| offset as *mut libc::loff_t)
579 .map(|offset| offset as *mut libc::loff_t)
606 .map(|offset| offset as *mut libc::loff_t)
609 .map(|offset| offset as *mut libc::loff_t)
649 /// offset + len can be greater than file size.
653 /// Must be ORed with FALLOC_FL_KEEP_SIZE. Byte range starts at offset and continues for len bytes.
657 /// Byte range to collapse starts at offset and continues for len bytes.
661 /// Byte range starts at offset and continues for len bytes.
665 /// Does not overwrite existing data. Hole starts at offset and continues for len bytes.
686 offset: libc::off_t,
689 let res = unsafe { libc::fallocate(fd, mode.bits(), offset, len) };
694 /// the file offset, and the second is the length of the region.
712 pub fn offset(&self) -> libc::off_t {
727 /// - `range.0` - File offset at which to begin deallocation
774 /// - `offset` - File offset at which to begin deallocation
800 pub fn fspacectl_all(fd: RawFd, offset: libc::off_t, len: libc::off_t)
803 let mut rqsr = libc::spacectl_range{r_offset: offset, r_len: len};
850 offset: libc::off_t,
854 let res = unsafe { libc::posix_fadvise(fd, offset, len, advice as libc::c_int) };
874 pub fn posix_fallocate(fd: RawFd, offset: libc::off_t, len: libc::off_t) -> Result<()> {
875 let res = unsafe { libc::posix_fallocate(fd, offset, len) };