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
This commit is contained in:
parent
63872bc9c5
commit
b2aa8b2a98
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104813
@ -171,6 +171,13 @@ A signal interrupted the write before it could be completed.
|
|||||||
.It Bq Er EAGAIN
|
.It Bq Er EAGAIN
|
||||||
The file was marked for non-blocking I/O,
|
The file was marked for non-blocking I/O,
|
||||||
and no data could be written immediately.
|
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
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
In addition,
|
In addition,
|
||||||
|
@ -314,7 +314,10 @@ useful to see how a partitioning scheme will work out for a specific disk.
|
|||||||
.Ss Enabling and disabling writing to the disk label area
|
.Ss Enabling and disabling writing to the disk label area
|
||||||
.Pp
|
.Pp
|
||||||
By default, it is not possible to write to the disk label area at the beginning
|
By default, it is not possible to write to the disk label area at the beginning
|
||||||
of a disk. The disk driver silently ignores any attempt to do so. If you need
|
of a disk. The disk driver arranges for
|
||||||
|
.Xr write 2
|
||||||
|
and similar system calls
|
||||||
|
to return EROFS on any attempt to do so. If you need
|
||||||
to write to this area (for example, to obliterate the label), use the form
|
to write to this area (for example, to obliterate the label), use the form
|
||||||
.Pp
|
.Pp
|
||||||
.Nm
|
.Nm
|
||||||
|
@ -314,7 +314,10 @@ useful to see how a partitioning scheme will work out for a specific disk.
|
|||||||
.Ss Enabling and disabling writing to the disk label area
|
.Ss Enabling and disabling writing to the disk label area
|
||||||
.Pp
|
.Pp
|
||||||
By default, it is not possible to write to the disk label area at the beginning
|
By default, it is not possible to write to the disk label area at the beginning
|
||||||
of a disk. The disk driver silently ignores any attempt to do so. If you need
|
of a disk. The disk driver arranges for
|
||||||
|
.Xr write 2
|
||||||
|
and similar system calls
|
||||||
|
to return EROFS on any attempt to do so. If you need
|
||||||
to write to this area (for example, to obliterate the label), use the form
|
to write to this area (for example, to obliterate the label), use the form
|
||||||
.Pp
|
.Pp
|
||||||
.Nm
|
.Nm
|
||||||
|
Loading…
Reference in New Issue
Block a user