From 3463e9a4cf5379a26ece147a55e1e3637be727cd Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 11 May 2011 14:18:43 +0000 Subject: [PATCH] Fixed saving of volume groups git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20808 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/goto/Device/class_AddPartitionDialog.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc index fa293e8f4..87d0bcdff 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc @@ -241,7 +241,16 @@ class AddPartitionDialog */ function save() { - if($this->selected_type == RAID_DEVICE){ + if($this->selected_type == VOLUME_GROUP){ + + // Get raid device properties + $devices = $this->vg_partitions; + $extend = $this->vg_extend; + $name = $this->vg_name; + $this->partitionObject->addVolumeGroup($name, $devices, $format=TRUE, $use_existing=FALSE, $extend); + return($this->partitionObject->success()); + + }elseif($this->selected_type == RAID_DEVICE){ // Get raid device properties $devices = $this->r_partitions; -- 2.30.2