register_blkdev
Quoted 4 lines
Quoted 1 line
That's why the character device code should get a similar massaging
I agree, I thought this was a 2.7 change, but it's looking like people want this change sooner :)
There is no need to do all of that. Going to 32-bit dev_t is trivial, not a major restructuring.
Three minutes editing of kdev_t.h and posix_types.h and you have it. Boot the kernel and it runs fine.
However, it can be crashed from userspace, so before we do the three minutes editing the audit is needed. Look at the patch for raw.c I posted a few hours ago. One trivial test.
If we do it as Alan suggested even this one test can be avoided in most places.
Quoted 3 lines
If people really think they need a 32bit
dev_t
we should just introduce it and use it only for block devices and stay with the old 8+8 split for character devices.
Of course discussing the future and how the cake should be divided once we have it may be of interest - but let us bake the cake first. The work required is entirely independent of the size and structure of dev_t.
Andries - curious whether 2.5.65 will show progress
[not that the road isn't long - once the kernel is happy there are some glibc details - strange enough glibc uses a gigantic dev_t but simultaneously assumes that major and minor only have a few bits]
Quoted 2 lines · On Sat, Mar 08, 2003 at 09:26:15PM +0100, [email protected] wrote:
There is no need to do all of that. Going to 32-bit
dev_tis trivial, not a major restructuring.
Doing it _right_ does require major restructuring.
Quoted 4 lines
However, it can be crashed from userspace, so before we do the three minutes editing the audit is needed. Look at the patch for
raw.cI posted a few hours ago. One trivial test.
And probably one of them in at least half of the character drivers. We need to get rid of the artifical major/minor split completly instead of just increasing it, leaving silly assumptions in and increasing the space consumed by all those arrays by magnitudes.
Quoted 6 lines
Quoted 3 lines
If people really think they need a 32bit
dev_t
we should just introduce it and use it only for block devices and stay with the old 8+8 split for character devices.Of course discussing the future and how the cake should be divided once we have it may be of interest
No, the point is that the character devices aren't ready yet for moving away from the old 8+8 split.