summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2002-10-10 19:16:10 +0000
committerschweikh <schweikh@FreeBSD.org>2002-10-10 19:16:10 +0000
commitc554f3f243edb4d8d871d1a18bc93317486c8b95 (patch)
tree3db8316fad8a4b4e3240954a9b7156d3dfa55025 /lib/libc
parentffa065804191d56f72fd453db8b044f570cfa014 (diff)
downloadFreeBSD-src-c554f3f243edb4d8d871d1a18bc93317486c8b95.zip
FreeBSD-src-c554f3f243edb4d8d871d1a18bc93317486c8b95.tar.gz
Document that write(2) et al can return EROFS for attempts to write the
disk label area. PR: 43891 Submitted by: Diomidis D. Spinellis <dds@istlab.dmst.aueb.gr> MFC after: 3 days
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/write.27
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2
index d8a4177..729a4d0 100644
--- a/lib/libc/sys/write.2
+++ b/lib/libc/sys/write.2
@@ -171,6 +171,13 @@ 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.
.El
.Pp
In addition,
OpenPOWER on IntegriCloud