> - I think this is totally wrong for programs or people that check in /dev
> for a device before try to open it, or at least is a mess.
WHAT!!! The whole point of a virtual devfs is that you can do a "ls /dev"
to see what devices are currently accessable. And most actions on a divice
start with a call to open() (or mount()).
> - If you want to make something useful, your devfs must be populated from
> _all_ kernel devices at boot with 600 permission and it must not remove
> device entry for some reason. It can add/remove devices from the
> filesystem only when you load/unload a kernel module.
NO! We want only divices that are acatually on the system to show up in
/dev. That is the main selling point of a devfs.
> - Since devfs should be a virtual device that forget permission and
> ownership at reboot (or after module unload) it will make the life hard
> and less efficient in the rcS.d scripts. I' d like to chown directly
> /dev/devname on ext2, instead of change a bootup script or adding the
> line "option modname chmod 644 /dev/modname; chown ..." in /etc/conf.modules.
> I don' t like something of only virtual.
OK, so write a little c proggie that stat()s each file in /dev and restores
them apon boot. Problem solved.
-=- James Mastros
-- Agent K: Humans for the most part don't have a clue. They don't need one or want one either. They're happy. They think they have a good read on things. Will Smith (not yet Agent J): But why the big secret? People are smart; they can handle it. K: A person is smart; people are dumb, panicky animals and you know it. Fifteen hundred years ago, everybody knew that the Earth was the center of the Universe. Five hundred years ago, everybody knew that the Earth was flat. Fifteen minutes ago, you knew that humans were alone in the Universe. Just think what you'll know tomorrow.-=- Men In Black (1997, Paramount)