Revert "Add extra EINVAL information about wrong block size to read(2)/write(2)"

This reverts commit 1c2be25f60.

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.
This commit is contained in:
Benedict Reuschling 2022-10-08 10:23:51 +00:00
parent 6700f34d12
commit 44b0b943b8
2 changed files with 2 additions and 6 deletions

View File

@ -28,7 +28,7 @@
.\" @(#)read.2 8.4 (Berkeley) 2/26/94 .\" @(#)read.2 8.4 (Berkeley) 2/26/94
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd October 7, 2022 .Dd June 4, 2020
.Dt READ 2 .Dt READ 2
.Os .Os
.Sh NAME .Sh NAME
@ -250,8 +250,6 @@ The sum of the
values in the values in the
.Fa iov .Fa iov
array overflowed a 32-bit integer. 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 .It Bq Er EFAULT
Part of the Part of the
.Fa iov .Fa iov

View File

@ -28,7 +28,7 @@
.\" @(#)write.2 8.5 (Berkeley) 4/2/94 .\" @(#)write.2 8.5 (Berkeley) 4/2/94
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd October 7, 2022 .Dd February 11, 2021
.Dt WRITE 2 .Dt WRITE 2
.Os .Os
.Sh NAME .Sh NAME
@ -205,8 +205,6 @@ is greater than
if the sysctl if the sysctl
.Va debug.iosize_max_clamp .Va debug.iosize_max_clamp
is non-zero). is non-zero).
.It Bq Er EINVAL
The current file offset is not a multiple of the block size.
.It Bq Er EINTEGRITY .It Bq Er EINTEGRITY
The backing store for The backing store for
.Fa fd .Fa fd