linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: anand.kulkarni.remove.this@banashankari.net
Cc: linux-ide@vger.kernel.org, Anand.Kulkarni@hitachigst.com
Subject: Re: [PATCH 2.6.20] libata: Support HDIO_DRIVE_TASKFILE ioctl
Date: Sat, 24 Feb 2007 13:29:27 +0900	[thread overview]
Message-ID: <45DFBF27.1060707@gmail.com> (raw)
In-Reply-To: <31e4e9500702211813g6d3d6431oda1f6191f056a02e@mail.gmail.com>

Hello,

Anand Kulkarni wrote:
> Hi,
> 
> Attached is a patch to allow HDIO_DRIVE_TASKFILE ioctl calls to libata
> devices so that arbitrary ATA commands that need PIO data transfers in
> either direction can be issued. I have tested it with linux kernel
> 2.6.20. The format of the input arguments is the same as for the
> regular ATA HDIO_DRIVE_TASKFILE ioctl : Code that makes ioctl calls to
> ATA devices on /dev/hda can be sent as is to SATA devices on /dev/sda.
> 
> Since this is the first time I am sending a patch, please let me know
> if I should do anything differently.

I was kind of hoping we could drop HDIO_DRIVE_TASKFILE.  Please take a
look at the HDIO_DRIVE_TASKFILE section of Documentation/ioctl/hdio.txt.
 That's one scary scary ioctl and we still haven't sorted out which are
features and which are bugs.

For backward compatibility HDIO_DRIVE_CMD and HDIO_DRIVE_TASK are
implemented and most applications seem to be happy with it.  If you need
real fine control over command execution, the recommended way is to use
SAT via SG_IO.

-- 
tejun

  reply	other threads:[~2007-02-24  4:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-22  2:13 [PATCH 2.6.20] libata: Support HDIO_DRIVE_TASKFILE ioctl Anand Kulkarni
2007-02-24  4:29 ` Tejun Heo [this message]
2007-03-03  0:32   ` Jeff Garzik

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=45DFBF27.1060707@gmail.com \
    --to=htejun@gmail.com \
    --cc=Anand.Kulkarni@hitachigst.com \
    --cc=anand.kulkarni.remove.this@banashankari.net \
    --cc=linux-ide@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).