lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 29 Aug 2020 12:43:06 +0530 From: milan.opensource@...il.com To: mtk.manpages@...il.com Cc: linux-kernel@...r.kernel.org, Milan Shah <milan.opensource@...il.com> Subject: [PATCH] fsync.2: ERRORS: add EIO and ENOSPC From: Milan Shah <milan.opensource@...il.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
Powered by blists - more mailing lists