summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1c40d74)
raw | patch | inline | side by side (parent: 1c40d74)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 13 May 2011 12:30:36 +0000 (12:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 13 May 2011 12:30:36 +0000 (12:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20823 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc | patch | blob | history |
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 e6874c131d4bc25f8d34925aa0c7e0d0115d87af..c79aea9548f76c4bd97031add8350de127f749a4 100644 (file)
// Get volume group properties
$name = $this->d_name;
$this->partitionObject->addDisk($name);
+
+ // Display potential errors
+ if(!$this->partitionObject->success()){
+ $msg = sprintf(_("Failed to add '%s': %s"), _("Disk"), $this->partitionObject->getError());
+ msg_dialog::display(_("Error"), $msg, ERROR_DIALOG);
+ }
return($this->partitionObject->success());
}elseif($this->selected_type == VOLUME_GROUP){
$devices = $this->vg_partitions;
$name = $this->vg_name;
$this->partitionObject->addVolumeGroup($name, $devices, $format=TRUE, $use_existing=FALSE, NULL);
+
+ // Display potential errors
+ if(!$this->partitionObject->success()){
+ $msg = sprintf(_("Failed to add '%s': %s"), _("Volume group"), $this->partitionObject->getError());
+ msg_dialog::display(_("Error"), $msg, ERROR_DIALOG);
+ }
return($this->partitionObject->success());
}elseif($this->selected_type == VOLUME){
$this->partitionObject->addVolume($target, $name, $group, $size, $maxSize,
$grow, $format, $use_existing, $fsType, $fsOptions);
+ // Display potential errors
+ if(!$this->partitionObject->success()){
+ $msg = sprintf(_("Failed to add '%s': %s"), _("Volume"), $this->partitionObject->getError());
+ msg_dialog::display(_("Error"), $msg, ERROR_DIALOG);
+ }
return($this->partitionObject->success());
}elseif($this->selected_type == RAID_DEVICE){
$this->partitionObject->addRaidDevice($target, $name, $raidLevel, $spares, $fsType,$fsOptions,
TRUE, FALSE, $devices);
+ // Display potential errors
+ if(!$this->partitionObject->success()){
+ $msg = sprintf(_("Failed to add '%s': %s"), _("Raid device"), $this->partitionObject->getError());
+ msg_dialog::display(_("Error"), $msg, ERROR_DIALOG);
+ }
return($this->partitionObject->success());
}elseif($this->selected_type == PARTITION){
// Add partition to remote model
$this->partitionObject->addPartition($target,$size, $maxSize, $grow, $format, $boot, $primary,
$fsType, $fsOptions , $encrypt, $passphrase, $disk);
+
+ // Display potential errors
+ if(!$this->partitionObject->success()){
+ $msg = sprintf(_("Failed to add '%s': %s"), _("Partition"), $this->partitionObject->getError());
+ msg_dialog::display(_("Error"), $msg, ERROR_DIALOG);
+ }
return($this->partitionObject->success());
}
}