FreeBSD Bugzilla – Attachment 25698 Details for
Bug 43891
Undocumented behavior: write(2) over a disk label returns EROFS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.13 KB, created by
Diomidis Spinellis
on 2002-10-10 13:50:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Diomidis Spinellis
Created:
2002-10-10 13:50:02 UTC
Size:
1.13 KB
patch
obsolete
>*** 311,317 **** > .Ss Enabling and disabling writing to the disk label area > .Pp > 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 > to write to this area (for example, to obliterate the label), use the form > .Pp > .Nm >--- 311,320 ---- > .Ss Enabling and disabling writing to the disk label area > .Pp > By default, it is not possible to write to the disk label area at the beginning >! 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 > .Pp > .Nm >*** write.2 2002/10/10 11:52:48 1.1 >--- write.2 2002/10/10 12:08:09 >*************** >*** 171,176 **** >--- 171,183 ---- > .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 disk. >+ Use >+ .Xr disklabel 8 >+ .Fl W >+ to enable writing on the disk label area. > .El > .Pp > In addition,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43891
: 25698