GNU bug report logs -
#19995
doc: Adds a bug section to sync.1 page to draw attention to unexpected behavior allowed by POSIX.
Previous Next
Reported by: saulery <at> free.fr
Date: Wed, 4 Mar 2015 00:40:02 UTC
Severity: wishlist
Tags: patch
Merged with 19996
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Stéphane Aulery <saulery <at> free.fr>
Almost identical copy of sync.2.
Debian bug #507085 reported by jidanni <at> jidanni.org
Signed-off-by: Stéphane Aulery <saulery <at> free.fr>
---
man/sync.x | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/man/sync.x b/man/sync.x
index 79fee22..5b85bba 100644
--- a/man/sync.x
+++ b/man/sync.x
@@ -2,5 +2,10 @@
sync \- Synchronize cached writes to persistent storage
[DESCRIPTION]
.\" Add any additional description here
+[BUGS]
+According to the standard specification (e.g., POSIX.1-2001), sync()
+syscall schedules the writes, but may return before the actual writing is
+done. However, since version 1.3.20 Linux does actually wait. (This still
+does not guarantee data integrity: modern disks have large caches.)
[SEE ALSO]
fdatasync(2), fsync(2), sync(2), syncfs(2)
--
2.1.4
This bug report was last modified 10 years and 139 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.