diff options
author | phk <phk@FreeBSD.org> | 2003-01-26 11:11:19 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-26 11:11:19 +0000 |
commit | dc7edb5afb32d0456fc06e8ef281c1349abe894a (patch) | |
tree | 9f62c6ce4618bd7ff5fb809caebbabc83543513c /sbin/bsdlabel/bsdlabel.8 | |
parent | 680c2aca55d1bb75a321735e31280c7281782f2c (diff) | |
download | FreeBSD-src-dc7edb5afb32d0456fc06e8ef281c1349abe894a.zip FreeBSD-src-dc7edb5afb32d0456fc06e8ef281c1349abe894a.tar.gz |
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
Diffstat (limited to 'sbin/bsdlabel/bsdlabel.8')
-rw-r--r-- | sbin/bsdlabel/bsdlabel.8 | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sbin/bsdlabel/bsdlabel.8 b/sbin/bsdlabel/bsdlabel.8 index 1e908c2..b3df66e 100644 --- a/sbin/bsdlabel/bsdlabel.8 +++ b/sbin/bsdlabel/bsdlabel.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 |