Skip to content
Commit 1b26d29c authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Jeff Garzik
Browse files

[libata] scsi: implement MODE SELECT command



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: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 6ca8e794
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment