devfs
[Top] [All Lists]

Re: /dev/discs and devfsd

To: Russell Coker <russell@xxxxxxxxxxxx>
Subject: Re: /dev/discs and devfsd
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Fri, 10 May 2002 09:57:51 -0600
Cc: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>, devfs@xxxxxxxxxxx
In-reply-to: <20020510045736.BAC17CE8@xxxxxxxxxxxxxxxxx>
References: <20020509062023.B4DFF310F@xxxxxxxxxxxxxxxxx> <200205091445.g49EjhQ26251@xxxxxxxxxxxxxxxxxxxxxxxx> <20020510045736.BAC17CE8@xxxxxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
Russell Coker writes:
> On Fri, 10 May 2002 00:45, Richard Gooch wrote:
> > Russell Coker writes:
> > > When I insert a pcmcia IDE device it becomes /dev/discs/disc1 (disc0 is
> > > the internal hard drive).
> > >
> > > Then I remove it and re-insert it and it becomes /dev/discs/disc2!
> >
> > That's not supposed to be happening! Can you verify that:
> > - devfs_(de)alloc_unique_number() is being called upon removal/insert
> > - the right numbers are being passed in to these calls.
> 
> I'll have to do that later, I don't have much spare time at the moment.
> 
> > > If the disc gets the first available number assigned to it then that
> > > would be OK.  If /dev/ide/host2/bus0/target0/lun0 gets permanently
> > > assigned to be /dev/discs/disc2 (until the next reboot) then that
> > > would also be OK.
> > >
> > > But having it just get an incrementally higher number on each
> > > insertion is IMHO a bug.  It's also really annoying when I have
> > > several flash-cards to read and I have to type a different mount
> > > command every time instead of "!mount".
> >
> > It's broken somehow. Odd, since this has been tested. Grrrr.
> >
> > > This is in devfsd 1.3.25.
> >
> > It's not the fault of devfsd. This is handled by the kernel. Which
> > kernel version is it?
> 
> 2.4.18.

Ah. There were some bugs in this code in 2.4.18. Grab 2.4.19-pre8 and
let me know how it goes.

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>