sync.2: Minor tweaks to Jeff Layton's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-06-26 11:07:30 +02:00
parent 7b9af2eb80
commit 4e375ad273
1 changed files with 8 additions and 3 deletions

View File

@ -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.