Well, 24 bits for minor numbers is *just* enough. From the devfs
README for SCSI devices:
host 6 bits (say up to 64 hosts on a really big machine)
channel 4 bits (say up to 16 SCSI buses per host)
id 4 bits
lun 3 bits
partition 6 bits
TOTAL 23 bits
This leaves you with just one bit to play with. As long as nothing new
comes in the SCSI spec, we should be OK...
But you are still limited to 8 bits for the major number. devices.txt
tells me that half the available numbers are "in use" (either
officially allocated or reserved for local/experimental use). How long
before we hit the 8 bit limit?
> This would, of course, mean a new version of the filesystem, and
> that seems to me to be an unwanted complication in itself. But
> isn't there already a discussion of a filesystem with information
> about some new capabilities stored in it? As long as we are
> considering a new kind of filesystem, why not add two bytes to
> the minor device number?
Increasing the size of dev_t is going to cause compatibility problems
with C libraries: it's not "just" a filesystem change. With devfs you
don't need to increase major and minor sizes.
> Personally, I think any complications in the permissions of a
> filesystem might prove useful in the administration of device
> file permissions anyway. It seems that we would either not have
> the option to take advantage of this additional permissions
> mechanism in a devfs, or we would risk unexpected problems with
> these device file permissions if the bootup initialization
> mechanism we chose failed to operate properly.
I don't understand what you're driving at here. If some new file
permissions scheme were to be introduced, I don't see why it would be
any harder to support it with devfs than with ext?fs.
Regards,
Richard....
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu