Re: Two SCSI bus question...

becka@rz.uni-duesseldorf.de
Wed, 10 Dec 1997 02:06:28 +0100 (MET)

> > All detected devices are assigned a raw-device in the order in which they
> > are detected. Scanning the busses goes dev-id first, then bus-id.
> >
> > Thus you first get all devices on the first bus, then all on the second,
> > each in order of the SCSI IDs.
> >
> > Thus your scanner wanders whenever a device that is below it in that ordering
> > scheme is there or not.
> >

> But, let's say I have disk 1 (id=0), disk 2 (id=1), tape drive (id=2) and disk
> 3 (id =3). Isn't disk 3 always /dev/sdc regardless if the tape drive powered
> up?
Yes, because the type is no disk. sd=Scsi Disk.

> Shouldn't the scanner device behave the same way???? :-(
/dev/sg* are sg=Scsi Generic.

All devices get one. Thus all devices are important for the order.
For disks only disks are important, for tapes only tapes, for cdrom only
cdroms, but generic counts them all.

> Maybe I'll just revert to the old ways of compiling device entries into the
> kernel.

How about a small script and /proc/scsi/scsi ?

CU,Andy

-- 
Andreas Beck              |  Email :  <becka@sunserver1.rz.uni-duesseldorf.de>

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com