how to get inquiry information for /dev/sd? (kernel 2.4.22)

From: Kiniger, Karl (MED)
Date: Thu Nov 13 2003 - 14:07:49 EST


Hello,

using kernel 2.4.22:

what is the canonical method to get to know what
scsi/usb/ieee1394 disks are being accessed as /dev/sda, /dev/sdb etc ?
(e.g want to be sure to format the USB pen drive and not the
M/O disk)

Right now I am playing with SCSI_IOCTL_GET_IDLUN ioctl but I also need
to get at the inquiry information for each disk device, preferably
w/o having to parse /proc/scsi/scsi.

Thanks for any hints,
Karl
--
Karl Kiniger karl.kiniger@xxxxxxxxxx
GE Medical Kretztechnik
Tiefenbach 15
A-4871 Zipf Tel: (++43) 7682-3800-710 Fax (++43) 7682-3800-47
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/