Remove DIOCWLABEL operation. Doing it destroyed the purpose of having
commit8714d5293e7622f82affbab5025e406ed21ac545
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 21 May 2007 15:53:29 +0000 (21 15:53 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 21 May 2007 15:53:29 +0000 (21 15:53 +0000)
tree031d715986376d3bd35a1bb4826f738370d7af86
parentdf4e35f5ebd521fab1713f577b386771c57e8e9f
Remove DIOCWLABEL operation.  Doing it destroyed the purpose of having
write protected areas in the first place.  This also solves an issue
bootstrapping from older versions of DragonFly since the ioctl has moved
to a different header file.

Users can write-enable the label area with disklabel -W/-N if the issue
comes up.

Note: In DragonFly 1.9 and later, the MBR and disklabel areas are only
write protected when accessed via a slice or partition.  Access to these
areas via the raw disk (e.g. ad0) is no long write-protected.

Reported-by: Hasso Tepper <hasso@estpak.ee>,
     YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
bin/dd/dd.c