Jeff Garzik wrote:
On 11/17/2009 10:00 AM, Christoph Hellwig wrote:
Add support for the ATA TRIM command in libata. We translate a WRITE
SAME 16
command with the unmap bit set into an ATA TRIM command and export enough
information in READ CAPACITY 16 and the block limits EVPD page so that
the new
SCSI layer discard support will driver this for us.
Note that I hardcode the WRITE_SAME_16 opcode for now as the patch to
introduce
the symbolic is not in 2.6.32 yet but only in the SCSI tree - as soon
as it is
merged we can fix it up to properly use the symbolic name.
Signed-off-by: Christoph Hellwig<hch@xxxxxx>
Looks good to me.... will apply to libata-dev.git#upstream soonish
..
Just make sure that no filesystem tries to use it by default.
The performance penalty from this is absolutely massive.
At least until the interface can do multiple trim ranges
per single trim command.
Cheers
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html