aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/aachba.c
diff options
context:
space:
mode:
authorSalyzyn, Mark <Mark_Salyzyn@adaptec.com>2008-01-08 15:23:49 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-23 12:29:19 -0500
commit17eaaceef52b1ce5ca061d49a1ff9ae56ccce1e1 (patch)
tree82c8b75f0d572601865c45bd121b922ab9d471aa /drivers/scsi/aacraid/aachba.c
parent95e852e1ef165560e85d3012127068c8f08b19a1 (diff)
[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.c7
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[] = {
690 "Unknown" 690 "Unknown"
691}; 691};
692 692
693 693char * get_container_type(unsigned tindex)
694{
695 if (tindex >= ARRAY_SIZE(container_types))
696 tindex = ARRAY_SIZE(container_types) - 1;
697 return container_types[tindex];
698}
694 699
695/* Function: setinqstr 700/* Function: setinqstr
696 * 701 *