[libata] scsi: implement MODE SELECT command
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Jul 2012 12:18:21 +0000 (14:18 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 17 Aug 2012 18:10:36 +0000 (14:10 -0400)
The cache_type file in sysfs lets users configure the disk cache in
write-through or write-back modes.  However, ata disks do not support
writing to the file because they do not implement the MODE SELECT
command.

This patch adds a translation from MODE SELECT (for the caching page
only) to the ATA SET FEATURES command.  The set of changeable parameters
answered by MODE SENSE is also adjusted accordingly.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

No differences found