Commit 22158a31 authored by Mike Hibler's avatar Mike Hibler

Add 'amrd' (aka Dell PERC4 RAID controller) as a possible disk type

parent 1be1184a
......@@ -1122,7 +1122,7 @@ CREATE TABLE node_types (
delay_capacity tinyint(4) NOT NULL default '0',
virtnode_capacity tinyint(4) NOT NULL default '0',
control_iface text,
disktype enum('ad','da','ar') default NULL,
disktype enum('ad','da','ar','amrd') default NULL,
bootdisk_unit tinyint(3) unsigned NOT NULL default '0',
delay_osid varchar(35) default NULL,
jail_osid varchar(35) default NULL,
......
......@@ -2819,3 +2819,8 @@ last_net_act,last_cpu_act,last_ext_act);
where inner_elab_role='boss';
update reserved set inner_elab_role='ops+fs'
where inner_elab_role='ops';
4.11: Add 'amrd' as potential disk type in node_types.
alter table node_types change disktype \
disktype enum('ad','da','ar','amrd') default NULL;
......@@ -236,7 +236,7 @@ function SPITFORM($node_type, $formfields, $errors)
</tr>\n";
echo "<tr>
<td>Disktype (ad,da,ar):</td>
<td>Disktype (ad,da,ar,amrd):</td>
<td class=left>
<input type=text
name=\"formfields[disktype]\"
......@@ -611,8 +611,9 @@ if (isset($formfields[delay_capacity]) && $formfields[delay_capacity] != "") {
if (isset($formfields[disktype]) && $formfields[disktype] != "") {
if ($formfields[disktype] != "ad" &&
$formfields[disktype] != "da" &&
$formfields[disktype] != "ar") {
$errors["disktype"] = "Must be one of ad, da, ar";
$formfields[disktype] != "ar" &&
$formfields[disktype] != "amrd") {
$errors["disktype"] = "Must be one of ad, da, ar, amrd";
}
else {
$inserts["disktype"] = $formfields[disktype];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment