Subject: NetBSD master CVS tree commits
To: None <source-changes@NetBSD.ORG>
From: The Source of All Evil <source@NetBSD.ORG>
List: source-changes
Date: 03/25/1998 17:40:01
cgd
Wed Mar 25 17:35:18 PST 1998
Update of /cvsroot/src/sbin/disklabel
In directory nb00:/tmp/cvs-serv21715

Modified Files:
	disklabel.c 
Log Message:
in makebootarea() (if NUMBOOT is nonzero), before reading the contents
of the old boot area so that 'disklabel -r -w' won't clobber anything,
be sure to seek to the offset of the boot area (like readlabel() does).
Otherwise, if the machine has code which looks up machine-dependent label
bits, the offset read from will be incorrect, and disklabel will end up
secretly replacing the boot area with other data (which probably doesn't
look like a boot block).  The only port this currently affects is
NetBSD/arm32, because it's the only one of the three ports that use
NUMBOOT > 0 that has MD label grovelling code.


cgd
Wed Mar 25 17:37:49 PST 1998
Update of /cvsroot/src/sbin/disklabel
In directory nb00:/tmp/cvs-serv21754

Modified Files:
	disklabel.c 
Log Message:
when reading the MBR, seek to DOSBBSECTOR * DEV_BSIZE rather than just
DOSBBSECTOR.  DOSBBSECTOR is 0 so it doesn't really matter, but the former
is what was really intended.