diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-09-06 04:56:21 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-09-06 04:56:21 +0000 |
commit | 542f1313f503c37cf59df69e9d022f7b5175febd (patch) | |
tree | 8a83cc0bcba85951a36bfc188b5f02ef36563053 /perl-install | |
parent | a8514cd2ed0b40c27c45bd001eb9d7c2e3636c9d (diff) | |
download | drakx-backup-do-not-use-542f1313f503c37cf59df69e9d022f7b5175febd.tar drakx-backup-do-not-use-542f1313f503c37cf59df69e9d022f7b5175febd.tar.gz drakx-backup-do-not-use-542f1313f503c37cf59df69e9d022f7b5175febd.tar.bz2 drakx-backup-do-not-use-542f1313f503c37cf59df69e9d022f7b5175febd.tar.xz drakx-backup-do-not-use-542f1313f503c37cf59df69e9d022f7b5175febd.zip |
be more failsafe with half broken existing raids
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/raid.pm | 1 |
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]; |