From: Douglas Gilbert <dougg@torque.net>
To: dudekula mastan <d_mastan@yahoo.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl
Date: Mon, 12 Mar 2007 11:28:39 -0400 [thread overview]
Message-ID: <45F571A7.5010609@torque.net> (raw)
In-Reply-To: <982174.32681.qm@web32912.mail.mud.yahoo.com>
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
next parent reply other threads:[~2007-03-12 15:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <982174.32681.qm@web32912.mail.mud.yahoo.com>
2007-03-12 15:28 ` Douglas Gilbert [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45F571A7.5010609@torque.net \
--to=dougg@torque.net \
--cc=d_mastan@yahoo.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.