git: 3701f500990a - main - write.2: sweep error code referencing disklabel(8)

From: Robert Wing <rew_at_FreeBSD.org>
Date: Tue, 27 May 2025 21:36:52 UTC
The branch main has been updated by rew:

URL: https://cgit.FreeBSD.org/src/commit/?id=3701f500990afe9cc3117c3704c5682ac20d737a

commit 3701f500990afe9cc3117c3704c5682ac20d737a
Author:     Robert Wing <rew@FreeBSD.org>
AuthorDate: 2025-05-27 21:33:50 +0000
Commit:     Robert Wing <rew@FreeBSD.org>
CommitDate: 2025-05-27 21:33:50 +0000

    write.2: sweep error code referencing disklabel(8)
    
    The "-W" option for disklabel(8) was retired in:
        f080d33b66306419b40c2f2a879198d3d5a8d36c
    
    The ioctl used by the "-W" option, DIOCWLABEL, was retired in:
        5777c5b9895805c33f1da4f72a3b5b297727888b
---
 lib/libsys/write.2 | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/lib/libsys/write.2 b/lib/libsys/write.2
index 5fea75150e3b..7ff1c42715d6 100644
--- a/lib/libsys/write.2
+++ b/lib/libsys/write.2
@@ -185,13 +185,6 @@ A signal interrupted the write before it could be completed.
 .It Bq Er EAGAIN
 The file was marked for non-blocking I/O,
 and no data could be written immediately.
-.It Bq Er EROFS
-An attempt was made to write over a disk label area at the beginning
-of a slice.
-Use
-.Xr disklabel 8
-.Fl W
-to enable writing on the disk label area.
 .It Bq Er EINVAL
 The value
 .Fa nbytes