Solve #9996. There should be some kind of warning if fsync is not supported. It is unclear how to implement that easily though since we don't have access to any logger here.
I encountered the problem as I could not run bitcoin on a network share on cifs. (I could previously, which is strange)
It seems that https://www.kernel.org/doc/Documentation/filesystems/cifs/CHANGES Version 1.57 seems to indicate that cifs should not fail, but just not guarantee that the server properly synched on the drive. This is not what I am experiencing.
Ping @laanwj