From f902db6b7d2f1c0729b347e84e103344644a1d21 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 26 Jun 2020 11:08:19 +0200 Subject: [PATCH] sync.2: Minor fixes Signed-off-by: Michael Kerrisk --- man2/sync.2 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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, -- 2.47.2