Subject: CVS commit: src/sbin/disklabel
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 01/18/2004 22:34:22
Module Name:	src
Committed By:	lukem
Date:		Sun Jan 18 22:34:22 UTC 2004

Modified Files:
	src/sbin/disklabel: Makefile disklabel.c

Log Message:
* Enable SAVEBOOTAREA on i386 and amd64 (by merging the Makefile
  controls with the section for the other MBR-using platforms that
  already enable this)
* Don't prompt the user to "erase the previous contents of the disk"
  when there's no NetBSD MBR partition; SAVEBOOTAREA is sufficient.

These fixes mean that you can create a disklabel (on an i386/amd64) on a disk
that doesn't have a NetBSD MBR partition without trashing the existing MBR.
The previous behaviour was extremely annoying when working with media such
as FAT-formatted CF cards, and didn't really protect people with such from
accidentally trashing part of sector 1 of such disks, and made it extremely
easy to trash sectors 0..15 of those disks instead.


To generate a diff of this commit:
cvs rdiff -r1.49 -r1.50 src/sbin/disklabel/Makefile
cvs rdiff -r1.125 -r1.126 src/sbin/disklabel/disklabel.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.