From: Milan Shah <milan.opensou...@gmail.com> This Fix addresses Bug 194757. Ref: https://bugzilla.kernel.org/show_bug.cgi?id=194757 --- man2/fsync.2 | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/man2/fsync.2 b/man2/fsync.2 index 96401cd..f38b3e4 100644 --- a/man2/fsync.2 +++ b/man2/fsync.2 @@ -186,6 +186,19 @@ In these cases disk caches need to be disabled using or .BR sdparm (8) to guarantee safe operation. + +When +.BR fsync () +or +.BR fdatasync () +returns +.B EIO +or +.B ENOSPC +any error flags on pages in the file mapping are cleared, so subsequent synchronisation attempts +will return without error. It is +.I not +safe to retry synchronisation and assume that a non-error return means prior writes are now on disk. .SH SEE ALSO .BR sync (1), .BR bdflush (2), -- 2.7.4