pub fn fdatasync<Fd: AsFd>(fd: Fd) -> Result<()>
fdatasync(fd)—Ensures that file data is written to the underlying storage device.
fdatasync(fd)