Re: USB device allocation

david parsons (o.r.c@p.e.l.l.p.o.r.t.l.a.n.d.o.r.u.s)
5 Oct 1999 18:09:25 -0700


In article <linux.kernel.37FA6C9B.E9FD1B51@transmeta.com>,
H. Peter Anvin <hpa@transmeta.com> wrote:
>Jeff Noxon wrote:
>>
>> On Tue, Oct 05, 1999 at 01:54:24PM -0700, Dan Hollis wrote:
>> > My /dev takes 107kbyte on disk (2,245 entries!), this is even just a small
>> > fraction of devices.
>>
>> This may sound like flamebait or ignorance, but here goes: Why can't
>> USB devices just show up dynamically under /proc/usb/dev/ or something
>> like that? Are traditional device nodes really necessary?
>>
>> Or maybe a USB filesystem, ala devpts...
>
>Well, for one thing you just made your USB modem useless for dialout,
>since you can't set the proper permissions for whomever you want to be
>able to access your device.

Thats why a union filesystem (or some unionfilesystem support in a
devfs) would be useful: an administrator can set up prototype nodes
in a regular /dev directory, and when devfs initializes it will
properly carry the permissions up to the current filesystem (and if
you change the permissions on modes in the devfs filesystem, those
permissions will carry down to the base filesystem. No fuss, no muss,
no bother, and it gets rid of the thrice-damned magic numbers and
hidden kernel policy that the current scheme has.)

____
david parsons \bi/ without devfs, I can't use 2.3.x kernels.
\/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/