libata: add support for READ/WRITE LONG
authorMark Lord <liml@rtr.ca>
Fri, 16 Mar 2007 14:22:26 +0000 (10:22 -0400)
committerJeff Garzik <jeff@garzik.org>
Sat, 28 Apr 2007 18:16:01 +0000 (14:16 -0400)
commit5a5dbd18a7496ed403f6f54bb20c955c65482fa5
tree031eec40ab42ac4ab04e59db539b8126ac31fb6d
parent1234010684bb9cde51125ec3d1c71054a9f24f47
libata: add support for READ/WRITE LONG

The READ/WRITE LONG commands are theoretically obsolete,
but the majority of drives in existance still implement them.

The WRITE_LONG and WRITE_LONG_ONCE commands are of particular
interest for fault injection testing -- eg. creating "media errors"
at specific locations on a disk.

The fussy bit is that these commands require a non-standard
sector size, usually 520 bytes instead of 512.

This patch adds support to libata for READ/WRITE LONG commands
issued via SG_IO/ATA_16.

Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c
drivers/ata/libata-scsi.c
include/linux/ata.h
include/linux/libata.h
This page took 0.027541 seconds and 5 git commands to generate.