Re: Bug#77130: dexter is not devfs ready
branden@deadbeast.net (Branden Robinson) writes:
> On Mon, Nov 20, 2000 at 02:45:47PM +0100, Goswin Brederlow wrote:
> > branden@deadbeast.net (Branden Robinson) writes:
> >
> > > On Mon, Nov 20, 2000 at 03:36:53AM +0100, Goswin Brederlow wrote:
> > > > PS/2 is in /dev/misc/psaux.
> > > > Serials are in /dev/tts/[0-9]*.
> > >
> > > Ah, you mean the exact paths I've been using since 4.0.1-2.
> >
> > Oh, so that should be fixed. Doesn't look right to me:
> >
> > % dpkg -l | grep xfree
> > ii xfree86-common 4.0.1-2 X Window System (XFree86) infrastructure
> > ii xserver-xfree8 4.0.1-2 the XFree86 X server
> >
> > % cat /proc/filesystems
> > ...
> > nodev devfs
> >
> > % mount
> > ...
> > none on /dev type devfs (rw)
> > ...
>
> I check for a mounted devfs using a check given to me. How about reading
> the source of dexter and telling me what's wrong with it?
The check looks right but doesn't work:
# grep '\</dev\>.*devfs' /proc/mounts
# grep '/dev\>.*devfs' /proc/mounts
# grep '\</dev.*devfs' /proc/mounts
# grep '/dev.*devfs' /proc/mounts
none /dev devfs rw 0 0
# grep ' /dev .*devfs' /proc/mounts
none /dev devfs rw 0 0
# grep '/dev.*devfs' /proc/mounts | hexdump
%07.7_ 6f6e 656e 2f20 6564 2076 6564 6676 2073
%07.7_ 7772 3020 3020 000a
%07.7_
You might want to check for " " instead of word start and end to
circumvent the problem.
MfG
Goswin
PS: You might also check for existing devices when using devfs. I
don't have a /dev/tts/3, so theres no point giving me the
choise. Altough care must be taken to handle not yet loaded modules. I
might fill this as wishlist, since has nothing to do with this bug.
Reply to: