git: 44b0b943b8f3 - main - Revert "Add extra EINVAL information about wrong block size to read(2)/write(2)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Oct 2022 10:27:43 UTC
The branch main has been updated by bcr (doc committer):
URL: https://cgit.FreeBSD.org/src/commit/?id=44b0b943b8f30c8df926c413323c1fd5594ad7a7
commit 44b0b943b8f30c8df926c413323c1fd5594ad7a7
Author: Benedict Reuschling <bcr@FreeBSD.org>
AuthorDate: 2022-10-08 10:23:51 +0000
Commit: Benedict Reuschling <bcr@FreeBSD.org>
CommitDate: 2022-10-08 10:23:51 +0000
Revert "Add extra EINVAL information about wrong block size to read(2)/write(2)"
This reverts commit 1c2be25f6080ee63baeae55e45761e1310d1b756.
kib@ pointed out that it is perfectly fine to write at arbitrary regular
file offsets. For example, in a 4K block size character device, geom
doesn't support writing / reading 515 byte blocks. The description is
perhaps not applicable to all EINVALs returned.
---
lib/libc/sys/read.2 | 4 +---
lib/libc/sys/write.2 | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2
index 28d085562af3..8b58debd3fbb 100644
--- a/lib/libc/sys/read.2
+++ b/lib/libc/sys/read.2
@@ -28,7 +28,7 @@
.\" @(#)read.2 8.4 (Berkeley) 2/26/94
.\" $FreeBSD$
.\"
-.Dd October 7, 2022
+.Dd June 4, 2020
.Dt READ 2
.Os
.Sh NAME
@@ -250,8 +250,6 @@ The sum of the
values in the
.Fa iov
array overflowed a 32-bit integer.
-.It Bq Er EINVAL
-The current file offset is not a multiple of the block size.
.It Bq Er EFAULT
Part of the
.Fa iov
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2
index 048338ed4dee..937e95b53a14 100644
--- a/lib/libc/sys/write.2
+++ b/lib/libc/sys/write.2
@@ -28,7 +28,7 @@
.\" @(#)write.2 8.5 (Berkeley) 4/2/94
.\" $FreeBSD$
.\"
-.Dd October 7, 2022
+.Dd February 11, 2021
.Dt WRITE 2
.Os
.Sh NAME
@@ -205,8 +205,6 @@ is greater than
if the sysctl
.Va debug.iosize_max_clamp
is non-zero).
-.It Bq Er EINVAL
-The current file offset is not a multiple of the block size.
.It Bq Er EINTEGRITY
The backing store for
.Fa fd