Skip to main content

sync_file_range

Function sync_file_range 

Source
pub fn sync_file_range(
    fd: BorrowedFd<'_>,
    offset: i64,
    nbytes: u64,
    flags: u32,
) -> Result<(), Errno>
Expand description

Synchronise une plage d’un fichier sur le disque.

Wrappeur de sync_file_range(2) (Linux 2.6.17+).

§Errors

  • EBADF : FD invalide.
  • EINVAL : paramètres invalides.