Subject: Re: The demise of DEV_BSIZE
To: Bill Studenmund <wrstuden@nas.nasa.gov>
From: Chris G. Demetriou <cgd@netbsd.org>
List: tech-kern
Date: 10/05/1999 18:51:17
Bill Studenmund <wrstuden@nas.nasa.gov> writes:
> > It's _nice_ to be able to e.g. take a CD-ROM image and dd it on to a
> > disk, and try it out.
>
> Yeah, that would be nice. I hadn't thought of it.
>
> > I think there might be some argument that "disklabel block size must
> > be pow2 multiple of real block size, and disklabel block size is used
> > to convert partition offsets into units of 'real' blocks or
> > something."
> >
> > But just breaking this is probably the wrong thing to do.
>
> Well, it doesn't work now, so we're not "breaking" it. :-)
>
> I think this would be fine, now that you mention it. We'd have to be
> careful about when we use disklabel blocks and when we use device blocks,
> but I think we can do it. :-)
Actually, it _does_ work now (or at least, did two or so years ago),
because of various conspiring factors around disk label block size,
the various device block sizes, and the fact that the CD-ROM driver
(IMO) bogusly ignores the disklabel on the device...
cgd
--
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.