[6058] in linux-scsi channel archive
Re: SCSI generic interface addition
daemon@ATHENA.MIT.EDU (Douglas Gilbert)
Wed Mar 10 21:57:02 1999
Date: Wed, 10 Mar 1999 19:36:13 -0500
From: Douglas Gilbert <dgilbert@interlog.com>
To: Bernard Hatt <bmh@arkady.demon.co.uk>
Cc: linux-scsi@vger.rutgers.edu
Bernard Hatt wrote:
>
> Because the /dev/sg? interfaces are assigned dynamically when
> booting, my CD writer device name changes depending on whether
> my scanner is attached or switched on.
Yep, it's a damn nuisance. It is even worse if it's a disk with
your root partition that's being moved around. [Once I had my
BIOS scanning one way trying to get track 0 (boot track) from
one disk and Linux scanning another way and looking for the
root partition on another disk.]
> Having looked at the problem, I have hacked drivers/scsi/sg.c to
> create directories under /proc/sg which contains symbolic links
> named by the SCSI address or device name to the matching /dev/sg?
> device file.
Welcome to the sg device driver's hackers club.
> If anyone is interested in this code (for linux-2.2.3) it is
> available on http://www.arkady.demon.co.uk/scsi.html .
>
> (Apologies if this subject has already been done to death or
> a better solution found, but I couldn't find any searchable
> archives for this list.)
Well there is this really persistent guy from down under called
Richard Gooch (rgooch@atnf.csiro.au) who has been pushing the
idea of a pseudo-file system for devices called devfs. The web page
is: http://www.atnf.csiro.au/~rgooch/linux/kernel-patches.html
One day Linus is going to relent and put it in cause he has
been thinking about it for a loooong time.
It's my hope that devfs will solve this class of problems.
Just had a look at your handywork. It looks good. Is there
a GPL on it :-)
Doug Gilbert
PS Linux is looking more Plan 9 ever day.
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu