summaryrefslogtreecommitdiffstats
path: root/sbin/disklabel
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 /sbin/disklabel
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 'sbin/disklabel')
-rw-r--r--sbin/disklabel/disklabel.85
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/disklabel/disklabel.8 b/sbin/disklabel/disklabel.8
index 32ed01c..7c71bd7 100644
--- a/sbin/disklabel/disklabel.8
+++ b/sbin/disklabel/disklabel.8
@@ -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
.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
+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
OpenPOWER on IntegriCloud