From aef4a318ae22905c13eb202108a4ecf89f358990 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Wed, 22 Aug 2018 14:31:54 +0300 Subject: raid: get_existing(): detect raid10 --- perl-install/NEWS | 1 + perl-install/raid.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/NEWS b/perl-install/NEWS index c09ae10e1..b29a2f112 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,6 +1,7 @@ - mdadm raid: o raid10 can be created with just 2 disks as a high-performance raid1 o raid6 can be used with 3 disks and up + o get_existing(): detect raid10 - 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 9ae70b6d8..220a391d1 100644 --- a/perl-install/raid.pm +++ b/perl-install/raid.pm @@ -294,7 +294,7 @@ sub get_existing { foreach my $md (active_mds()) { my $raw_part = get_md_info(devices::make($md)) or next; - $raw_part->{level} =~ s/raid//; #- { linear | raid0 | raid1 | raid5 | raid6 } -> { linear | 0 | 1 | 5 | 6 } + $raw_part->{level} =~ s/raid//; #- { linear | raid0 | raid1 | raid5 | raid6 | raid10 } -> { linear | 0 | 1 | 5 | 6 | 10 } my @mdparts = map { -- cgit v1.2.1