On Thu, Mar 11, 2021 at 2:25 PM Tom Lane <t...@sss.pgh.pa.us> wrote:
> Trolling the net, I found a newer-looking version of the man page,
> and behold it says
>
>        In mainline kernel versions prior to 5.8, syncfs() will fail only
>        when passed a bad file descriptor (EBADF).  Since Linux 5.8,
>        syncfs() will also report an error if one or more inodes failed
>        to be written back since the last syncfs() call.
>
> So this means that in less-than-bleeding-edge kernels, syncfs can
> only be regarded as a dangerous toy.  If we expose an option to use
> it, there had better be large blinking warnings in the docs.

Agreed.  Perhaps we could also try to do something programmatic about that.

Its fsync() was also pretty rough for the first 28 years.


Reply via email to