summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-09-06 04:56:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-09-06 04:56:21 +0000
commit542f1313f503c37cf59df69e9d022f7b5175febd (patch)
tree8a83cc0bcba85951a36bfc188b5f02ef36563053 /perl-install/raid.pm
parenta8514cd2ed0b40c27c45bd001eb9d7c2e3636c9d (diff)
downloaddrakx-542f1313f503c37cf59df69e9d022f7b5175febd.tar
drakx-542f1313f503c37cf59df69e9d022f7b5175febd.tar.gz
drakx-542f1313f503c37cf59df69e9d022f7b5175febd.tar.bz2
drakx-542f1313f503c37cf59df69e9d022f7b5175febd.tar.xz
drakx-542f1313f503c37cf59df69e9d022f7b5175febd.zip
be more failsafe with half broken existing raids
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 092bd9441..4a113f5de 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -169,6 +169,7 @@ sub get_existing {
foreach my $md (active_mds()) {
my $conf = parse_mdadm_conf(scalar run_program::get_stdout('mdadm', '--detail', '--brief', devices::make($md)));
+ @{$conf->{ARRAY}} or next;
@{$conf->{ARRAY}} == 1 or internal_error("too many answers");
my $raw_part = $conf->{ARRAY}[0];