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: Thu, 9 May 2002 08:45:43 -0600
Cc: devfs@xxxxxxxxxxx
In-reply-to: <20020509062023.B4DFF310F@xxxxxxxxxxxxxxxxx>
References: <20020509062023.B4DFF310F@xxxxxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
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.

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

                                Regards,

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

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