Re: devlinks: an alternative to devfs

Richard Gooch (rgooch@atnf.CSIRO.AU)
Fri, 9 Jan 1998 09:08:21 +1100


Michael Elizabeth Chastain writes:
> 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.

Yeah, probably. Since the pre-emptive unlink doesn't appear useful, I
won't bother with it.

> > 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!

Good. This is what I've done.
BTW: I've got multiple devfs mounts working too. Piece of cake.

Regards,

Richard....