From: cajus Date: Tue, 23 Mar 2010 13:42:18 +0000 (+0000) Subject: Don't forget vailable raid partitions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d67ae81e7beca91514023a3120e7fe6f4228000e;p=gosa.git Don't forget vailable raid partitions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17028 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiDiskEntry.inc b/gosa-plugins/fai/admin/fai/class_faiDiskEntry.inc index d0c041fd6..f41a5ecca 100644 --- a/gosa-plugins/fai/admin/fai/class_faiDiskEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiDiskEntry.inc @@ -343,7 +343,6 @@ class faiDiskEntry extends plugin */ function getAvailablePartitions() { - $may = $used = array(); foreach($this->parent->disks as $disk){ @@ -364,8 +363,8 @@ class faiDiskEntry extends plugin } } - // Collect all available disks - if($disk['FAIdiskType'] == "disk"){ + // Collect all available partitions + if($disk['FAIdiskType'] == "disk" || $disk['FAIdiskType'] == "raid"){ $name = $part['cn']; if(!isset($this->lvmDevices[$name])){ $may[] = $name;