summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/hd_gtk.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-04-20 18:22:10 +0000
committerThierry Vignaud <tv@mageia.org>2012-04-20 18:22:10 +0000
commit6f733b8a89df9e973657323fc410159774d18241 (patch)
treed67dc3e98933773a3ad3a12b7ca6c6afcd079462 /perl-install/diskdrake/hd_gtk.pm
parent55389cf8eb3412480bf7f767a7fa3ac297f5916c (diff)
downloaddrakx-backup-do-not-use-6f733b8a89df9e973657323fc410159774d18241.tar
drakx-backup-do-not-use-6f733b8a89df9e973657323fc410159774d18241.tar.gz
drakx-backup-do-not-use-6f733b8a89df9e973657323fc410159774d18241.tar.bz2
drakx-backup-do-not-use-6f733b8a89df9e973657323fc410159774d18241.tar.xz
drakx-backup-do-not-use-6f733b8a89df9e973657323fc410159774d18241.zip
(raid2real_kind) introduces it
like lvm2kind(), it processes one raid device at a time instead of returning { type => 'raid, name => 'raid', val => undef } (which later causes crashes in partioning wizard) (this obviously was never tested when introducing the later)
Diffstat (limited to 'perl-install/diskdrake/hd_gtk.pm')
-rw-r--r--perl-install/diskdrake/hd_gtk.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm
index c9eca1cec..70f8a3f57 100644
--- a/perl-install/diskdrake/hd_gtk.pm
+++ b/perl-install/diskdrake/hd_gtk.pm
@@ -442,6 +442,11 @@ sub raid2kind() {
{ type => 'raid', name => 'raid', val => $all_hds->{raids} };
}
+sub raid2real_kind {
+ my ($raid) = @_;
+ { type => 'raid', name => 'raid', val => $raid };
+}
+
################################################################################
# loopbacks: helpers
################################################################################