From: Michael Kerrisk Date: Fri, 26 Jun 2020 09:07:30 +0000 (+0200) Subject: sync.2: Minor tweaks to Jeff Layton's patch X-Git-Tag: man-pages-5.08~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e375ad273f03fcb03a20aad60817d79c6850edb;p=thirdparty%2Fman-pages.git sync.2: Minor tweaks to Jeff Layton's patch Signed-off-by: Michael Kerrisk --- diff --git a/man2/sync.2 b/man2/sync.2 index 61e994c5af..a6ba597a42 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.