* How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl
@ 2007-03-12 6:28 MasthanUsha
2007-03-12 12:54 ` Douglas Gilbert
2007-06-08 7:18 ` sandip shete
0 siblings, 2 replies; 4+ messages in thread
From: MasthanUsha @ 2007-03-12 6:28 UTC (permalink / raw)
To: linux-scsi
Hi All,
Any one og you have any idea on scsi inquiry command ?
I want to send an Inquiry command to a scsi device through sd path (.i.e.
/dev/sda or /dev/sdb) by using SG_IO ioctl. Please explain me...
Your help is appreciated
Regards
Masthan
--
View this message in context: http://www.nabble.com/How-to-send-inquiry-command-to-thorugh-sd-path-%28i.e.--dev-sda%29-by-using-SG_IO-ioctl-tf3387437.html#a9429164
Sent from the linux-scsi mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl
2007-03-12 6:28 How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl MasthanUsha
@ 2007-03-12 12:54 ` Douglas Gilbert
2007-06-08 7:18 ` sandip shete
1 sibling, 0 replies; 4+ messages in thread
From: Douglas Gilbert @ 2007-03-12 12:54 UTC (permalink / raw)
To: MasthanUsha; +Cc: linux-scsi
MasthanUsha wrote:
>
> Hi All,
>
> Any one og you have any idea on scsi inquiry command ?
>
> I want to send an Inquiry command to a scsi device through sd path (.i.e.
> /dev/sda or /dev/sdb) by using SG_IO ioctl. Please explain me...
If you look at http://www.torque.net/sg/sg3_utils.html
and fetch a tarball (e.g. sg3_utils-1.23.tgz) then have
a look at the examples/sg_simple1.c file.
Doug Gilbert
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl
[not found] <982174.32681.qm@web32912.mail.mud.yahoo.com>
@ 2007-03-12 15:28 ` Douglas Gilbert
0 siblings, 0 replies; 4+ messages in thread
From: Douglas Gilbert @ 2007-03-12 15:28 UTC (permalink / raw)
To: dudekula mastan; +Cc: linux-scsi
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl
2007-03-12 6:28 How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl MasthanUsha
2007-03-12 12:54 ` Douglas Gilbert
@ 2007-06-08 7:18 ` sandip shete
1 sibling, 0 replies; 4+ messages in thread
From: sandip shete @ 2007-06-08 7:18 UTC (permalink / raw)
To: linux-scsi
download sg_utils3 and use the sg_inq command to do so
MasthanUsha wrote:
>
>
> Hi All,
>
> Any one og you have any idea on scsi inquiry command ?
>
> I want to send an Inquiry command to a scsi device through sd path (.i.e.
> /dev/sda or /dev/sdb) by using SG_IO ioctl. Please explain me...
>
>
> Your help is appreciated
>
> Regards
> Masthan
>
>
>
--
View this message in context: http://www.nabble.com/How-to-send-inquiry-command-to-thorugh-sd-path-%28i.e.--dev-sda%29-by-using-SG_IO-ioctl-tf3387437.html#a11021647
Sent from the linux-scsi mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-06-08 7:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-12 6:28 How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl MasthanUsha
2007-03-12 12:54 ` Douglas Gilbert
2007-06-08 7:18 ` sandip shete
[not found] <982174.32681.qm@web32912.mail.mud.yahoo.com>
2007-03-12 15:28 ` Douglas Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).