linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SG_IO and HDIO_DRIVE_TASKFILE issue
@ 2007-09-14 16:58 Kantor Zsolt
  2007-09-14 17:12 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Kantor Zsolt @ 2007-09-14 16:58 UTC (permalink / raw)
  To: linux-ide

Can be executed a SG_IO command for a ATA hard drive ? because I have tried everything. I have
deeply studied the hdparm (version 7.7) source code and I came to realize that ATA commands like
setting the acoustic value, setting the drive write-caching, identify device can not be executed
with the SG_IO, so after hdparm tries with SG_IO which can't be executed jumps with a goto to the
legacy command (HDIO_DRIVE_CMD) to execute the required task. And I also know that libata don't
include support for the HDIO_DRIVE_TASKFILE command, so my question is how can I have full control
over a hard drive because for that you must to use either HDIO_DRIVE_TASKFILE but that is not
supported or SG_IO which is not working like HDIO_DRIVE_TASKFILE


      ____________________________________________________________________________________
Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!
http://tv.yahoo.com/collections/3658 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SG_IO and HDIO_DRIVE_TASKFILE issue
  2007-09-14 16:58 SG_IO and HDIO_DRIVE_TASKFILE issue Kantor Zsolt
@ 2007-09-14 17:12 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-09-14 17:12 UTC (permalink / raw)
  To: Kantor Zsolt; +Cc: linux-ide

Kantor Zsolt wrote:
> Can be executed a SG_IO command for a ATA hard drive ? because I have tried everything. I have

Yes.


> supported or SG_IO which is not working like HDIO_DRIVE_TASKFILE

SG_IO requires a vastly different format than HDIO_DRIVE_TASKFILE.  Read 
the sg documentation, and then reference SAT (http://www.t10.org/) for 
the definitions of ATA(12) and ATA(16) commands.

	Jeff




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-14 17:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-14 16:58 SG_IO and HDIO_DRIVE_TASKFILE issue Kantor Zsolt
2007-09-14 17:12 ` Jeff Garzik

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).