Fix RAID5 level names changed at r234603.

This commit is contained in:
mav 2012-04-27 08:49:15 +00:00
parent d06eb3218b
commit 27867e6fc9
5 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);