summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2018-08-22 14:27:07 +0300
committerThomas Backlund <tmb@mageia.org>2018-08-22 14:27:07 +0300
commitf6bb0ea980cf118ab604cc03a8086a83f7ce7e27 (patch)
treebd2253029b504bcb26902b9b403fb498546b0ea3 /perl-install/raid.pm
parent9b9c804b01049c327b995661c80896b17863bc65 (diff)
downloaddrakx-f6bb0ea980cf118ab604cc03a8086a83f7ce7e27.tar
drakx-f6bb0ea980cf118ab604cc03a8086a83f7ce7e27.tar.gz
drakx-f6bb0ea980cf118ab604cc03a8086a83f7ce7e27.tar.bz2
drakx-f6bb0ea980cf118ab604cc03a8086a83f7ce7e27.tar.xz
drakx-f6bb0ea980cf118ab604cc03a8086a83f7ce7e27.zip
raid10 can be created with just 2 disks as a high-performance raid1
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 898b276ac..9ae70b6d8 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -196,7 +196,7 @@ sub format_part {
sub verify {
my ($raids) = @_;
foreach (@$raids) {
- my $nb = $_->{level} =~ /10/ ? 4 : $_->{level} =~ /4|5|6/ ? 3 : 2;
+ my $nb = $_->{level} =~ /4|5|6/ ? 3 : 2;
@{$_->{disks}} >= $nb or die N("Not enough partitions for RAID level %d\n", $_->{level});
}
}