From: Jeff Layton <jlayton@kernel.org> Date: 2020-06-10 10:33:53
A patch has been merged for v5.8 that changes how syncfs() reports
errors. Change the sync() manpage accordingly.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
man2/sync.2 | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
@@ -86,11 +86,26 @@ to indicate the error. is always successful. .PP .BRsyncfs()-can fail for at least the following reason:+can fail for at least the following reasons: .TP .BEBADF .Ifd is not a valid file descriptor.+.TP+.BEIO+An error occurred during synchronization.+This error may relate to data written to any file on the filesystem, or on+metadata related to the filesytem itself.+.TP+.BENOSPC+Disk space was exhausted while synchronizing.+.TP+.BRENOSPC", "EDQUOT+Data was written to a files on NFS or another filesystem which does not+allocate space at the time of a+.BRwrite(2)+system call, and some previous write failed due to insufficient+storage space. .SHVERSIONS .BRsyncfs() first appeared in Linux 2.6.39;
@@ -121,6 +136,13 @@ or .BRsyncfs() provide the same guarantees as fsync called on every file in the system or filesystem respectively.+.PP+In mainline kernel versions prior to 5.8,+.\" commit 735e4ae5ba28c886d249ad04d3c8cc097dad6336+.BRsyncfs()+will only fail with EBADF when passed a bad file descriptor. In 5.8+and later kernels, it will also report an error if one or more inodes failed+to be written back since the last syncfs call. .SHBUGS Before version 1.3.20 Linux did not wait for I/O to complete before returning.
From: Eric Biggers <ebiggers@kernel.org> Date: 2020-06-10 15:50:20
On Wed, Jun 10, 2020 at 06:33:47AM -0400, Jeff Layton wrote:
quoted hunk
A patch has been merged for v5.8 that changes how syncfs() reports
errors. Change the sync() manpage accordingly.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
man2/sync.2 | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
@@ -86,11 +86,26 @@ to indicate the error. is always successful. .PP .BRsyncfs()-can fail for at least the following reason:+can fail for at least the following reasons: .TP .BEBADF .Ifd is not a valid file descriptor.+.TP+.BEIO+An error occurred during synchronization.+This error may relate to data written to any file on the filesystem, or on+metadata related to the filesytem itself.+.TP+.BENOSPC+Disk space was exhausted while synchronizing.+.TP+.BRENOSPC", "EDQUOT+Data was written to a files on NFS or another filesystem which does not+allocate space at the time of a+.BRwrite(2)+system call, and some previous write failed due to insufficient+storage space. .SHVERSIONS .BRsyncfs() first appeared in Linux 2.6.39;
@@ -121,6 +136,13 @@ or .BRsyncfs() provide the same guarantees as fsync called on every file in the system or filesystem respectively.+.PP+In mainline kernel versions prior to 5.8,+.\" commit 735e4ae5ba28c886d249ad04d3c8cc097dad6336+.BRsyncfs()+will only fail with EBADF when passed a bad file descriptor. In 5.8+and later kernels, it will also report an error if one or more inodes failed+to be written back since the last syncfs call.
The sentence "In mainline kernel versions prior to 5.8, syncfs() will only fail
with EBADF when passed a bad file descriptor" is ambiguous. It could mean that
EBADF can now mean other things too.
Maybe write: "In mainline kernel versions prior to 5.8, syncfs() will only fail
when passed a bad file descriptor (EBADF)."
- Eric
From: Jeff Layton <jlayton@kernel.org> Date: 2020-06-10 21:19:29
On Wed, 2020-06-10 at 08:50 -0700, Eric Biggers wrote:
On Wed, Jun 10, 2020 at 06:33:47AM -0400, Jeff Layton wrote:
quoted
A patch has been merged for v5.8 that changes how syncfs() reports
errors. Change the sync() manpage accordingly.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
man2/sync.2 | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
@@ -86,11 +86,26 @@ to indicate the error. is always successful. .PP .BRsyncfs()-can fail for at least the following reason:+can fail for at least the following reasons: .TP .BEBADF .Ifd is not a valid file descriptor.+.TP+.BEIO+An error occurred during synchronization.+This error may relate to data written to any file on the filesystem, or on+metadata related to the filesytem itself.+.TP+.BENOSPC+Disk space was exhausted while synchronizing.+.TP+.BRENOSPC", "EDQUOT+Data was written to a files on NFS or another filesystem which does not+allocate space at the time of a+.BRwrite(2)+system call, and some previous write failed due to insufficient+storage space. .SHVERSIONS .BRsyncfs() first appeared in Linux 2.6.39;
@@ -121,6 +136,13 @@ or .BRsyncfs() provide the same guarantees as fsync called on every file in the system or filesystem respectively.+.PP+In mainline kernel versions prior to 5.8,+.\" commit 735e4ae5ba28c886d249ad04d3c8cc097dad6336+.BRsyncfs()+will only fail with EBADF when passed a bad file descriptor. In 5.8+and later kernels, it will also report an error if one or more inodes failed+to be written back since the last syncfs call.
The sentence "In mainline kernel versions prior to 5.8, syncfs() will only fail
with EBADF when passed a bad file descriptor" is ambiguous. It could mean that
EBADF can now mean other things too.
Maybe write: "In mainline kernel versions prior to 5.8, syncfs() will only fail
when passed a bad file descriptor (EBADF)."
- Eric
Good point. Fixed in my tree using your verbiage. I'll send out a v2
patch once I give others a chance to comment.
Thanks!
--
Jeff Layton [off-list ref]
From: Michael Kerrisk (man-pages) <hidden> Date: 2020-06-25 09:45:12
Hi Jeff,
Any progress with v2 of this patch?
Thanks,
Michael
On 6/10/20 11:19 PM, Jeff Layton wrote:
On Wed, 2020-06-10 at 08:50 -0700, Eric Biggers wrote:
quoted
On Wed, Jun 10, 2020 at 06:33:47AM -0400, Jeff Layton wrote:
quoted
A patch has been merged for v5.8 that changes how syncfs() reports
errors. Change the sync() manpage accordingly.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
man2/sync.2 | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
@@ -86,11 +86,26 @@ to indicate the error. is always successful. .PP .BRsyncfs()-can fail for at least the following reason:+can fail for at least the following reasons: .TP .BEBADF .Ifd is not a valid file descriptor.+.TP+.BEIO+An error occurred during synchronization.+This error may relate to data written to any file on the filesystem, or on+metadata related to the filesytem itself.+.TP+.BENOSPC+Disk space was exhausted while synchronizing.+.TP+.BRENOSPC", "EDQUOT+Data was written to a files on NFS or another filesystem which does not+allocate space at the time of a+.BRwrite(2)+system call, and some previous write failed due to insufficient+storage space. .SHVERSIONS .BRsyncfs() first appeared in Linux 2.6.39;
@@ -121,6 +136,13 @@ or .BRsyncfs() provide the same guarantees as fsync called on every file in the system or filesystem respectively.+.PP+In mainline kernel versions prior to 5.8,+.\" commit 735e4ae5ba28c886d249ad04d3c8cc097dad6336+.BRsyncfs()+will only fail with EBADF when passed a bad file descriptor. In 5.8+and later kernels, it will also report an error if one or more inodes failed+to be written back since the last syncfs call.
The sentence "In mainline kernel versions prior to 5.8, syncfs() will only fail
with EBADF when passed a bad file descriptor" is ambiguous. It could mean that
EBADF can now mean other things too.
Maybe write: "In mainline kernel versions prior to 5.8, syncfs() will only fail
when passed a bad file descriptor (EBADF)."
- Eric
Good point. Fixed in my tree using your verbiage. I'll send out a v2
patch once I give others a chance to comment.
Thanks!
From: Jeff Layton <jlayton@kernel.org> Date: 2020-06-25 23:38:06
On Thu, 2020-06-25 at 11:45 +0200, Michael Kerrisk (man-pages) wrote:
Hi Jeff,
Any progress with v2 of this patch?
Thanks,
Michael
Just sent it. Thanks for the reminder!
On 6/10/20 11:19 PM, Jeff Layton wrote:
quoted
On Wed, 2020-06-10 at 08:50 -0700, Eric Biggers wrote:
quoted
On Wed, Jun 10, 2020 at 06:33:47AM -0400, Jeff Layton wrote:
quoted
A patch has been merged for v5.8 that changes how syncfs() reports
errors. Change the sync() manpage accordingly.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
man2/sync.2 | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
@@ -86,11 +86,26 @@ to indicate the error. is always successful. .PP .BRsyncfs()-can fail for at least the following reason:+can fail for at least the following reasons: .TP .BEBADF .Ifd is not a valid file descriptor.+.TP+.BEIO+An error occurred during synchronization.+This error may relate to data written to any file on the filesystem, or on+metadata related to the filesytem itself.+.TP+.BENOSPC+Disk space was exhausted while synchronizing.+.TP+.BRENOSPC", "EDQUOT+Data was written to a files on NFS or another filesystem which does not+allocate space at the time of a+.BRwrite(2)+system call, and some previous write failed due to insufficient+storage space. .SHVERSIONS .BRsyncfs() first appeared in Linux 2.6.39;
@@ -121,6 +136,13 @@ or .BRsyncfs() provide the same guarantees as fsync called on every file in the system or filesystem respectively.+.PP+In mainline kernel versions prior to 5.8,+.\" commit 735e4ae5ba28c886d249ad04d3c8cc097dad6336+.BRsyncfs()+will only fail with EBADF when passed a bad file descriptor. In 5.8+and later kernels, it will also report an error if one or more inodes failed+to be written back since the last syncfs call.
The sentence "In mainline kernel versions prior to 5.8, syncfs() will only fail
with EBADF when passed a bad file descriptor" is ambiguous. It could mean that
EBADF can now mean other things too.
Maybe write: "In mainline kernel versions prior to 5.8, syncfs() will only fail
when passed a bad file descriptor (EBADF)."
- Eric
Good point. Fixed in my tree using your verbiage. I'll send out a v2
patch once I give others a chance to comment.
Thanks!