From dc7edb5afb32d0456fc06e8ef281c1349abe894a Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 26 Jan 2003 11:11:19 +0000 Subject: Retire the "-N" and "-W" options which implemented write-protection for the disklabel: This facility is OBE. First of all, we cannot sensibly implement this in a properly stacked environment. Second, if we did, it would confuse the heck out of users who wouldn't be able to "start from scratch" by dd(8)'ing /dev/zero onto /dev/da0. Third, the offered protection is not comprehensive: no other software would respect it. Fourth and finally, the disklabel is already protected against tampering if it controls open partitions. Uselessness of these options discussed with: peter --- sbin/disklabel/disklabel.8 | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'sbin/disklabel/disklabel.8') diff --git a/sbin/disklabel/disklabel.8 b/sbin/disklabel/disklabel.8 index 1e908c2..b3df66e 100644 --- a/sbin/disklabel/disklabel.8 +++ b/sbin/disklabel/disklabel.8 @@ -61,9 +61,6 @@ .Op Fl r .Op Fl n .Ar disk Ar protofile -.Nm -.Op Fl NW -.Ar disk .Pp .Nm .Fl B @@ -311,27 +308,6 @@ If is used, no data will be written to the device, and instead the disklabel that would have been written will be printed to stdout. This is 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 arranges for -.Xr write 2 -and similar system calls -to return -.Er 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 -.Fl W -.Ar disk -.Pp -To disallow writing to the label area after previously allowing it, use the -command -.Pp -.Nm -.Fl N -.Ar disk .Ss Installing bootstraps .Pp The final three forms of -- cgit v1.1