cciss: Add a "raid_level" attribute to each logical drive in /sys
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 17 Sep 2009 18:48:21 +0000 (13:48 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 1 Oct 2009 19:15:44 +0000 (21:15 +0200)
commit3ff1111dc6e27524eeef267ab0ca9b5690594748
tree200b62231c3c266ea3366c8200403c946c9dc481
parentfa52bec9df974096f9eb0e42a0b890512c0a0036
cciss: Add a "raid_level" attribute to each logical drive in /sys

and change get rid of some magic numbers in raid lavel decoding.

Add raid_level attribute to each logical drive at
/sys/devices/<dev>/ccissX/cXdY/raid_level for controller X,
logical drive Y

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Documentation/ABI/testing/sysfs-bus-pci-devices-cciss
drivers/block/cciss.c