From d67ae81e7beca91514023a3120e7fe6f4228000e Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 23 Mar 2010 13:42:18 +0000 Subject: [PATCH] Don't forget vailable raid partitions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17028 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiDiskEntry.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.30.2