Skip to contentSkip to conversation

How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl

DISCUSSION Douglas Gilbert 1 participant 1 message Mar 12, 2007 1 message not in the archive SCSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · dudekula mastan

Hi Gilbert,

Thanks for quick reply.

The example program (sg_Simple --- not only this all examples) is taking /dev/sg path as input but I want /dev/sd path as input.

In the lk 2.6 series, it will also work for "sd" devices (and "hd" devices if they happen to be cd/dvd drives).

Quoted 1 line

Please explain me with an example, which takes /dev/sd path as input.

You have one already. Actually you have lots of examples there.

Quoted 1 line

Is SG_IO supports sd driver ?

yes, in the lk 2.6 series.

I am not sure.. I think it will work only for sg driver. Am I correct ?.

That was correct several years ago, not now.

Doug Gilbert