From: Robert Hancock <hancockr@shaw.ca>
To: Vitaliyi <imgrey@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: libata extension
Date: Sun, 11 Mar 2007 02:04:57 -0600 [thread overview]
Message-ID: <45F3B829.2010503@shaw.ca> (raw)
In-Reply-To: <fa.tUT8ZqaAp2RZveBFqwzUhq3UYGI@ifi.uio.no>
Vitaliyi wrote:
> Good Day
>
> Say i want to implement extended set of ATA commands available to
> userspace for building diagnostic tools.
> I need 0x40 -- read verify and 0x32 -- write long with error handling,
> for example. I was trying ide driver through ioctl's, but seems it
> lack of functionality and full of gotchas. Furthermore it oopses
> sometimes.
>
> Is it possible to use libata for such purpose or i need to write
> separate IDE driver ?
> By the way, i'm sure it should be done in kernel space since i'm going
> to deal with some hdd manufacturer commands.
>
> P.S. I was looking through libata and ide sources and documentation
> but still dont have broad picture.
I believe you should be able to do this by sending ATA pass-through SCSI
commands into the device using SG_IO, without any kernel changes. It's
really the mechanism that's meant for this..
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
next parent reply other threads:[~2007-03-11 8:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.tUT8ZqaAp2RZveBFqwzUhq3UYGI@ifi.uio.no>
2007-03-11 8:04 ` Robert Hancock [this message]
2007-03-11 13:31 ` libata extension Alan Cox
2007-03-11 7:22 Vitaliyi
2007-03-11 14:09 ` Bartlomiej Zolnierkiewicz
2007-03-12 14:47 ` Mark Lord
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=45F3B829.2010503@shaw.ca \
--to=hancockr@shaw.ca \
--cc=imgrey@gmail.com \
--cc=linux-kernel@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 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).