Function fsync
pub fn fsync<Fd>(fd: Fd) -> Result<(), Errno> ⓘwhere
Fd: AsFd,
Available on crate feature
dep_rustix
only.Expand description
fsync(fd)
—Ensures that file data and metadata is written to the
underlying storage device.
On iOS and macOS this isn’t sufficient to ensure that data has reached
persistent storage; use fcntl_fullfsync
to ensure that.