No warning text (that data will be lost) when adding new disks to array without parity.

This commit is contained in:
Tom Mortensen
2017-11-03 15:33:02 -07:00
parent bb8e33dcef
commit 3a1ad25ad5
+1 -1
View File
@@ -144,7 +144,7 @@ function array_offline(&$disk) {
} else {
if ($var['mdState']=='NEW_ARRAY') {
if ($disk['type']=='Parity') $warning = $text;
} else {
} else if ($var['mdNumInvalid']<=1) {
if (in_array($disk['status'],['DISK_INVALID','DISK_DSBL_NEW','DISK_WRONG','DISK_NEW'])) $warning = $text;
}
}