Re: devlinks: an alternative to devfs

Michael Elizabeth Chastain (mec@shout.net)
Thu, 8 Jan 1998 02:34:59 -0600


Hi Richard,

> # rm /gaol/dev/lp0
> # insmod lp
> # ls -lF /dev/lp0
> crw-rw-rw- 1 root root 6, 0 Aug 30 1992 /dev/lp0
> # ls -lF /gaol/dev/lp0
> /bin/ls: /gaol/dev/lp0: No such file or directory
>
> That's what you want, isn't it?

Yes.

> This assumes that you know which devices you want to disable in your gaol.

Yes. I think this is a completely untenable assumption.

> And, we can be even more clever than that. By using:
> # mount -t devfs -o explicit none /gaol/dev
> # mknod /gaol/dev/null c 0 0
> # mknod /gaol/dev/zero c 0 0

That is much nicer!

Michael