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
commit448690f02ee29a5d633e890e09920a0adee386b2 (patch)
treed67dc3e98933773a3ad3a12b7ca6c6afcd079462 /perl-install/diskdrake/hd_gtk.pm
parent1617cd977f4bd64e0252eab04b6aa87b267dbdfe (diff)
downloaddrakx-448690f02ee29a5d633e890e09920a0adee386b2.tar
drakx-448690f02ee29a5d633e890e09920a0adee386b2.tar.gz
drakx-448690f02ee29a5d633e890e09920a0adee386b2.tar.bz2
drakx-448690f02ee29a5d633e890e09920a0adee386b2.tar.xz
drakx-448690f02ee29a5d633e890e09920a0adee386b2.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
################################################################################