OSDN Git Service

scsi: raid_class: Add 'JBOD' RAID level
authorHannes Reinecke <hare@suse.de>
Wed, 24 Jan 2018 08:07:58 +0000 (09:07 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 12 Feb 2018 16:43:25 +0000 (11:43 -0500)
Not a real RAID level, but some HBAs support JBOD in addition to the
'classical' RAID levels.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/raid_class.c
include/linux/raid_class.h

index 2c146b4..ea88906 100644 (file)
@@ -157,6 +157,7 @@ static struct {
        { RAID_LEVEL_5, "raid5" },
        { RAID_LEVEL_50, "raid50" },
        { RAID_LEVEL_6, "raid6" },
+       { RAID_LEVEL_JBOD, "jbod" },
 };
 
 static const char *raid_level_name(enum raid_level level)
index 31e1ff6..ec86555 100644 (file)
@@ -38,6 +38,7 @@ enum raid_level {
        RAID_LEVEL_5,
        RAID_LEVEL_50,
        RAID_LEVEL_6,
+       RAID_LEVEL_JBOD,
 };
 
 struct raid_data {