From: Mark Lord <lkml@rtr.ca>
To: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Linux Kernel Development <linux-kernel@vger.kernel.org>,
linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: HDIO_DRIVE_CMD and hdparm
Date: Thu, 10 May 2007 09:20:18 -0400 [thread overview]
Message-ID: <46431C12.1030207@rtr.ca> (raw)
In-Reply-To: <Pine.LNX.4.62.0705101327170.759@pademelon.sonytel.be>
Geert Uytterhoeven wrote:
> Hi,
>
> `hdparm -t' uses HDIO_DRIVE_CMD(null) to flush the disk's buffer.
More correctly, that command is supposed to act like an I/O queue "barrier"
operation, not returning from the syscall until everything queued in front
of it has been issued/completed.
I believe that only the original IDE driver actually implements it, though.
And hdparm-7.4 (not released yet) will no longer complain about ENOTTY.
Note that current versions of hdparm use SG_IO/ATA_16 (SAT) for nearly everything
now, only falling back to the older ioctl's for drivers which reject the SAT attempt.
I'd love to find a USB drive enclosure that supports SAT.
Anyone know of one?
And does the USB storage layer actually pass the ATA_16 packets to the device?
Cheers
prev parent reply other threads:[~2007-05-10 13:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 12:12 HDIO_DRIVE_CMD and hdparm Geert Uytterhoeven
2007-05-10 12:41 ` Christoph Hellwig
2007-05-10 12:51 ` Alan Cox
2007-05-10 13:13 ` Mark Lord
2007-05-10 13:20 ` Mark Lord [this message]
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=46431C12.1030207@rtr.ca \
--to=lkml@rtr.ca \
--cc=Geert.Uytterhoeven@sonycom.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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 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).