Subject: mbrlabel fixes
To: None <current-users@netbsd.org>
From: Luke Mewburn <lukem@wasabisystems.com>
List: current-users
Date: 12/25/2000 01:06:37
Hi.

I've fixed mbrlabel to be a lot saner about updating the disk label.

Previously it would trash the existing in-core disklabel with one
generated from the MBR (Master Boot Record) of the disk. This could be
suboptimal in many situations.

Now it won't actually update the disk label (in-core or on-disk)
unless `-f' is given.

It's also a *lot* smarter about how it works; existing entries in the
NetBSD disk label will remain untouched, and mbrlabel will only add
entries to the disklabel for MBR partitions which don't have the same
size and offset as an existing partition slot in the disk label.

I've tested it fairly well, but there *may* be a couple of hiccups I
missed (I don't have very complicated MBR setups; usually one or two
MS-DOS/NTFS partitions (one possibly in an extended partition),
and a NetBSD partition). Please report any bugs with send-pr.

Luke.

-- 
Luke Mewburn  <lukem@wasabisystems.com>  http://www.wasabisystems.com
Luke Mewburn     <lukem@netbsd.org>      http://www.netbsd.org
Wasabi Systems - providing NetBSD sales, support and service.