From 4e375ad273f03fcb03a20aad60817d79c6850edb Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 26 Jun 2020 11:07:30 +0200 Subject: [PATCH] sync.2: Minor tweaks to Jeff Layton's patch Signed-off-by: Michael Kerrisk --- man2/sync.2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/man2/sync.2 b/man2/sync.2 index 61e994c5a..a6ba597a4 100644 --- a/man2/sync.2 +++ b/man2/sync.2 @@ -138,11 +138,16 @@ provide the same guarantees as fsync called on every file in the system or filesystem respectively. .PP In mainline kernel versions prior to 5.8, +.BR syncfs () +will fail only when passed a bad file descriptor +.RB ( EBADF ). +Since Linux 5.8, .\" commit 735e4ae5ba28c886d249ad04d3c8cc097dad6336 .BR syncfs () -will only fail when passed a bad file descriptor (EBADF). In 5.8 -and later kernels, it will also report an error if one or more inodes failed -to be written back since the last syncfs call. +will also report an error if one or more inodes failed +to be written back since the last +.BR syncfs () +call. .SH BUGS Before version 1.3.20 Linux did not wait for I/O to complete before returning.