xfs
[Top] [All Lists]

Re: No /dev/cdrom with Pre-Release 10 and RH7.1

To: Eric Sandeen <sandeen@xxxxxxx>
Subject: Re: No /dev/cdrom with Pre-Release 10 and RH7.1
From: Russel Ingram <ringram@xxxxxxxxxxxxxx>
Date: Wed, 18 Apr 2001 08:15:59 -0600 (MDT)
Cc: Jonathan Schwarz <js@xxxxxxxxxxxxx>, <linux-xfs@xxxxxxxxxxx>
In-reply-to: <3ADCC77E.7AFAB1D@sgi.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Tue, 17 Apr 2001, Eric Sandeen wrote:

> > Has anyone else seen this/know if this is an XFS or Seawolf problem?
>
> Otherwise, add these lines to the bottom of your devfsd.conf file, and
> see if it works some magic for you.
>
> # Handle /dev/mouse...
> # This assumes that something else (initscripts) will load mouse modules
> # If input/mice gets registered, link /dev/mouse to it:
> REGISTER        input/mice      EXECUTE /bin/ln -sf input/mice mouse
> # Lkewise for misc/psaux:
> REGISTER        misc/psaux      EXECUTE /bin/ln -sf misc/psaux mouse
> # If we unregister the usb mouse, then we probably want /dev/mouse to be
> psaux
> UNREGISTER      input/mice      EXECUTE /bin/ln -sf misc/psaux mouse
>
> # ...and /dev/cdrom
> # In case no cdrom modules loaded, point link over to /dev/cdroms/cdrom0
> LOOKUP          cdrom           EXECUTE /bin/ln -sf cdroms/cdrom0 cdrom
> # Similarly, if the module loaded, create the /dev/cdrom link
> REGISTER        cdroms/cdrom0   EXECUTE /bin/ln -sf cdroms/cdrom0 cdrom
> # Remove link when cdrom modules are unloaded
> UNREGISTER      cdroms/cdrom0   EXECUTE /bin/rm -f cdrom
>
> -Eric

Are you sure this is right, Eric?  I think REGISTER and UNREGISTER only
work on actual devices created by devfs when a new device is registered or
unregistered.  /dev/cdroms/* are links to things in the /dev/ide and
/dev/scsi trees.  If you want to create a symlink when another symlink is
created (i.e. make the /dev/cdrom symlink at the same time the
/dev/cdroms/cdrom0 symlink is created) I think you have to use the CREATE
keyword.

-- 
Russ Ingram
Gargoyle Computer Consulting
(307)742-1361
www.gargoylecc.com


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