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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dudekula mastan wrote:
> 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).

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

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

>    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
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux