[SCSI] allow displaying and setting of cache type via sysfs
commit6bdaa1f17dd32ec62345c7b57842f53e6278a2fa
authorJames Bottomley <James.Bottomley@steeleye.com>
Sat, 18 Mar 2006 20:14:21 +0000 (18 14:14 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 19 Mar 2006 16:19:51 +0000 (19 10:19 -0600)
treefd84576b5b62a48676ed3a9ef136a3f653431cc7
parent5baba830e93732e802dc7e0a362eb730e1917f58
[SCSI] allow displaying and setting of cache type via sysfs

I think I promised to do this two years ago

This patch adds a scsi_disk class with the cache type and FUA
parameters, so user land application can easily obtain them without
having to parse dmesg.  It also allows setting the cache type (use with
care...)

This patch is a bit dangerous because I've replaced the disk kref with a
class device reference ...

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sd.c