Re: devfs patch v3

Erik Andersen (andersen@inconnect.com)
Mon, 12 Jan 1998 12:45:04 -0700 (MST)


On 12 Jan 1998 ketil@ii.uib.no wrote:

> Richard Gooch <rgooch@atnf.CSIRO.AU> writes:
>
> > So, before I make any changes towards subdirectories in /dev, I want
> > to get some kind of consensus (at least from those not implacably
> > opposed to devfs) as to how deep these directory structures should go.
>
> I would prefer the directory structure to be named by type of device,
> and have device names be the SCSI path. Like:
>
> /dev/disk/h0c0t4l0s1
> /dev/tape/h0c0t5
>
> And perhaps
>
> /dev/cdrom/h0c0t2
>
> and maybe even
>
> /dev/disk/ide0a
> /dev/floppy/0
>
> I don't want to hunt around for e.g. my tape drive or cdrom, it's much
> more common to look for a device of a specific type, than for a specific
> target/lun/slice or whatever.
>
> ~k<m

I _really_ like this idea. As maintainer of the Uniform cdrom driver, I
would much prefer to see all cdrom devices show up under /dev/cdrom, i.e:

/dev/cdrom/hdb
/dev/cdrom/mcd
/dev/cdrom/mcdx
/dev/cdrom/cdu31a
/dev/cdrom/h0c0t2

This would be the quickest method of cleaning up /dev into something
meaningful, so that anybody could _quickly_ look at that directory, and
know what the machine has installed. Good categories would be:

/dev/disk
/dev/cdrom
/dev/floppy
/dev/scanner
/dev/tape
/dev/printer
/dev/serial
/dev/video
/dev/input
/dev/input/mouse
/dev/input/keyboard
/dev/input/joystick
/dev/sound
/dev/sound/sequencer
/dev/sound/dsp
/dev/sound/mixer
/dev/sound/midi
/dev/camera
/dev/misc

-Erik

--
Erik B. Andersen   Web:    http://www.inconnect.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--