How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · dudekula mastan
Hi Gilbert,
Thanks for quick reply.
The example program (
sg_Simple--- not only this all examples) is taking/dev/sgpath as input but I want/dev/sdpath 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/sdpath as input.
You have one already. Actually you have lots of examples there.
Quoted 1 line
Is
SG_IOsupports 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