Code

Added check for partition table type
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Feb 2006 04:58:20 +0000 (04:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Feb 2006 04:58:20 +0000 (04:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2706 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPartitionTableEntry.inc

index 219f62da77375c70383bb6f10945fc15e8b02cdc..408b361d20d06518fdd8020bdf5a96fea49efcbe 100644 (file)
@@ -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);
   }