From: Michael Kerrisk Date: Fri, 26 Jun 2020 09:08:19 +0000 (+0200) Subject: sync.2: Minor fixes X-Git-Tag: man-pages-5.08~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f902db6b7d2f1c0729b347e84e103344644a1d21;p=thirdparty%2Fman-pages.git sync.2: Minor fixes Signed-off-by: Michael Kerrisk --- diff --git a/man2/sync.2 b/man2/sync.2 index a6ba597a42..201ebdf304 100644 --- a/man2/sync.2 +++ b/man2/sync.2 @@ -95,7 +95,7 @@ is not a valid file descriptor. .B EIO An error occurred during synchronization. This error may relate to data written to any file on the filesystem, or on -metadata related to the filesytem itself. +metadata related to the filesystem itself. .TP .B ENOSPC Disk space was exhausted while synchronizing. @@ -129,12 +129,15 @@ always returned 0. According to the standard specification (e.g., POSIX.1-2001), .BR sync () schedules the writes, but may return before the actual -writing is done. However Linux waits for I/O completions, +writing is done. +However Linux waits for I/O completions, and thus .BR sync () or .BR syncfs () -provide the same guarantees as fsync called on every file in +provide the same guarantees as +.BR fsync () +called on every file in the system or filesystem respectively. .PP In mainline kernel versions prior to 5.8,