From f70da1ddc000cf72438512d40add5a447f5af894 Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 6 Aug 2018 09:35:24 +0200 Subject: [PATCH] mxraid_assemble: enumerate over C *and* M RAIDs Note: a proper check against mxmounts is still missing. --- mxraid/mxraid_assemble | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mxraid/mxraid_assemble b/mxraid/mxraid_assemble index 18cae2f..03b5f40 100755 --- a/mxraid/mxraid_assemble +++ b/mxraid/mxraid_assemble @@ -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"}; }