Messages in this thread Patch in this message | | | From | milan.opensource@gmail ... | Subject | [PATCH] fsync.2: ERRORS: add EIO and ENOSPC | Date | Sat, 29 Aug 2020 12:43:06 +0530 |
| |
From: Milan Shah <milan.opensource@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
| |