From 2eb475c763f7be11f8a63a9cc81c2cec950dafd3 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 21 Feb 2006 04:58:20 +0000 Subject: [PATCH] Added check for partition table type git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2706 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPartitionTableEntry.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); } -- 2.30.2