Re: TTY changes to 2.1.65

Albert D. Cahalan (acahalan@cs.uml.edu)
Sat, 29 Nov 1997 02:56:49 -0500 (EST)


> By author: Rik van Riel <H.H.vanRiel@fys.ruu.nl>
>
>> We could implement /dev in the same way we implement /proc...
>> Device drivers can register/unregister their device files in
>> /dev and they get assigned a 'device number' for each device
>> they allocate (no need for major/minor numbers)
>
> This is something of an FAQ on this list; every now and then someone
> proposes it; the general consensus is that it's a bad idea.

No, _you_ think it's a bad idea. Many people have wanted devfs
for a very long time. It has been coded up twice, including a
recent reincarnation as "SystemFS". It is in FreeBSD, Solaris,
and AIX. Linux wouldn't be alone at all.

All problems can be solved. FreeBSD uses an invisible filesystem
that only the kernel can change. When you mount the filesystem,
you get something like a copy-on-write version of it. Solaris
seems to use tmpfs and loopback mounts, assisted by some shell
scripts. SystemFS uses a daemon to keep everything together.
As far as I can tell from a quick look, changes you make to /dev
get reported to the daemon for long-term non-volatile storage.