From 9b9c804b01049c327b995661c80896b17863bc65 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Wed, 22 Aug 2018 14:23:29 +0300 Subject: raid6 can be used with 3 disks and up --- perl-install/NEWS | 1 + perl-install/raid.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/NEWS b/perl-install/NEWS index a11a07292..8fc32b812 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,4 @@ +- raid6 can be used with 3 disks and up - finish-install: remove current media before adding online media (mga#19742) - drakboot: include the "Mageia" entry in the gub2 Default choices (mga#23393) - recognize smartpqi driver (mga#23305) diff --git a/perl-install/raid.pm b/perl-install/raid.pm index ee7cbbc4d..898b276ac 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} =~ /6|10/ ? 4 : $_->{level} =~ /4|5/ ? 3 : 2; + my $nb = $_->{level} =~ /10/ ? 4 : $_->{level} =~ /4|5|6/ ? 3 : 2; @{$_->{disks}} >= $nb or die N("Not enough partitions for RAID level %d\n", $_->{level}); } } -- cgit v1.2.1