Skip to content

Commit

Permalink
mxraid_assemble: enumerate over C *and* M RAIDs
Browse files Browse the repository at this point in the history
Note: a proper check against mxmounts is still missing.
  • Loading branch information
thomas committed Aug 6, 2018
1 parent 4409581 commit f70da1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mxraid/mxraid_assemble
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ exit;
my %tmp;
for (keys %{$self->{db}}) {
my ($cat,$size,$num) = $_ =~ m/([CDM])([\da-f])(\d{3})/;
next unless defined $cat and defined $num;
next unless defined $num;
$cat = '(C/M)' if $cat ne 'D';
if (exists $tmp{"$cat$size"} and $tmp{"$cat$size"} > $num) {
$num = $tmp{"$cat$size"};
}
Expand Down

0 comments on commit f70da1d

Please sign in to comment.