Re: Linux 2.1.131ac3

Gadi Oxman (gadio@netvision.net.il)
Sat, 5 Dec 1998 14:37:39 +0200 (IST)


Hi,

> o IDE drivers in ide-scsi have but one LUN (Dave Woodhouse)

There are IDE devices which support multiple luns, per SFF-8070i,
and there are Linux users who are using ATAPI PD-CD devices
using the ide-scsi driver.

The above patch will prevent them from accessing their PD device.

IDE devices which don't support multiple luns usually respond to
each LUN, and are therefore detected 8 times when CONFIG_SCSI_MULTI_LUN
is defined.

If we want to attempt fixing this we might use bits 0 - 2 of word 126
of the ATAPI IDENTIFY packet command (last lun identifier) as a basis
for ignoring lun > 0, or perhaps use that in combination with some other
heuristic.

I always considered the multiple detection to be a minor inconvenience
which is a bit dangerous to fix, as instead of detecting a device 8 times
in the worst case, we might actually miss a real multi-lun device when
such a heuristic is being used, and prevent access to lun > 0.

Gadi

-
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/