Re: Minor numbers

2001-05-14 Thread Andries . Brouwer
> Im very interested in 32bit dev_t or at least implementing > the 'lots of majors' half of it because we are probably > going to need it in the 2.5 years before we have a 2.6 Yes, a larger dev_t has been desirable for a long time, and more and more kludges are invented to work around its lack. S

Re: Minor numbers

2001-05-14 Thread Alan Cox
> Hmm. You make me search for this old patch. > Since Linus' reaction was not exactly positive I left > the topic again, but there must be a copy somewhere.. Given current real world evolution Im very interested in 32bit dev_t or at least implementing the 'lots of majors' half of it because we ar

Re: Minor numbers

2001-05-14 Thread Andries . Brouwer
>> The exercise is essentially the patch that I sent last month or so. > mknod takes a 32bit input > the stat64 padding only has room for 32bits Hmm. You make me search for this old patch. Since Linus' reaction was not exactly positive I left the topic again, but there must be a copy somewhere..

Re: Minor numbers

2001-05-14 Thread Joel Becker
On Mon, May 14, 2001 at 03:57:21PM +0100, Alan Cox wrote: > > > 20:12 is more common > > > > Which is major, which is minor? > > 20bit major Well, AIX 4.3 (and 4.[12] I think as well) uses 16:16, and they are preparing for 32:32 when the kernel finaly goes fully 64-bit. I don't know en

Re: Minor numbers

2001-05-14 Thread Andries . Brouwer
> The fs and stat structs are set up to allow 32bits. > 64bits is a major exercise No. Inside the kernel the dev_t type does not really occur. The exercise is essentially the patch that I sent last month or so. Andries - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: Minor numbers

2001-05-14 Thread Alan Cox
> No. Inside the kernel the dev_t type does not really occur. > The exercise is essentially the patch that I sent last month or so. mknod takes a 32bit input the stat64 padding only has room for 32bits The kernel representation internally I dont care about, its probably a pointer not a 32:32 tho

Re: Minor numbers

2001-05-14 Thread Alan Cox
> That is not more common. Around us we see major:minor splits > 8:24, 12:20, 14:18. If we want to use NFSv3 and communicate > with all these systems we would do wise to use 32:32. My error. 32:32 is however not interesting. The fs and stat structs are set up to allow 32bits. 64bits is a major ex

Re: Minor numbers

2001-05-14 Thread Andries . Brouwer
>>> 20:12 is more common >> Which is major, which is minor? > 20bit major That is not more common. Around us we see major:minor splits 8:24, 12:20, 14:18. If we want to use NFSv3 and communicate with all these systems we would do wise to use 32:32. [Reminds me of a discussion that ended unfini

Re: Minor numbers

2001-05-14 Thread H. Peter Anvin
Followup to: <[EMAIL PROTECTED]> By author:Alan Cox <[EMAIL PROTECTED]> In newsgroup: linux.dev.kernel > > > > 20:12 is more common > > > > Which is major, which is minor? > > 20bit major > Surely you're jesting? 12 bit major, 20 bit minor is the only logical split. The need for minors

Re: Minor numbers

2001-05-14 Thread Alan Cox
> > 20:12 is more common > > Which is major, which is minor? 20bit major > I have one (private) driver that requires around 5000 minors. > (currently through some 20 majors) (Currently only just over half of > these are physically installed) Just use several. The split is a bit vague in mo

Re: Minor numbers

2001-05-14 Thread Rogier Wolff
Alan Cox wrote: > > 255. Has this limitation been some how addressed with 2.4? 256 devices > > per module, sometimes is not enough, especially if you are in the SAN > > environment; or when the 256 minors numbers are broken down to several > > 2.4 is using 16bit dev_t in kernel still. Applicati

Re: Minor numbers

2001-05-14 Thread Alan Cox
> 255. Has this limitation been some how addressed with 2.4? 256 devices > per module, sometimes is not enough, especially if you are in the SAN > environment; or when the 256 minors numbers are broken down to several 2.4 is using 16bit dev_t in kernel still. Application space sees a much large