Subject: Re: readdisklabel() question
To: None <tech-kern@NetBSD.ORG>
From: der Mouse <mouse@Holo.Rodents.Montreal.QC.CA>
Date: 12/04/1996 06:50:17
> When the sd driver sets a bunch of geometry info in the disklabel
> structure and then calls readdisklabel(), if the partition has a Sun
> disklabel, all that geometry info gets clobbered. (so, why does sd
> do it?)
Not that I should be considered authoritative (ha!)...but my guess is,
the sd driver is dumping stuff in there in case the disk _doesn't_ have
a disklabel, in which case what it's put there is, essentially, a
default disklabel so the disk is minimally accessible until someone can
write a real label to it.
As for what the proper interface to readdisklabel() is, I don't know.
7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B