On Fri, Oct 28, 2005 at 07:24:55AM +0200, Shachar Shemesh wrote:

> The reason I'm not elaborating beyond what I already said was that
> there was not much to say. I'm trying to write something that will
> perform some operation on all HARD DISKS in the system, ignoring
> non-mechanical storage devices. There is something else I may want
> to do that I will do only on DoKs.

Try reading the "bus" entry in sysfs of the devices. For hard disks,
it will point to an ide or scsi bus (as far as I guess, you don't need
to differentiate between those) and for DoKs it will point to an USB
bus. Ah no, there are USB-connected hard disks. I'm not sure the
kernel can differentiate between USB DoKs and USB hard disks...

-- 
Lionel

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to