Re: lots and lots of disks again

viro
2004-02-10T21:42:34Z

On Tue, Feb 10, 2004 at 10:34:38PM +0100, Kurt Garloff wrote:
> > Bit shuffling where? Since partitioning does *not* reach the driver (nor
> > should it), I really wonder where exactly do you expect that turd to land.
>
> We always needed to tell the gendisk code what part of the minor refers
> to disks and which one to partitions. The knowledge is there, like it or
> not.

Hell, no. We tell the upper layers that gendisk covers device numbers from
dev to dev + N - 1. That has nothing to do with bitmasks, majors or minors.

And _that_ is generic enough to be handled by upper layers. Driver doesn't
care about any device numbers past that point. At all. It gets pointers
to gendisk and that's it.

> > > I don't see what's crappy with the suggestion. Tell us!
> >
> > Putting partitioning crap back into driver.
>
> Oh well, are you happier if we declare the two bits reserved instead
> of having the hope of using them to extend the number of partitions per
> disk to 64 per disk some day?

No, I'm not.