diff options
author | Thomas Backlund <tmb@mageia.org> | 2018-08-22 14:31:54 +0300 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2018-08-22 14:31:54 +0300 |
commit | aef4a318ae22905c13eb202108a4ecf89f358990 (patch) | |
tree | 47d03a5bb0c11fc5d19047912ecbf90129bb5075 | |
parent | 10f9c8649d3d4d698b93a3a025d6d168d61b3b12 (diff) | |
download | drakx-aef4a318ae22905c13eb202108a4ecf89f358990.tar drakx-aef4a318ae22905c13eb202108a4ecf89f358990.tar.gz drakx-aef4a318ae22905c13eb202108a4ecf89f358990.tar.bz2 drakx-aef4a318ae22905c13eb202108a4ecf89f358990.tar.xz drakx-aef4a318ae22905c13eb202108a4ecf89f358990.zip |
raid: get_existing(): detect raid10
-rw-r--r-- | perl-install/NEWS | 1 | ||||
-rw-r--r-- | perl-install/raid.pm | 2 |
2 files changed, 2 insertions, 1 deletions
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 { |