Re: IDE-SCSI weirdness

Gadi Oxman (gadio@netvision.net.il)
Tue, 30 Mar 1999 01:12:05 +0300 (IDT)


Hi,

It's not a bug; it's a feature :-)

multi-lun ATAPI devices exist, though most single lun devices ignore
the lun field and answer to each lun. I preferred to allow the SCSI
subsystem to send multi-lun commands to ATAPI devices unconditionally
and detect a single-lun device multiple times rather than add some
heuristic which will verify if the device is a single/multi lun device
and prevent the SCSI subsystem from sending multi-lun commands for the
fear of mis-detecting a real multi-lun device as a single lun device.

I always considered this to be a minor inconvinience which is not really
worth fixing, but nevertheless we can try (in 2.3.x) to add such
"single/multi lun auto-detecting code".

Meanwhile, if you don't have any SCSI/ATAPI multi-lun devices, booting
the kernel with the "max_scsi_luns=1" command line parameter, or
compiling the kernel with CONFIG_SCSI_MULTI_LUN off will detect the
CDROM drive as a single device.

Gadi

On Mon, 29 Mar 1999, Joseph Gooch wrote:

> Yes, it's another nagging email from me. Once again I'm not a
> subscriber so direct replies to me. Some odd ide-scsi behavior here.
> When I modprobe ide-scsi, I get this:
>
> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> scsi : 1 host.
> Vendor: HP Model: CD-Writer+ 7100 Rev: 3.01
> Type: CD-ROM ANSI SCSI revision: 02
> Vendor: HP Model: CD-Writer+ 7100 Rev: 3.01
> Type: CD-ROM ANSI SCSI revision: 02
> Vendor: HP Model: CD-Writer+ 7100 Rev: 3.01
> Type: CD-ROM ANSI SCSI revision: 02
> Vendor: HP Model: CD-Writer+ 7100 Rev: 3.01
> Type: CD-ROM ANSI SCSI revision: 02
> Vendor: HP Model: CD-Writer+ 7100 Rev: 3.01
> Type: CD-ROM ANSI SCSI revision: 02
> Vendor: HP Model: CD-Writer+ 7100 Rev: 3.01
> Type: CD-ROM ANSI SCSI revision: 02
> Vendor: HP Model: CD-Writer+ 7100 Rev: 3.01
> Type: CD-ROM ANSI SCSI revision: 02
> Vendor: HP Model: CD-Writer+ 7100 Rev: 3.01
> Type: CD-ROM ANSI SCSI revision: 02
>
> Naturally I only have one CD-Writer ;)
>
> Looking at proc/scsi/scsi shows that the writer is luns 0 through 7 on
> Channel 0, ID 0 of host scsi0. Fine. Why do i have it on 8 luns? It's
> even better when i insmod sr_mod and now scd0 through scd7 are all the
> writer.
>
> Thanks again,
> Joseph Gooch
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/