lkml.org 
[lkml]   [2003]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjecthow to get inquiry information for /dev/sd? (kernel 2.4.22)
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@med.ge.com
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.016 / U:1.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site