Re: [garloff@suse.de: Re: [linux-usb-devel] Re: /proc/scsi/map]

From: James Bottomley (James.Bottomley@SteelEye.com)
Date: Mon Jun 17 2002 - 09:29:11 EST


kurt@garloff.de said:
> This may work for your disks. You just can't open the device node for
> a tape, if there is no medium inserted. If you know the mapping
> between to a sg device you can use it.

Actually, you have to use sg for a disc as well since you send a scsi CDB
directly to the device for inquiry page 0x83.

> That's the second piece of information that /proc/scsi/map provides.

Oh no question. The way the current code doing this works is that it opens
all scsi devices and issues a GET_IDLUN to compile a database of the nodes and
then matches them up to sg nodes.

James

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



This archive was generated by hypermail 2b29 : Sun Jun 23 2002 - 22:00:13 EST