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