From: hickert Date: Tue, 21 Feb 2006 04:58:20 +0000 (+0000) Subject: Added check for partition table type X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2eb475c763f7be11f8a63a9cc81c2cec950dafd3;p=gosa.git Added check for partition table type git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2706 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiPartitionTableEntry.inc b/plugins/admin/fai/class_faiPartitionTableEntry.inc index 219f62da7..408b361d2 100644 --- a/plugins/admin/fai/class_faiPartitionTableEntry.inc +++ b/plugins/admin/fai/class_faiPartitionTableEntry.inc @@ -379,6 +379,16 @@ class faiPartitionTableEntry extends plugin } } + $cnt = 0; + foreach($this->partitions as $key => $part){ + if($part['FAIpartitionType'] == "primary"){ + $cnt ++ ; + } + } + if($cnt > 3){ + $message[] = _("You have more than 3 primary partition table entries in your configuration, please check your configuration twice."); + } + return ($message); }