Fix RAID5 level names changed at r234603.
This commit is contained in:
parent
d06eb3218b
commit
27867e6fc9
@ -1490,7 +1490,7 @@ g_raid_md_ctl_intel(struct g_raid_md_object *md,
|
||||
return (-3);
|
||||
}
|
||||
if (strcasecmp(levelname, "RAID5") == 0)
|
||||
levelname = "RAID5LA";
|
||||
levelname = "RAID5-LA";
|
||||
if (g_raid_volume_str2level(levelname, &level, &qual)) {
|
||||
gctl_error(req, "Unknown RAID level '%s'.", levelname);
|
||||
return (-4);
|
||||
@ -1705,7 +1705,7 @@ g_raid_md_ctl_intel(struct g_raid_md_object *md,
|
||||
return (-3);
|
||||
}
|
||||
if (strcasecmp(levelname, "RAID5") == 0)
|
||||
levelname = "RAID5LA";
|
||||
levelname = "RAID5-LA";
|
||||
if (g_raid_volume_str2level(levelname, &level, &qual)) {
|
||||
gctl_error(req, "Unknown RAID level '%s'.", levelname);
|
||||
return (-4);
|
||||
|
@ -1062,7 +1062,7 @@ g_raid_md_ctl_jmicron(struct g_raid_md_object *md,
|
||||
return (-3);
|
||||
}
|
||||
if (strcasecmp(levelname, "RAID5") == 0)
|
||||
levelname = "RAID5LA";
|
||||
levelname = "RAID5-LA";
|
||||
if (g_raid_volume_str2level(levelname, &level, &qual)) {
|
||||
gctl_error(req, "Unknown RAID level '%s'.", levelname);
|
||||
return (-4);
|
||||
|
@ -1065,7 +1065,7 @@ g_raid_md_ctl_nvidia(struct g_raid_md_object *md,
|
||||
return (-3);
|
||||
}
|
||||
if (strcasecmp(levelname, "RAID5") == 0)
|
||||
levelname = "RAID5LS";
|
||||
levelname = "RAID5-LS";
|
||||
if (g_raid_volume_str2level(levelname, &level, &qual)) {
|
||||
gctl_error(req, "Unknown RAID level '%s'.", levelname);
|
||||
return (-4);
|
||||
|
@ -1246,7 +1246,7 @@ g_raid_md_ctl_promise(struct g_raid_md_object *md,
|
||||
return (-3);
|
||||
}
|
||||
if (strcasecmp(levelname, "RAID5") == 0)
|
||||
levelname = "RAID5LA";
|
||||
levelname = "RAID5-LA";
|
||||
if (g_raid_volume_str2level(levelname, &level, &qual)) {
|
||||
gctl_error(req, "Unknown RAID level '%s'.", levelname);
|
||||
return (-4);
|
||||
|
@ -1149,7 +1149,7 @@ g_raid_md_ctl_sii(struct g_raid_md_object *md,
|
||||
return (-3);
|
||||
}
|
||||
if (strcasecmp(levelname, "RAID5") == 0)
|
||||
levelname = "RAID5LS";
|
||||
levelname = "RAID5-LS";
|
||||
if (g_raid_volume_str2level(levelname, &level, &qual)) {
|
||||
gctl_error(req, "Unknown RAID level '%s'.", levelname);
|
||||
return (-4);
|
||||
|
Loading…
Reference in New Issue
Block a user