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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19995 in the body.
You can then email your comments to 19995 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#19995
; Package
coreutils
.
(Wed, 04 Mar 2015 00:40:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
saulery <at> free.fr
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 04 Mar 2015 00:40:03 GMT)
Full text and
rfc822 format available.
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
Merged 19995 19996.
Request was from
Stéphane Aulery <saulery <at> free.fr>
to
control <at> debbugs.gnu.org
.
(Thu, 05 Mar 2015 11:32:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#19995
; Package
coreutils
.
(Thu, 05 Mar 2015 11:53:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 19995 <at> debbugs.gnu.org (full text, mbox):
Hello,
A Debian user reported [1] that sync.1 man page is incomplete unlike sync.2
There is no mention of the unexpected behavior allowed by POSIX, which can
cause data loss.
This patch provides a possible correction.
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507085
Regards,
--
Stéphane Aulery
Severity set to 'wishlist' from 'normal'
Request was from
Stéphane Aulery <saulery <at> free.fr>
to
control <at> debbugs.gnu.org
.
(Thu, 05 Mar 2015 11:57:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Pádraig Brady <P <at> draigBrady.com>
:
You have taken responsibility.
(Thu, 05 Mar 2015 12:24:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
saulery <at> free.fr
:
bug acknowledged by developer.
(Thu, 05 Mar 2015 12:24:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 19995-done <at> debbugs.gnu.org (full text, mbox):
On 05/03/15 11:45, Stéphane Aulery wrote:
> Hello,
>
> A Debian user reported [1] that sync.1 man page is incomplete unlike sync.2
> There is no mention of the unexpected behavior allowed by POSIX, which can
> cause data loss.
>
> This patch provides a possible correction.
>
> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507085
How about I apply this in your name instead?
diff --git a/man/sync.x b/man/sync.x
index 79fee22..18ee3fc 100644
--- a/man/sync.x
+++ b/man/sync.x
@@ -2,5 +2,8 @@
sync \- Synchronize cached writes to persistent storage
[DESCRIPTION]
.\" Add any additional description here
+[BUGS]
+Persistence guarantees vary per system.
+See the system calls below for more details.
[SEE ALSO]
fdatasync(2), fsync(2), sync(2), syncfs(2)
Reply sent
to
Pádraig Brady <P <at> draigBrady.com>
:
You have taken responsibility.
(Thu, 05 Mar 2015 12:24:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
saulery <at> free.fr
:
bug acknowledged by developer.
(Thu, 05 Mar 2015 12:24:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#19995
; Package
coreutils
.
(Thu, 05 Mar 2015 13:27:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 19995-done <at> debbugs.gnu.org (full text, mbox):
Hello Brady,
Le jeudi 05 mars 2015 à 12:23:44, Pádraig Brady a écrit :
>
> How about I apply this in your name instead?
>
> diff --git a/man/sync.x b/man/sync.x
> index 79fee22..18ee3fc 100644
> --- a/man/sync.x
> +++ b/man/sync.x
> @@ -2,5 +2,8 @@
> sync \- Synchronize cached writes to persistent storage
> [DESCRIPTION]
> .\" Add any additional description here
> +[BUGS]
> +Persistence guarantees vary per system.
> +See the system calls below for more details.
> [SEE ALSO]
> fdatasync(2), fsync(2), sync(2), syncfs(2)
It's good for me. Thank you.
Regards,
--
Stéphane Aulery
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 03 Apr 2015 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 135 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.