Re: mapping from scsi Host/Chan/Id/Lun to /dev/foo

Erik Andersen (andersen@codepoet.org)
Sat, 11 May 2002 17:13:25 -0600


On Sat May 11, 2002 at 04:23:03PM -0500, Jeff Meininger wrote:
>
> I'm trying to write a userspace program that takes Host/Chan/Id/Lun
> arguments for some sort of scsi storage device and prints out the
> corresponding /dev entry, if one exists.

Grab a copy of sg3-utils and read show_devices() in sginfo.c

-Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
-
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/