diff options
author | Salyzyn, Mark <Mark_Salyzyn@adaptec.com> | 2008-01-08 12:23:49 -0800 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-23 11:29:19 -0600 |
commit | 17eaaceef52b1ce5ca061d49a1ff9ae56ccce1e1 (patch) | |
tree | 82c8b75f0d572601865c45bd121b922ab9d471aa /drivers/scsi/aacraid/aachba.c | |
parent | 95e852e1ef165560e85d3012127068c8f08b19a1 (diff) | |
download | blackbird-obmc-linux-17eaaceef52b1ce5ca061d49a1ff9ae56ccce1e1.tar.gz blackbird-obmc-linux-17eaaceef52b1ce5ca061d49a1ff9ae56ccce1e1.zip |
[SCSI] aacraid: add sysfs report of RAID level
Report the RAID level string for the SCSI device representing the
array. Report is in /sys/class/scsi_device/#:#:#:#/device/level.
Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aacraid/aachba.c')
-rw-r--r-- | drivers/scsi/aacraid/aachba.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c index 43d6aff460d2..eee65c145cb8 100644 --- a/drivers/scsi/aacraid/aachba.c +++ b/drivers/scsi/aacraid/aachba.c @@ -690,7 +690,12 @@ static char *container_types[] = { "Unknown" }; - +char * get_container_type(unsigned tindex) +{ + if (tindex >= ARRAY_SIZE(container_types)) + tindex = ARRAY_SIZE(container_types) - 1; + return container_types[tindex]; +} /* Function: setinqstr * |